typesense-python icon indicating copy to clipboard operation
typesense-python copied to clipboard

[Bug] - DeprecationWarning on instantiation of Client

Open cgearing opened this issue 3 months ago • 4 comments

Hi there,

It looks like based on how the deprecations were implemented in #107 results in a DeprecationWarning on instantiating a client, e.g:

>>> config = {
...     "api_key": "your_api_key",
...     "nodes": [
...         {"host": "localhost", "port": "8108", "protocol": "http"}
...     ],
...     "connection_timeout_seconds": 2,
... }
>>> client = Client(config)
Deprecation warning: AnalyticsRulesV1 is deprecated on v30+. Use client.analytics instead.

It would be great for this not to happen, since it fills up logs with noise.

cgearing avatar Nov 26 '25 12:11 cgearing