valkey-glide 2.2.1rc3__cp314-cp314-macosx_11_0_arm64.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 (40) hide show
  1. glide/__init__.py +388 -0
  2. glide/async_commands/__init__.py +5 -0
  3. glide/async_commands/cluster_commands.py +1476 -0
  4. glide/async_commands/core.py +7818 -0
  5. glide/async_commands/ft.py +465 -0
  6. glide/async_commands/glide_json.py +1269 -0
  7. glide/async_commands/standalone_commands.py +1001 -0
  8. glide/glide.cpython-314-darwin.so +0 -0
  9. glide/glide.pyi +61 -0
  10. glide/glide_client.py +821 -0
  11. glide/logger.py +97 -0
  12. glide/opentelemetry.py +185 -0
  13. glide/py.typed +0 -0
  14. glide_shared/__init__.py +330 -0
  15. glide_shared/commands/__init__.py +0 -0
  16. glide_shared/commands/batch.py +5997 -0
  17. glide_shared/commands/batch_options.py +261 -0
  18. glide_shared/commands/bitmap.py +320 -0
  19. glide_shared/commands/command_args.py +103 -0
  20. glide_shared/commands/core_options.py +407 -0
  21. glide_shared/commands/server_modules/ft_options/ft_aggregate_options.py +300 -0
  22. glide_shared/commands/server_modules/ft_options/ft_constants.py +84 -0
  23. glide_shared/commands/server_modules/ft_options/ft_create_options.py +423 -0
  24. glide_shared/commands/server_modules/ft_options/ft_profile_options.py +113 -0
  25. glide_shared/commands/server_modules/ft_options/ft_search_options.py +139 -0
  26. glide_shared/commands/server_modules/json_batch.py +820 -0
  27. glide_shared/commands/server_modules/json_options.py +93 -0
  28. glide_shared/commands/sorted_set.py +412 -0
  29. glide_shared/commands/stream.py +449 -0
  30. glide_shared/config.py +975 -0
  31. glide_shared/constants.py +124 -0
  32. glide_shared/exceptions.py +88 -0
  33. glide_shared/protobuf/command_request_pb2.py +56 -0
  34. glide_shared/protobuf/connection_request_pb2.py +56 -0
  35. glide_shared/protobuf/response_pb2.py +32 -0
  36. glide_shared/protobuf_codec.py +110 -0
  37. glide_shared/routes.py +161 -0
  38. valkey_glide-2.2.1rc3.dist-info/METADATA +210 -0
  39. valkey_glide-2.2.1rc3.dist-info/RECORD +40 -0
  40. valkey_glide-2.2.1rc3.dist-info/WHEEL +4 -0
Binary file
glide/glide.pyi ADDED
@@ -0,0 +1,61 @@
1
+ from collections.abc import Callable
2
+ from enum import Enum
3
+ from typing import List, Optional, Union
4
+
5
+ from glide_shared.constants import TResult
6
+
7
+ DEFAULT_TIMEOUT_IN_MILLISECONDS: int = ...
8
+ MAX_REQUEST_ARGS_LEN: int = ...
9
+
10
+ class Level(Enum):
11
+ Error = 0
12
+ Warn = 1
13
+ Info = 2
14
+ Debug = 3
15
+ Trace = 4
16
+ Off = 5
17
+
18
+ def is_lower(self, level: Level) -> bool: ...
19
+
20
+ class Script:
21
+ def __init__(self, code: Union[str, bytes]) -> None: ...
22
+ def get_hash(self) -> str: ...
23
+ def __del__(self) -> None: ...
24
+
25
+ class ClusterScanCursor:
26
+ def __init__(self, cursor: Optional[str] = None) -> None: ...
27
+ def get_cursor(self) -> str: ...
28
+ def is_finished(self) -> bool: ...
29
+
30
+ class OpenTelemetryConfig:
31
+ def __init__(
32
+ self,
33
+ traces: Optional[OpenTelemetryTracesConfig] = None,
34
+ metrics: Optional[OpenTelemetryMetricsConfig] = None,
35
+ flush_interval_ms: Optional[int] = None,
36
+ ) -> None: ...
37
+ def get_traces(self) -> Optional[OpenTelemetryTracesConfig]: ...
38
+ def set_traces(self, traces: OpenTelemetryTracesConfig) -> None: ...
39
+ def get_metrics(self) -> Optional[OpenTelemetryMetricsConfig]: ...
40
+
41
+ class OpenTelemetryTracesConfig:
42
+ def __init__(
43
+ self, endpoint: str, sample_percentage: Optional[int] = None
44
+ ) -> None: ...
45
+ def get_endpoint(self) -> str: ...
46
+ def get_sample_percentage(self) -> Optional[int]: ...
47
+
48
+ class OpenTelemetryMetricsConfig:
49
+ def __init__(self, endpoint: str) -> None: ...
50
+ def get_endpoint(self) -> str: ...
51
+
52
+ def start_socket_listener_external(init_callback: Callable) -> None: ...
53
+ def value_from_pointer(pointer: int) -> TResult: ...
54
+ def create_leaked_value(message: str) -> int: ...
55
+ def create_leaked_bytes_vec(args_vec: List[bytes]) -> int: ...
56
+ def get_statistics() -> dict: ...
57
+ def py_init(level: Optional[Level], file_name: Optional[str]) -> Level: ...
58
+ def py_log(log_level: Level, log_identifier: str, message: str) -> None: ...
59
+ def create_otel_span(name: str) -> int: ...
60
+ def drop_otel_span(span_ptr: int) -> None: ...
61
+ def init_opentelemetry(config: OpenTelemetryConfig) -> None: ...