quasardb 3.14.2.dev8__cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. quasardb/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  2. quasardb/CMakeFiles/progress.marks +1 -0
  3. quasardb/Makefile +189 -0
  4. quasardb/__init__.py +140 -0
  5. quasardb/__init__.pyi +72 -0
  6. quasardb/cmake_install.cmake +58 -0
  7. quasardb/date/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  8. quasardb/date/CMakeFiles/Export/b76006b2b7125baf1b0b4d4ca4db82bd/dateTargets.cmake +108 -0
  9. quasardb/date/CMakeFiles/progress.marks +1 -0
  10. quasardb/date/Makefile +189 -0
  11. quasardb/date/cmake_install.cmake +81 -0
  12. quasardb/date/dateConfigVersion.cmake +65 -0
  13. quasardb/date/dateTargets.cmake +63 -0
  14. quasardb/extensions/__init__.py +9 -0
  15. quasardb/extensions/writer.py +195 -0
  16. quasardb/firehose.py +112 -0
  17. quasardb/libqdb_api.so +0 -0
  18. quasardb/numpy/__init__.py +1106 -0
  19. quasardb/pandas/__init__.py +696 -0
  20. quasardb/pool.py +338 -0
  21. quasardb/pybind11/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  22. quasardb/pybind11/CMakeFiles/progress.marks +1 -0
  23. quasardb/pybind11/Makefile +189 -0
  24. quasardb/pybind11/cmake_install.cmake +50 -0
  25. quasardb/quasardb/__init__.pyi +97 -0
  26. quasardb/quasardb/_batch_column.pyi +5 -0
  27. quasardb/quasardb/_batch_inserter.pyi +32 -0
  28. quasardb/quasardb/_blob.pyi +16 -0
  29. quasardb/quasardb/_cluster.pyi +106 -0
  30. quasardb/quasardb/_continuous.pyi +18 -0
  31. quasardb/quasardb/_double.pyi +7 -0
  32. quasardb/quasardb/_entry.pyi +61 -0
  33. quasardb/quasardb/_error.pyi +15 -0
  34. quasardb/quasardb/_integer.pyi +7 -0
  35. quasardb/quasardb/_node.pyi +26 -0
  36. quasardb/quasardb/_options.pyi +106 -0
  37. quasardb/quasardb/_perf.pyi +7 -0
  38. quasardb/quasardb/_properties.pyi +5 -0
  39. quasardb/quasardb/_query.pyi +2 -0
  40. quasardb/quasardb/_reader.pyi +15 -0
  41. quasardb/quasardb/_retry.pyi +16 -0
  42. quasardb/quasardb/_string.pyi +12 -0
  43. quasardb/quasardb/_table.pyi +140 -0
  44. quasardb/quasardb/_tag.pyi +5 -0
  45. quasardb/quasardb/_timestamp.pyi +9 -0
  46. quasardb/quasardb/_writer.pyi +112 -0
  47. quasardb/quasardb/metrics/__init__.pyi +28 -0
  48. quasardb/quasardb.cpython-310-x86_64-linux-gnu.so +0 -0
  49. quasardb/range-v3/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
  50. quasardb/range-v3/CMakeFiles/Export/48a02d54b5e9e60c30c5f249b431a911/range-v3-targets.cmake +128 -0
  51. quasardb/range-v3/CMakeFiles/progress.marks +1 -0
  52. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/DependInfo.cmake +22 -0
  53. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/build.make +86 -0
  54. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/cmake_clean.cmake +5 -0
  55. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.make +2 -0
  56. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/compiler_depend.ts +2 -0
  57. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/progress.make +1 -0
  58. quasardb/range-v3/Makefile +204 -0
  59. quasardb/range-v3/cmake_install.cmake +93 -0
  60. quasardb/range-v3/include/range/v3/version.hpp +24 -0
  61. quasardb/range-v3/range-v3-config-version.cmake +83 -0
  62. quasardb/range-v3/range-v3-config.cmake +80 -0
  63. quasardb/stats.py +376 -0
  64. quasardb/table_cache.py +60 -0
  65. quasardb/typing.py +23 -0
  66. quasardb-3.14.2.dev8.dist-info/METADATA +41 -0
  67. quasardb-3.14.2.dev8.dist-info/RECORD +70 -0
  68. quasardb-3.14.2.dev8.dist-info/WHEEL +6 -0
  69. quasardb-3.14.2.dev8.dist-info/licenses/LICENSE.md +11 -0
  70. quasardb-3.14.2.dev8.dist-info/top_level.txt +1 -0
