database-wrapper-redis 0.2.17__tar.gz → 0.2.23__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: database_wrapper_redis
3
- Version: 0.2.17
3
+ Version: 0.2.23
4
4
  Summary: database_wrapper for Redis database
5
5
  Author-email: Gints Murans <gm@gm.lv>
6
6
  License: GNU General Public License v3.0 (GPL-3.0)
@@ -32,7 +32,7 @@ Classifier: Topic :: Software Development
32
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: >=3.8
34
34
  Description-Content-Type: text/markdown
35
- Requires-Dist: database_wrapper==0.2.17
35
+ Requires-Dist: database_wrapper==0.2.23
36
36
  Requires-Dist: redis
37
37
 
38
38
  # database_wrapper_redis
@@ -1,5 +1,5 @@
1
1
  """
2
- database_wrapper_redis package - PostgreSQL database wrapper
2
+ database_wrapper_redis package - Redis database wrapper
3
3
 
4
4
  Part of the database_wrapper package
5
5
  """
@@ -17,10 +17,10 @@ from .connector import (
17
17
  RedisConnection,
18
18
  RedisConnectionAsync,
19
19
  # Connectors
20
- RedisDB,
21
- RedisDBAsync,
22
- RedisDBWithPool,
23
- RedisDBWithPoolAsync,
20
+ RedisDb,
21
+ RedisDbAsync,
22
+ RedisDbWithPool,
23
+ RedisDbWithPoolAsync,
24
24
  RedisDefaultConfig,
25
25
  )
26
26
 
@@ -32,16 +32,16 @@ if logger.level == logging.NOTSET:
32
32
 
33
33
  __all__ = [
34
34
  # Connectors
35
- "RedisDB",
36
- "RedisDBAsync",
37
- "RedisDBWithPool",
38
- "RedisDBWithPoolAsync",
35
+ RedisDb,
36
+ RedisDbAsync,
37
+ RedisDbWithPool,
38
+ RedisDbWithPoolAsync,
39
39
  # Connection and Cursor types
40
- "RedisClient",
41
- "RedisClientAsync",
42
- "RedisConnection",
43
- "RedisConnectionAsync",
40
+ RedisClient,
41
+ RedisClientAsync,
42
+ RedisConnection,
43
+ RedisConnectionAsync,
44
44
  # Helpers
45
- "RedisConfig",
46
- "RedisDefaultConfig",
45
+ RedisConfig,
46
+ RedisDefaultConfig,
47
47
  ]
@@ -217,7 +217,7 @@ class KVDbBase:
217
217
  ...
218
218
 
219
219
 
220
- class RedisDB(KVDbBase):
220
+ class RedisDb(KVDbBase):
221
221
  context_connection: ContextVar[RedisClient | None]
222
222
 
223
223
  _connection: RedisClient
@@ -234,7 +234,7 @@ class RedisDB(KVDbBase):
234
234
  ) -> None:
235
235
  super().__init__(config=config, timeout=timeout, instance_name=instance_name)
236
236
 
237
- self.context_connection = ContextVar("RedisDB", default=None)
237
+ self.context_connection = ContextVar("RedisDb", default=None)
238
238
 
239
239
  def new_connection(self) -> RedisClient:
240
240
  tries = 0
@@ -276,7 +276,7 @@ class RedisDB(KVDbBase):
276
276
  raise Exception("Cancelled connection creation")
277
277
 
278
278
 
279
- class RedisDBAsync(KVDbBase):
279
+ class RedisDbAsync(KVDbBase):
280
280
  context_connection: ContextVar[RedisClientAsync | None]
281
281
 
282
282
  _connection: RedisClientAsync | None
@@ -293,7 +293,7 @@ class RedisDBAsync(KVDbBase):
293
293
  ) -> None:
294
294
  super().__init__(config=config, timeout=timeout, instance_name=instance_name)
295
295
 
296
- self.context_connection = ContextVar("RedisDBAsync", default=None)
296
+ self.context_connection = ContextVar("RedisDbAsync", default=None)
297
297
 
298
298
  def __del__(self) -> None:
