CLI utility and library for creating encrypted redis dump.
Project description
Redis Dumper
CLI utility and library for creating encrypted redis dump.
Install
pip install redis_dumper
Use in CLI
redis_dumper [OPTIONS] COMMAND [ARGS]...
Use in your code
Examples:
import io
import aioredis
import redis_dumper
REDIS_ADDR = 'redis://10.0.0.1:6379'
PASSWORD = 'qwerty'
FILE_PATH = 'mydump.rdump'
async def dump_to_file_example():
await redis_dumper.dump_to_file(REDIS_ADDR, PASSWORD, FILE_PATH)
async def dump_to_bytesio_example():
dump = await redis_dumper.dump_to_bytesio(REDIS_ADDR, PASSWORD)
async def restore_from_file_example():
await redis_dumper.restore_from_file(REDIS_ADDR, PASSWORD, FILE_PATH)
async def restore_from_bytesio_example(dump: io.BytesIO):
await redis_dumper.restore_from_bytesio(REDIS_ADDR, PASSWORD, dump)
# you can also use the already created aioredis.Redis instance
async def example_with_created_redis():
redis = await aioredis.create_redis(REDIS_ADDR)
dump = await redis_dumper.dump_to_bytesio(redis, PASSWORD)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redis_dumper-0.1.0.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file redis_dumper-0.1.0.tar.gz
.
File metadata
- Download URL: redis_dumper-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19812d2f3c22f41ab2c8ca5cd641c6d8de55cd0576a4dafde34b7cae01723679 |
|
MD5 | 6411e52b443a3238686d60c49124a836 |
|
BLAKE2b-256 | 8699b54bfc62208d4d4584bae1f191fb8be43895b05339f1f0c29abef55708b0 |
File details
Details for the file redis_dumper-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: redis_dumper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e15459e661cfae8b0733bb6d21dbcb56b5c973be73718251e508974b8b76c28c |
|
MD5 | 8e12625d0de6dee5aa84a6b6c2d8da67 |
|
BLAKE2b-256 | e04e5bf88ce1a793e79a233bee7e7bb77ae35ed77b006f62ac6f4ab5bc207feb |