Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Add missing exports #2321

Open
wants to merge 6 commits into
base: release-1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@
* Node: Fix ZADD bug where command could not be called with only the `changed` optional parameter ([#1995](https://github.com/valkey-io/valkey-glide/pull/1995))
* Java: `XRange`/`XRevRange` should return `null` instead of `GlideException` when given a negative count ([#1920](https://github.com/valkey-io/valkey-glide/pull/1920))
* Python: Fix `XClaim` return type to `List[bytes]` instead of `List[TEncodable]` ([#2075](https://github.com/valkey-io/valkey-glide/pull/2075))
* Python: Add missing exports ([2321](https://github.com/valkey-io/valkey-glide/pull/2321))

### Operational Enhancements
* CI/CD: Create Workflow to deploy artifacts for all platforms ([#2285](https://github.com/valkey-io/valkey-glide/pull/2285)
* CI/CD: Create Workflow to deploy artifacts for all platforms ([#2285](https://github.com/valkey-io/valkey-glide/pull/2285))
* Node: Get valkey/redis version using client's info command ([#2276](https://github.com/valkey-io/valkey-glide/pull/2276))
* Java: Fetch server version using client's info command ([#2258](https://github.com/valkey-io/valkey-glide/pull/2258))
* CI/CD: Add workflow for automating Maven release ([#2128](https://github.com/valkey-io/valkey-glide/pull/2128))
Expand Down Expand Up @@ -301,7 +302,7 @@
* Python: Added SETRANGE command ([#1453](https://github.com/valkey-io/valkey-glide/pull/1453))

#### Fixes
* Python: Fix typing error "type object is not subscriptable" ([#1203](https://github.com/valkey-io/valkey-glide/pull/1203))
* Python: Fix typing error "'type' object is not subscriptable" ([#1203](https://github.com/valkey-io/valkey-glide/pull/1203))
* Core: Fixed blocking commands to use the specified timeout from the command argument ([#1283](https://github.com/valkey-io/valkey-glide/pull/1283))

### Breaking Changes
Expand Down
37 changes: 31 additions & 6 deletions python/python/glide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SignedEncoding,
UnsignedEncoding,
)
from glide.async_commands.command_args import Limit, ListDirection, OrderBy
from glide.async_commands.command_args import Limit, ListDirection, ObjectType, OrderBy
from glide.async_commands.core import (
ConditionalChange,
CoreCommands,
Expand Down Expand Up @@ -64,10 +64,12 @@
TrimByMaxLen,
TrimByMinId,
)
from glide.async_commands.transaction import ClusterTransaction, Transaction
from glide.async_commands.transaction import (
ClusterTransaction,
Transaction,
)
from glide.config import (
BackoffStrategy,
BaseClientConfiguration,
GlideClientConfiguration,
GlideClusterClientConfiguration,
NodeAddress,
Expand All @@ -77,7 +79,18 @@
ReadFrom,
ServerCredentials,
)
from glide.constants import OK
from glide.constants import (
OK,
TClusterResponse,
TEncodable,
TFunctionListResponse,
TFunctionStatsFullResponse,
TFunctionStatsSingleNodeResponse,
TResult,
TSingleNodeRoute,
TXInfoStreamFullResponse,
TXInfoStreamResponse,
Yury-Fridlyand marked this conversation as resolved.
Show resolved Hide resolved
)
from glide.exceptions import (
ClosingError,
ConfigurationError,
Expand All @@ -87,14 +100,15 @@
RequestError,
TimeoutError,
)
from glide.glide_client import GlideClient, GlideClusterClient
from glide.glide_client import GlideClient, GlideClusterClient, TGlideClient
from glide.logger import Level as LogLevel
from glide.logger import Logger
from glide.routes import (
AllNodes,
AllPrimaries,
ByAddressRoute,
RandomNode,
Route,
Yury-Fridlyand marked this conversation as resolved.
Show resolved Hide resolved
SlotIdRoute,
SlotKeyRoute,
SlotType,
Expand All @@ -110,8 +124,8 @@
"GlideClusterClient",
"Transaction",
"ClusterTransaction",
"TGlideClient"
# Config
"BaseClientConfiguration",
"GlideClientConfiguration",
"GlideClusterClientConfiguration",
"BackoffStrategy",
Expand All @@ -123,6 +137,14 @@
"PeriodicChecksStatus",
# Response
"OK",
"TClusterResponse",
"TEncodable",
"TFunctionListResponse",
"TFunctionStatsFullResponse",
"TFunctionStatsSingleNodeResponse",
"TResult",
"TXInfoStreamFullResponse",
"TXInfoStreamResponse",
Yury-Fridlyand marked this conversation as resolved.
Show resolved Hide resolved
# Commands
"BitEncoding",
"BitFieldGet",
Expand Down Expand Up @@ -166,6 +188,7 @@
"RangeByLex",
"RangeByScore",
"ScoreFilter",
"ObjectType",
"OrderBy",
"ExclusiveIdBound",
"IdBound",
Expand All @@ -189,13 +212,15 @@
"Logger",
"LogLevel",
# Routes
"Route",
"SlotType",
"AllNodes",
"AllPrimaries",
"ByAddressRoute",
"RandomNode",
"SlotKeyRoute",
"SlotIdRoute",
"TSingleNodeRoute",
# Exceptions
"ClosingError",
"ConfigurationError",
Expand Down
Loading