299
299
  self.logger.debug("Dealloc")
@@ -355,7 +355,7 @@ class RedisDBAsync(KVDbBase):
355
355
  self._connection = None
356
356
 
357
357
 
358
- class RedisDBWithPool(KVDbBase):
358
+ class RedisDbWithPool(KVDbBase):
359
359
  pool: RedisConnectionPool
360
360
  context_connection: ContextVar[RedisClient | None]
361
361
 
@@ -389,7 +389,7 @@ class RedisDBWithPool(KVDbBase):
389
389
  decode_responses=True,
390
390
  )
391
391
 
392
- self.context_connection = ContextVar("RedisDBWithPool", default=None)
392
+ self.context_connection = ContextVar("RedisDbWithPool", default=None)
393
393
 
394
394
  def new_connection(self) -> RedisClient:
395
395
  tries = 0
@@ -426,7 +426,7 @@ class RedisDBWithPool(KVDbBase):
426
426
  self.pool.disconnect()
427
427
 
428
428
 
429
- class RedisDBWithPoolAsync(KVDbBase):
429
+ class RedisDbWithPoolAsync(KVDbBase):
430
430
  pool: RedisConnectionPoolAsync
431
431
  context_connection: ContextVar[RedisClientAsync | None]
432
432
 
@@ -460,7 +460,7 @@ class RedisDBWithPoolAsync(KVDbBase):
460
460
  decode_responses=True,
461
461
  )
462
462
 
463
- self.context_connection = ContextVar("RedisDBWithPoolAsync", default=None)
463
+ self.context_connection = ContextVar("RedisDbWithPoolAsync", default=None)
464
464
 
465
465
  def __del__(self) -> None:
466
466
  self.logger.debug("Dealloc")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: database_wrapper_redis
3
- Version: 0.2.17
3
+ Version: 0.2.23
4
4
  Summary: database_wrapper for Redis database
5
5
  Author-email: Gints Murans <gm@gm.lv>
6
6
  License: GNU General Public License v3.0 (GPL-3.0)
@@ -32,7 +32,7 @@ Classifier: Topic :: Software Development
32
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
33
33
  Requires-Python: >=3.8
34
34
  Description-Content-Type: text/markdown
35
- Requires-Dist: database_wrapper==0.2.17
35
+ Requires-Dist: database_wrapper==0.2.23
36
36
  Requires-Dist: redis
37
37
 
38
38
  # database_wrapper_redis
@@ -0,0 +1,2 @@
1
+ database_wrapper==0.2.23
2
+ redis
@@ -4,14 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "database_wrapper_redis"
7
- version = "0.2.17"
7
+ version = "0.2.23"
8
8
  description = "database_wrapper for Redis database"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
11
- license = {text = "GNU General Public License v3.0 (GPL-3.0)"}
12
- authors = [
13
- {name = "Gints Murans", email = "gm@gm.lv"}
14
- ]
11
+ license = { text = "GNU General Public License v3.0 (GPL-3.0)" }
12
+ authors = [{ name = "Gints Murans", email = "gm@gm.lv" }]
15
13
  classifiers = [
16
14
  "Development Status :: 4 - Beta",
17
15
  "Intended Audience :: Developers",
@@ -31,13 +29,10 @@ classifiers = [
31
29
  "Topic :: Database",
32
30
  "Topic :: Database :: Front-Ends",
33
31
  "Topic :: Software Development",
34
- "Topic :: Software Development :: Libraries :: Python Modules"
32
+ "Topic :: Software Development :: Libraries :: Python Modules",
35
33
  ]
36
34
  keywords = ["database", "wrapper", "python", "redis"]
37
- dependencies = [
38
- "database_wrapper == 0.2.17",
39
- "redis",
40
- ]
35
+ dependencies = ["database_wrapper == 0.2.23", "redis"]
41
36
 
42
37
  [project.urls]
43
38
  Homepage = "https://github.com/gintsmurans/py_database_wrapper"
@@ -1,2 +0,0 @@
1
- database_wrapper==0.2.17
2
- redis