-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
240 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .rocksq import * | ||
|
||
__doc__ = rocksq.__doc__ | ||
if hasattr(rocksq, "__all__"): | ||
__all__ = rocksq.__all__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .blocking import * | ||
|
||
__doc__ = blocking.__doc__ | ||
if hasattr(blocking, "__all__"): | ||
__all__ = blocking.__all__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class PersistentQueueWithCapacity: | ||
def __init__(self, path: str, max_elements: int = 1_000_000_000): ... | ||
|
||
def push(self, items: list[bytes], no_gil: bool = True): ... | ||
|
||
def pop(self, max_elements: int = 1, no_gil: bool = True) -> list[bytes]: ... | ||
|
||
@property | ||
def is_empty(self) -> bool: ... | ||
|
||
@property | ||
def disk_size(self) -> int: ... | ||
|
||
@property | ||
def payload_size(self) -> int: ... | ||
|
||
@property | ||
def len(self) -> int: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .nonblocking import * | ||
|
||
__doc__ = nonblocking.__doc__ | ||
if hasattr(nonblocking, "__all__"): | ||
__all__ = nonblocking.__all__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from typing import Optional | ||
|
||
|
||
class ResponseVariant: | ||
@property | ||
def data(self) -> Optional[list[bytes]]: ... | ||
|
||
@property | ||
def len(self) -> Optional[int]: ... | ||
|
||
@property | ||
def size(self) -> Optional[int]: ... | ||
|
||
|
||
class Response: | ||
@property | ||
def is_ready(self) -> bool: ... | ||
|
||
def try_get(self) -> Optional[ResponseVariant]: ... | ||
|
||
def get(self) -> ResponseVariant: ... | ||
|
||
|
||
class PersistentQueueWithCapacity: | ||
def __init__(self, path: str, max_elements: int = 1_000_000_000, max_inflight_ops: int = 1_000): ... | ||
|
||
def push(self, items: list[bytes], no_gil: bool = True) -> Response: ... | ||
|
||
@property | ||
def inflight_ops(self) -> int: ... | ||
|
||
def pop(self, max_elements = 1, no_gil: bool = True) -> Response: ... | ||
|
||
@property | ||
def disk_size(self) -> Response: ... | ||
|
||
@property | ||
def payload_size(self) -> Response: ... | ||
|
||
@property | ||
def len(self) -> Response: ... |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
def version() -> str: ... | ||
|
||
def remove_queue(queue_name: str): ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.