@@ -0,0 +1,32 @@
1
+ from typing import Any
2
+
3
+ class TimeSeriesBatch:
4
+ def push(self) -> None:
5
+ """
6
+ Regular batch push
7
+ """
8
+
9
+ def push_async(self) -> None:
10
+ """
11
+ Asynchronous batch push that buffers data inside the QuasarDB daemon
12
+ """
13
+
14
+ def push_fast(self) -> None:
15
+ """
16
+ Fast, in-place batch push that is efficient when doing lots of small, incremental pushes.
17
+ """
18
+
19
+ def push_truncate(self, **kwargs: Any) -> None:
20
+ """
21
+ Before inserting data, truncates any existing data. This is useful when you want your insertions to be idempotent, e.g. in case of a retry.
22
+ """
23
+
24
+ def set_blob(self, index: int, blob: bytes) -> None: ...
25
+ def set_double(self, index: int, double: float) -> None: ...
26
+ def set_int64(self, index: int, int64: int) -> None: ...
27
+ def set_string(self, index: int, string: str) -> None: ...
28
+ def set_timestamp(self, index: int, timestamp: Any) -> None: ...
29
+ def start_row(self, ts: Any) -> None:
30
+ """
31
+ Calling this function marks the beginning of processing a new row.
32
+ """
@@ -0,0 +1,16 @@
1
+ import datetime
2
+
3
+ from ._entry import ExpirableEntry
4
+
5
+ class Blob(ExpirableEntry):
6
+ def compare_and_swap(self, new_content: str, comparand: str) -> bytes: ...
7
+ def get(self) -> bytes: ...
8
+ def get_and_remove(self) -> bytes: ...
9
+ def get_and_update(self, data: str) -> bytes: ...
10
+ def put(self, data: str) -> None: ...
11
+ def remove_if(self, comparand: str) -> None: ...
12
+ def update(
13
+ self,
14
+ data: str,
15
+ expiry: datetime.datetime = datetime.datetime.fromtimestamp(0),
16
+ ) -> None: ...
@@ -0,0 +1,106 @@
1
+ from __future__ import annotations
2
+
3
+ import datetime
4
+ from types import TracebackType
5
+ from typing import Any, Optional, Type
6
+
7
+ from ..typing import MaskedArrayAny, RangeSet
8
+ from ._batch_column import BatchColumnInfo
9
+ from ._batch_inserter import TimeSeriesBatch
10
+ from ._blob import Blob
11
+ from ._continuous import QueryContinuous
12
+ from ._double import Double
13
+ from ._integer import Integer
14
+ from ._node import Node
15
+ from ._options import Options
16
+ from ._perf import Perf
17
+ from ._properties import Properties
18
+ from ._reader import Reader
19
+ from ._string import String
20
+ from ._table import Table
21
+ from ._tag import Tag
22
+ from ._timestamp import Timestamp
23
+ from ._writer import Writer
24
+
25
+ class Cluster:
26
+ """
27
+ Represents a connection to the QuasarDB cluster.
28
+ """
29
+
30
+ def __enter__(self) -> Cluster: ...
31
+ def __exit__(
32
+ self,
33
+ exc_type: Optional[Type[BaseException]],
34
+ exc_value: Optional[BaseException],
35
+ exc_tb: Optional[TracebackType],
36
+ ) -> None: ...
37
+ def __init__(
38
+ self,
39
+ uri: str,
40
+ user_name: str = "",
41
+ user_private_key: str = "",
42
+ cluster_public_key: str = "",
43
+ user_security_file: str = "",
44
+ cluster_public_key_file: str = "",
45
+ timeout: datetime.timedelta = datetime.timedelta(minutes=1),
46
+ do_version_check: bool = False,
47
+ enable_encryption: bool = False,
48
+ compression_mode: Options.Compression = Options.Compression.Balanced,
49
+ client_max_parallelism: int = 0,
50
+ ) -> None: ...
51
+ def blob(self, alias: str) -> Blob: ...
52
+ def close(self) -> None: ...
53
+ def compact_abort(self) -> None: ...
54
+ def compact_full(self) -> None: ...
55
+ def compact_progress(self) -> int: ...
56
+ def double(self, alias: str) -> Double: ...
57
+ def endpoints(self) -> list[str]: ...
58
+ def find(self, query: str) -> list[str]: ...
59
+ def get_memory_info(self) -> str: ...
60
+ def inserter(self, column_info_list: list[BatchColumnInfo]) -> TimeSeriesBatch: ...
61
+ def integer(self, alias: str) -> Integer: ...
62
+ def is_open(self) -> bool: ...
63
+ def node(self, uri: str) -> Node: ...
64
+ def node_config(self, uri: str) -> dict[str, Any]: ...
65
+ def node_status(self, uri: str) -> dict[str, Any]: ...
66
+ def node_topology(self, uri: str) -> dict[str, Any]: ...
67
+ def options(self) -> Options: ...
68
+ def perf(self) -> Perf: ...
69
+ def pinned_writer(self) -> Writer: ...
70
+ def prefix_count(self, prefix: str) -> int: ...
71
+ def prefix_get(self, prefix: str, max_count: int) -> list[str]: ...
72
+ def properties(self) -> Properties: ...
73
+ def purge_all(self, timeout: datetime.timedelta) -> None: ...
74
+ def purge_cache(self, timeout: datetime.timedelta) -> None: ...
75
+ def query(
76
+ self, query: str, blobs: bool | list[str] = False
77
+ ) -> list[dict[str, Any]]: ...
78
+ def query_continuous_full(
79
+ self, query: str, pace: datetime.timedelta, blobs: bool | list[str] = False
80
+ ) -> QueryContinuous: ...
81
+ def query_continuous_new_values(
82
+ self, query: str, pace: datetime.timedelta, blobs: bool | list[str] = False
83
+ ) -> QueryContinuous: ...
84
+ def query_numpy(self, query: str) -> list[tuple[str, MaskedArrayAny]]: ...
85
+ def reader(
86
+ self,
87
+ table_names: list[str],
88
+ column_names: list[str] = [],
89
+ batch_size: int = 0,
90
+ ranges: RangeSet = [],
91
+ ) -> Reader: ...
92
+ def string(self, alias: str) -> String: ...
93
+ def suffix_count(self, suffix: str) -> int: ...
94
+ def suffix_get(self, suffix: str, max_count: int) -> list[str]: ...
95
+ def table(self, alias: str) -> Table: ...
96
+ def tag(self, alias: str) -> Tag: ...
97
+ def tidy_memory(self) -> None: ...
98
+ def timestamp(self, alias: str) -> Timestamp: ...
99
+ def trim_all(
100
+ self, pause: datetime.timedelta, timeout: datetime.timedelta
101
+ ) -> None: ...
102
+ def ts(self, alias: str) -> Table: ...
103
+ def ts_batch(self, column_info_list: list[BatchColumnInfo]) -> TimeSeriesBatch: ...
104
+ def uri(self) -> str: ...
105
+ def wait_for_compaction(self) -> None: ...
106
+ def writer(self) -> Writer: ...
@@ -0,0 +1,18 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import Any
4
+
5
+ # import datetime
6
+
7
+ class QueryContinuous:
8
+ def __iter__(self) -> QueryContinuous: ...
9
+ def __next__(self) -> list[dict[str, Any]]: ...
10
+ def probe_results(self) -> list[dict[str, Any]]: ...
11
+ def results(self) -> list[dict[str, Any]]: ...
12
+ # def run(
13
+ # self,
14
+ # mode: qdb_query_continuous_mode_type_t,
15
+ # pace: datetime.timedelta,
16
+ # query: str,
17
+ # ) -> None: ...
18
+ def stop(self) -> None: ...
@@ -0,0 +1,7 @@
1
+ from ._entry import ExpirableEntry
2
+
3
+ class Double(ExpirableEntry):
4
+ def add(self, addend: float) -> float: ...
5
+ def get(self) -> float: ...
6
+ def put(self, double: float) -> None: ...
7
+ def update(self, double: float) -> None: ...
@@ -0,0 +1,61 @@
1
+ from __future__ import annotations
2
+
3
+ import datetime
4
+ from typing import Any
5
+
6
+ class Entry:
7
+ class Metadata: ...
8
+
9
+ class Type:
10
+ Uninitialized: Entry.Type # value = <Type.Uninitialized: -1>
11
+ Blob: Entry.Type # value = <Type.Blob: 0>
12
+ Integer: Entry.Type # value = <Type.Integer: 1>
13
+ HashSet: Entry.Type # value = <Type.HashSet: 2>
14
+ Tag: Entry.Type # value = <Type.Tag: 3>
15
+ Deque: Entry.Type # value = <Type.Deque: 4>
16
+ Stream: Entry.Type # value = <Type.Stream: 5>
17
+ Timeseries: Entry.Type # value = <Type.Timeseries: 6>
18
+ __members__: dict[str, Entry.Type]
19
+ def __and__(self, other: Any) -> Any: ...
20
+ def __eq__(self, other: Any) -> bool: ...
21
+ def __ge__(self, other: Any) -> bool: ...
22
+ def __getstate__(self) -> int: ...
23
+ def __gt__(self, other: Any) -> bool: ...
24
+ def __hash__(self) -> int: ...
25
+ def __index__(self) -> int: ...
26
+ def __init__(self, value: int) -> None: ...
27
+ def __int__(self) -> int: ...
28
+ def __invert__(self) -> Any: ...
29
+ def __le__(self, other: Any) -> bool: ...
30
+ def __lt__(self, other: Any) -> bool: ...
31
+ def __ne__(self, other: Any) -> bool: ...
32
+ def __or__(self, other: Any) -> Any: ...
33
+ def __rand__(self, other: Any) -> Any: ...
34
+ def __repr__(self) -> str: ...
35
+ def __ror__(self, other: Any) -> Any: ...
36
+ def __rxor__(self, other: Any) -> Any: ...
37
+ def __setstate__(self, state: int) -> None: ...
38
+ def __str__(self) -> str: ...
39
+ def __xor__(self, other: Any) -> Any: ...
40
+ @property
41
+ def name(self) -> str: ...
42
+ @property
43
+ def value(self) -> int: ...
44
+
45
+ def attach_tag(self, tag: str) -> bool: ...
46
+ def attach_tags(self, tags: list[str]) -> None: ...
47
+ def detach_tag(self, tag: str) -> bool: ...
48
+ def detach_tags(self, tags: list[str]) -> None: ...
49
+ def exists(self) -> bool: ...
50
+ def get_entry_type(self) -> Entry.Type: ...
51
+ def get_location(self) -> tuple[str, int]: ...
52
+ def get_metadata(self) -> Metadata: ...
53
+ def get_name(self) -> str: ...
54
+ def get_tags(self) -> list[str]: ...
55
+ def has_tag(self, tag: str) -> bool: ...
56
+ def remove(self) -> None: ...
57
+
58
+ class ExpirableEntry(Entry):
59
+ def expires_at(self, expiry_time: datetime.datetime) -> None: ...
60
+ def expires_from_now(self, expiry_delta: datetime.timedelta) -> None: ...
61
+ def get_expiry_time(self) -> datetime.datetime: ...
@@ -0,0 +1,15 @@
1
+ class Error(RuntimeError): ...
2
+ class AliasAlreadyExistsError(Error): ...
3
+ class AliasNotFoundError(Error): ...
4
+ class AsyncPipelineFullError(Error): ...
5
+ class IncompatibleTypeError(Error): ...
6
+ class InputBufferTooSmallError(Error): ...
7
+ class InternalLocalError(Error): ...
8
+ class InvalidArgumentError(Error): ...
9
+ class InvalidDatetimeError(Error): ...
10
+ class InvalidHandleError(Error): ...
11
+ class InvalidQueryError(Error): ...
12
+ class NotImplementedError(Error): ...
13
+ class OutOfBoundsError(Error): ...
14
+ class TryAgainError(Error): ...
15
+ class UninitializedError(Error): ...
@@ -0,0 +1,7 @@
1
+ from ._entry import ExpirableEntry
2
+
3
+ class Integer(ExpirableEntry):
4
+ def add(self, addend: int) -> int: ...
5
+ def get(self) -> int: ...
6
+ def put(self, integer: int) -> None: ...
7
+ def update(self, integer: int) -> None: ...
@@ -0,0 +1,26 @@
1
+ class DirectBlob:
2
+ def get(self) -> bytes: ...
3
+ def put(self, data: str) -> None: ...
4
+ def remove(self) -> None: ...
5
+ def update(self, data: str) -> None: ...
6
+
7
+ class DirectInteger:
8
+ def get(self) -> int: ...
9
+ def put(self, integer: int) -> None: ...
10
+ def remove(self) -> None: ...
11
+ def update(self, integer: int) -> None: ...
12
+
13
+ class Node:
14
+ def __init__(
15
+ self,
16
+ uri: str,
17
+ user_name: str = "",
18
+ user_private_key: str = "",
19
+ cluster_public_key: str = "",
20
+ user_security_file: str = "",
21
+ cluster_public_key_file: str = "",
22
+ enable_encryption: bool = False,
23
+ ) -> None: ...
24
+ def blob(self, alias: str) -> DirectBlob: ...
25
+ def integer(self, alias: str) -> DirectInteger: ...
26
+ def prefix_get(self, prefix: str, max_count: int) -> list[str]: ...
@@ -0,0 +1,106 @@
1
+ from __future__ import annotations
2
+
3
+ import datetime
4
+ from typing import Any
5
+
6
+ class Options:
7
+ class Compression:
8
+ Disabled: Options.Compression # value = <Compression.Disabled: 0>
9
+ Best: Options.Compression # value = <Compression.Best: 2>
10
+ Balanced: Options.Compression # value = <Compression.Balanced: 3>
11
+ __members__: dict[str, Options.Compression]
12
+ def __and__(self, other: Any) -> Any: ...
13
+ def __eq__(self, other: Any) -> bool: ...
14
+ def __ge__(self, other: Any) -> bool: ...
15
+ def __getstate__(self) -> int: ...
16
+ def __gt__(self, other: Any) -> bool: ...
17
+ def __hash__(self) -> int: ...
18
+ def __index__(self) -> int: ...
19
+ def __init__(self, value: int) -> None: ...
20
+ def __int__(self) -> int: ...
21
+ def __invert__(self) -> Any: ...
22
+ def __le__(self, other: Any) -> bool: ...
23
+ def __lt__(self, other: Any) -> bool: ...
24
+ def __ne__(self, other: Any) -> bool: ...
25
+ def __or__(self, other: Any) -> Any: ...
26
+ def __rand__(self, other: Any) -> Any: ...
27
+ def __repr__(self) -> str: ...
28
+ def __ror__(self, other: Any) -> Any: ...
29
+ def __rxor__(self, other: Any) -> Any: ...
30
+ def __setstate__(self, state: int) -> None: ...
31
+ def __str__(self) -> str: ...
32
+ def __xor__(self, other: Any) -> Any: ...
33
+ @property
34
+ def name(self) -> str: ...
35
+ @property
36
+ def value(self) -> int: ...
37
+
38
+ class Encryption:
39
+ Disabled: Options.Encryption # value = <Encryption.Disabled: 0>
40
+ AES256GCM: Options.Encryption # value = <Encryption.AES256GCM: 1>
41
+ __members__: dict[str, Options.Encryption]
42
+ def __and__(self, other: Any) -> Any: ...
43
+ def __eq__(self, other: Any) -> bool: ...
44
+ def __ge__(self, other: Any) -> bool: ...
45
+ def __getstate__(self) -> int: ...
46
+ def __gt__(self, other: Any) -> bool: ...
47
+ def __hash__(self) -> int: ...
48
+ def __index__(self) -> int: ...
49
+ def __init__(self, value: int) -> None: ...
50
+ def __int__(self) -> int: ...
51
+ def __invert__(self) -> Any: ...
52
+ def __le__(self, other: Any) -> bool: ...
53
+ def __lt__(self, other: Any) -> bool: ...
54
+ def __ne__(self, other: Any) -> bool: ...
55
+ def __or__(self, other: Any) -> Any: ...
56
+ def __rand__(self, other: Any) -> Any: ...
57
+ def __repr__(self) -> str: ...
58
+ def __ror__(self, other: Any) -> Any: ...
59
+ def __rxor__(self, other: Any) -> Any: ...
60
+ def __setstate__(self, state: int) -> None: ...
61
+ def __str__(self) -> str: ...
62
+ def __xor__(self, other: Any) -> Any: ...
63
+ @property
64
+ def name(self) -> str: ...
65
+ @property
66
+ def value(self) -> int: ...
67
+
68
+ def disable_user_properties(self) -> None: ...
69
+ def enable_user_properties(self) -> None: ...
70
+ def get_client_max_batch_load(self) -> int:
71
+ """
72
+ Get the number of shards per thread used for the batch writer.
73
+ """
74
+
75
+ def get_client_max_in_buf_size(self) -> int: ...
76
+ def get_client_max_parallelism(self) -> int: ...
77
+ def get_cluster_max_in_buf_size(self) -> int: ...
78
+ def get_connection_per_address_soft_limit(self) -> int:
79
+ """
80
+ Get the maximum number of connections per qdbd node
81
+ """
82
+
83
+ def get_query_max_length(self) -> int: ...
84
+ def get_stabilization_max_wait(self) -> datetime.timedelta: ...
85
+ def get_timeout(self) -> datetime.timedelta: ...
86
+ def get_timezone(self) -> str: ...
87
+ def set_client_max_batch_load(self, shard_count: int) -> None:
88
+ """
89
+ Adjust the number of shards per thread used for the batch writer.
90
+ """
91
+
92
+ def set_client_max_in_buf_size(self, max_size: int) -> None: ...
93
+ def set_client_soft_memory_limit(self, limit: int) -> None: ...
94
+ def set_cluster_public_key(self, key: str) -> None: ...
95
+ def set_connection_per_address_soft_limit(self, max_count: int) -> None:
96
+ """
97
+ Adjust the maximum number of connections per qdbd node
98
+ """
99
+
100
+ def set_encryption(self, algorithm: Options.Encryption) -> None: ...
101
+ def set_max_cardinality(self, cardinality: int) -> None: ...
102
+ def set_query_max_length(self, query_max_length: int) -> None: ...
103
+ def set_stabilization_max_wait(self, max_wait: datetime.timedelta) -> None: ...
104
+ def set_timeout(self, timeout: datetime.timedelta) -> None: ...
105
+ def set_timezone(self, tz: str) -> None: ...
106
+ def set_user_credentials(self, user: str, private_key: str) -> None: ...
@@ -0,0 +1,7 @@
1
+ from typing import Any
2
+
3
+ class Perf:
4
+ def clear(self) -> None: ...
5
+ def disable(self) -> None: ...
6
+ def enable(self) -> None: ...
7
+ def get(self, flame: bool = False, outfile: str = "") -> Any: ...
@@ -0,0 +1,5 @@
1
+ class Properties:
2
+ def clear(self) -> None: ...
3
+ def get(self, key: str) -> str | None: ...
4
+ def put(self, key: str, value: str) -> None: ...
5
+ def remove(self, key: str) -> None: ...
@@ -0,0 +1,2 @@
1
+ class FindQuery:
2
+ def run(self) -> list[str]: ...
@@ -0,0 +1,15 @@
1
+ from __future__ import annotations
2
+
3
+ from types import TracebackType
4
+ from typing import Any, Iterator, Optional, Type
5
+
6
+ class Reader:
7
+ def __enter__(self) -> Reader: ...
8
+ def __exit__(
9
+ self,
10
+ exc_type: Optional[Type[BaseException]],
11
+ exc_value: Optional[BaseException],
12
+ exc_tb: Optional[TracebackType],
13
+ ) -> None: ...
14
+ def __iter__(self) -> Iterator[dict[str, Any]]: ...
15
+ def get_batch_size(self) -> int: ...
@@ -0,0 +1,16 @@
1
+ import datetime
2
+
3
+ class RetryOptions:
4
+ delay: datetime.timedelta
5
+ exponent: int
6
+ jitter: float
7
+ retries_left: int
8
+ def __init__(
9
+ self,
10
+ retries: int = 3,
11
+ delay: datetime.timedelta = ...,
12
+ exponent: int = 2,
13
+ jitter: float = 0.1,
14
+ ) -> None: ...
15
+ def has_next(self) -> bool: ...
16
+ def next(self) -> RetryOptions: ...
@@ -0,0 +1,12 @@
1
+ import datetime
2
+
3
+ from ._entry import ExpirableEntry
4
+
5
+ class String(ExpirableEntry):
6
+ def compare_and_swap(self, new_content: str, comparand: str) -> str: ...
7
+ def get(self) -> str: ...
8
+ def get_and_remove(self) -> str: ...
9
+ def get_and_update(self, data: str) -> str: ...
10
+ def put(self, data: str) -> None: ...
11
+ def remove_if(self, comparand: str) -> None: ...
12
+ def update(self, data: str, expiry: datetime.datetime = ...) -> None: ...
@@ -0,0 +1,140 @@
1
+ from __future__ import annotations
2
+
3
+ import datetime
4
+ import typing
5
+ from typing import Any, Optional, Union
6
+
7
+ from quasardb.quasardb._reader import Reader
8
+ from quasardb.typing import MaskedArrayAny, NDArrayAny, NDArrayTime, RangeSet
9
+
10
+ from ._entry import Entry
11
+
12
+ class ColumnType:
13
+ Uninitialized: ColumnType # value = <ColumnType.Uninitialized: -1>
14
+ Double: ColumnType # value = <ColumnType.Double: 0>
15
+ Blob: ColumnType # value = <ColumnType.Blob: 1>
16
+ Int64: ColumnType # value = <ColumnType.Int64: 2>
17
+ Timestamp: ColumnType # value = <ColumnType.Timestamp: 3>
18
+ String: ColumnType # value = <ColumnType.String: 4>
19
+ Symbol: ColumnType # value = <ColumnType.Symbol: 5>
20
+ __members__: dict[str, ColumnType]
21
+ def __and__(self, other: Any) -> Any: ...
22
+ def __eq__(self, other: Any) -> bool: ...
23
+ def __ge__(self, other: Any) -> bool: ...
24
+ def __getstate__(self) -> int: ...
25
+ def __gt__(self, other: Any) -> bool: ...
26
+ def __hash__(self) -> int: ...
27
+ def __index__(self) -> int: ...
28
+ def __init__(self, value: int) -> None: ...
29
+ def __int__(self) -> int: ...
30
+ def __invert__(self) -> Any: ...
31
+ def __le__(self, other: Any) -> bool: ...
32
+ def __lt__(self, other: Any) -> bool: ...
33
+ def __ne__(self, other: Any) -> bool: ...
34
+ def __or__(self, other: Any) -> Any: ...
35
+ def __rand__(self, other: Any) -> Any: ...
36
+ def __repr__(self) -> str: ...
37
+ def __ror__(self, other: Any) -> Any: ...
38
+ def __rxor__(self, other: Any) -> Any: ...
39
+ def __setstate__(self, state: int) -> None: ...
40
+ def __str__(self) -> str: ...
41
+ def __xor__(self, other: Any) -> Any: ...
42
+ @property
43
+ def name(self) -> str: ...
44
+ @property
45
+ def value(self) -> int: ...
46
+
47
+ class ColumnInfo:
48
+ name: str
49
+ symtable: str
50
+ type: ColumnType
51
+ @typing.overload
52
+ def __init__(self, type: ColumnType, name: str) -> None: ...
53
+ @typing.overload
54
+ def __init__(self, type: ColumnType, name: str, symtable: str) -> None: ...
55
+ def __repr__(self) -> str: ...
56
+
57
+ class IndexedColumnInfo:
58
+ @typing.overload
59
+ def __init__(self, type: ColumnType, index: int) -> None: ...
60
+ @typing.overload
61
+ def __init__(self, type: ColumnType, index: int, symtable: str) -> None: ...
62
+ @property
63
+ def index(self) -> int: ...
64
+ @property
65
+ def symtable(self) -> str: ...
66
+ @property
67
+ def type(self) -> ColumnType: ...
68
+
69
+ class Table(Entry):
70
+ def __repr__(self) -> str: ...
71
+ def blob_get_ranges(
72
+ self, column: str, ranges: Optional[RangeSet] = None
73
+ ) -> tuple[NDArrayTime, MaskedArrayAny]: ...
74
+ def blob_insert(
75
+ self,
76
+ column: str,
77
+ timestamps: NDArrayTime,
78
+ values: Union[MaskedArrayAny, NDArrayAny],
79
+ ) -> None: ...
80
+ def column_id_by_index(self, index: int) -> str: ...
81
+ def column_index_by_id(self, alias: str) -> int: ...
82
+ def column_info_by_index(self, index: int) -> ColumnInfo: ...
83
+ def column_type_by_id(self, alias: str) -> ColumnType: ...
84
+ def column_type_by_index(self, index: int) -> ColumnType: ...
85
+ def create(
86
+ self,
87
+ columns: list[ColumnInfo],
88
+ shard_size: datetime.timedelta = ...,
89
+ ttl: datetime.timedelta = ...,
90
+ ) -> None: ...
91
+ def double_get_ranges(
92
+ self, column: str, ranges: Optional[RangeSet] = None
93
+ ) -> tuple[NDArrayTime, MaskedArrayAny]: ...
94
+ def double_insert(
95
+ self,
96
+ column: str,
97
+ timestamps: NDArrayTime,
98
+ values: Union[MaskedArrayAny, NDArrayAny],
99
+ ) -> None: ...
100
+ def erase_ranges(self, column: str, ranges: RangeSet) -> int: ...
101
+ def get_shard_size(self) -> datetime.timedelta: ...
102
+ def get_ttl(self) -> datetime.timedelta: ...
103
+ def has_ttl(self) -> bool: ...
104
+ def insert_columns(self, columns: list[ColumnInfo]) -> None: ...
105
+ def int64_get_ranges(
106
+ self, column: str, ranges: Optional[RangeSet] = None
107
+ ) -> tuple[NDArrayTime, MaskedArrayAny]: ...
108
+ def int64_insert(
109
+ self,
110
+ column: str,
111
+ timestamps: NDArrayTime,
112
+ values: Union[MaskedArrayAny, NDArrayAny],
113
+ ) -> None: ...
114
+ def list_columns(self) -> list[ColumnInfo]: ...
115
+ def reader(
116
+ self,
117
+ column_names: list[str] = [],
118
+ batch_size: int = 0,
119
+ ranges: RangeSet = [],
120
+ ) -> Reader: ...
121
+ def retrieve_metadata(self) -> None: ...
122
+ def string_get_ranges(
123
+ self, column: str, ranges: Optional[RangeSet] = None
124
+ ) -> tuple[NDArrayTime, MaskedArrayAny]: ...
125
+ def string_insert(
126
+ self,
127
+ column: str,
128
+ timestamps: NDArrayTime,
129
+ values: Union[MaskedArrayAny, NDArrayAny],
130
+ ) -> None: ...
131
+ def subscribe(self, conn: Any) -> Any: ...
132
+ def timestamp_get_ranges(
133
+ self, column: str, ranges: Optional[RangeSet] = None
134
+ ) -> tuple[NDArrayTime, MaskedArrayAny]: ...
135
+ def timestamp_insert(
136
+ self,
137
+ column: str,
138
+ timestamps: NDArrayTime,
139
+ values: Union[MaskedArrayAny, NDArrayAny],
140
+ ) -> None: ...
@@ -0,0 +1,5 @@
1
+ from ._entry import Entry
2
+
3
+ class Tag(Entry):
4
+ def count(self) -> int: ...
5
+ def get_entries(self) -> list[str]: ...
@@ -0,0 +1,9 @@
1
+ import datetime
2
+
3
+ from ._entry import ExpirableEntry
4
+
5
+ class Timestamp(ExpirableEntry):
6
+ def add(self, addend: datetime.datetime) -> datetime.datetime: ...
7
+ def get(self) -> datetime.datetime: ...
8
+ def put(self, timestamp: datetime.datetime) -> None: ...
9
+ def update(self, timestamp: datetime.datetime) -> None: ...