A simple text-based storage system where you can create tables, store data, and more! Encryption is included for data files.
Project description
storagepy
storagepy is a lightweight text-based key-value storage system with strong AES encryption.
All functionality is contained in a single file: core.py.
Features
- Simple key-value text storage
- Automatic AES encryption key generation
- Strong encryption/decryption using Fernet (AES-128)
- Table formatting
- Key lookup
- Easy file creation
Installation
pip install storagepy
Usage
Create a file from storagepy import create
Create a new storage file
create("data.txt")
Create a file
from storagepy.core import createfile
createfile("data.txt")
### Upload data
from storagepy.core import upload
upload("data.txt", {"Name": "John", "Age": 15})
### Encrypt file
from storagepy.core import encrypt
encrypt("data.txt")
### Decrypt file
from storagepy.core import decrypt
decrypt("data.txt")
### Tablify (format)
from storagepy.core import tablify
print(tablify("data.txt"))
### Find data
from storagepy.core import find
print(find("Name", {"Name": "John", "Age": 15}))
###License
MIT
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file storagepy-0.1.0.tar.gz.
File metadata
- Download URL: storagepy-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85c022a4352c7e7dfec2c1afb76d446684295d32a8e5f0b2ceb5136f4db60e5a
|
|
| MD5 |
5a469c22d97f463036d2ebc6401e28de
|
|
| BLAKE2b-256 |
5a1607de4c09f8398d922549708e0cbb962a0b7cf2d24c10343a77dfe3d228c5
|
File details
Details for the file storagepy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: storagepy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8642f440836617870e1b320541ffd6bb02de965c23eb5fce06d0d99357c454eb
|
|
| MD5 |
b896a99b5d7f8ab2a7f1918979614d28
|
|
| BLAKE2b-256 |
76de796e875afabf3ca251bc9b405ffa130863f9662a67ec0d95a04a4742931a
|