redis-dict 3.2.2__py3-none-any.whl → 3.2.3__py3-none-any.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.
- {redis_dict-3.2.2.dist-info → redis_dict-3.2.3.dist-info}/METADATA +22 -8
- {redis_dict-3.2.2.dist-info → redis_dict-3.2.3.dist-info}/RECORD +5 -5
- {redis_dict-3.2.2.dist-info → redis_dict-3.2.3.dist-info}/LICENSE +0 -0
- {redis_dict-3.2.2.dist-info → redis_dict-3.2.3.dist-info}/WHEEL +0 -0
- {redis_dict-3.2.2.dist-info → redis_dict-3.2.3.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: redis-dict
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.3
|
4
4
|
Summary: Dictionary with Redis as storage backend
|
5
5
|
Author-email: Melvin Bijman <bijman.m.m@gmail.com>
|
6
6
|
License: MIT
|
@@ -82,6 +82,11 @@ RedisDict is a Python library that offers a convenient and familiar interface fo
|
|
82
82
|
|
83
83
|
The library includes utility functions for more complex use cases such as caching, batching, and more. By leveraging Redis for efficient key-value storage, RedisDict enables high-performance data management, maintaining efficiency even with large datasets and Redis instances.
|
84
84
|
|
85
|
+
|
86
|
+
[Usage](#Usage) | [Types](#Types) | [Expiration](#Expiration) | [Batching](#Batching) | [Custom Types](#Custom-Types) | [Security](#Security)
|
87
|
+
|
88
|
+
---
|
89
|
+
|
85
90
|
## Features
|
86
91
|
|
87
92
|
* Dictionary-like interface: Use familiar Python dictionary syntax to interact with Redis.
|
@@ -94,7 +99,7 @@ The library includes utility functions for more complex use cases such as cachin
|
|
94
99
|
* Custom data: types: Add custom types encoding/decoding to store your data types.
|
95
100
|
* Encryption: allows for storing data encrypted, while retaining the simple dictionary interface.
|
96
101
|
|
97
|
-
##
|
102
|
+
## Usage
|
98
103
|
|
99
104
|
```bash
|
100
105
|
pip install redis-dict
|
@@ -349,7 +354,7 @@ print(dic)
|
|
349
354
|
```
|
350
355
|
|
351
356
|
### Additional Examples
|
352
|
-
For more advanced examples of RedisDict, please refer to the unit-test files in the repository. All features and functionalities are thoroughly tested in [unit tests (here)](https://github.com/Attumm/redis-dict/blob/main/tests/unit/tests.py#L1) Or take a look at load test for batching [load test](https://github.com/Attumm/redis-dict/blob/main/tests/load/
|
357
|
+
For more advanced examples of RedisDict, please refer to the unit-test files in the repository. All features and functionalities are thoroughly tested in [unit tests (here)](https://github.com/Attumm/redis-dict/blob/main/tests/unit/tests.py#L1) Or take a look at load test for batching [load test](https://github.com/Attumm/redis-dict/blob/main/tests/load/tests_load.py#L1).
|
353
358
|
The unit-tests can be as used as a starting point.
|
354
359
|
|
355
360
|
### Nested types
|
@@ -374,6 +379,7 @@ encoded = json.dumps(data, cls=RedisDictJSONEncoder)
|
|
374
379
|
result = json.loads(encoded, cls=RedisDictJSONDecoder)
|
375
380
|
```
|
376
381
|
|
382
|
+
## Custom Types
|
377
383
|
### Extending RedisDict with Custom Types
|
378
384
|
|
379
385
|
RedisDict supports custom type serialization. Here's how to add a new type:
|
@@ -423,14 +429,22 @@ dic["3"] = "three"
|
|
423
429
|
assert list(dic.keys()) == ["1", "2", "3"]
|
424
430
|
```
|
425
431
|
|
426
|
-
For more information on [extending types](https://github.com/Attumm/redis-dict/blob/main/tests/unit/
|
427
|
-
|
432
|
+
For more information on [extending types](https://github.com/Attumm/redis-dict/blob/main/tests/unit/tests_extend_types.py).
|
433
|
+
|
434
|
+
## Security
|
435
|
+
|
436
|
+
Security is an important aspect of production projects. Redis-dict was developed within a strict compliance environment.
|
437
|
+
Best practice in Redis is to use passwords and network encryption through TLS. However, Redis-dict offers an additional feature by using extended types.
|
438
|
+
It is possible to store the values of keys encrypted. The values are encrypted with AES GCM, which is currently considered best practice for security.
|
439
|
+
|
440
|
+
### Storage Encryption
|
441
|
+
For storing data values encrypted can be achieved using encrypted values, more documentation on that later.
|
442
|
+
For now code example within this test file. [encrypted test](https://github.com/Attumm/redis-dict/blob/main/tests/unit/tests_encrypt.py).
|
443
|
+
|
444
|
+
### Encryption Network
|
428
445
|
Setup guide for configuring and utilizing encrypted Redis TLS for redis-dict.
|
429
446
|
[Setup guide](https://github.com/Attumm/redis-dict/blob/main/docs/tutorials/encrypted_redis.MD)
|
430
447
|
|
431
|
-
### Redis Storage Encryption
|
432
|
-
For storing encrypted data values, it's possible to use extended types. Take a look at this [encrypted test](https://github.com/Attumm/redis-dict/blob/main/tests/unit/encrypt_tests.py).
|
433
|
-
|
434
448
|
### Tests
|
435
449
|
The RedisDict library includes a comprehensive suite of tests that ensure its correctness and resilience. The test suite covers various data types, edge cases, and error handling scenarios. It also employs the Hypothesis library for property-based testing, which provides fuzz testing to evaluate the implementation
|
436
450
|
|
@@ -3,8 +3,8 @@ redis_dict/core.py,sha256=E9mry6BqFnMjxuPtYBfQfuUPzWNzF65_dILMa-VgI4A,36994
|
|
3
3
|
redis_dict/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
redis_dict/python_dict.py,sha256=FLsvxOfgkzsBJdRMkMrZw3w1usoGs-0FEL-j_ckfKts,12829
|
5
5
|
redis_dict/type_management.py,sha256=ruyqswKqfte_G-ClTlV6ZuTmrTVkSsHFCy9LEdgblac,7700
|
6
|
-
redis_dict-3.2.
|
7
|
-
redis_dict-3.2.
|
8
|
-
redis_dict-3.2.
|
9
|
-
redis_dict-3.2.
|
10
|
-
redis_dict-3.2.
|
6
|
+
redis_dict-3.2.3.dist-info/LICENSE,sha256=-QiLwYznh_vNUSz337k0faP9Jl0dgtCIHVZ39Uyl6cA,1070
|
7
|
+
redis_dict-3.2.3.dist-info/METADATA,sha256=v9NrVJ0-d27ZUx0LwI_cUtdibEWjX7mw9XzQubSjGHs,18672
|
8
|
+
redis_dict-3.2.3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
9
|
+
redis_dict-3.2.3.dist-info/top_level.txt,sha256=Wyp5Xvq_imoxvu-c-Le1rbTZ3pYM5BF440H9YAcgBZ8,11
|
10
|
+
redis_dict-3.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|