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
Here are the various commands in storagepy:
#Make sure to import!!
import storagepy
#Counter to make dataset
counter=storagepy.counter("counter.txt")
#Create a new dataset based on counter. The output would be dataset_(counter).txt
file=storagepy.createfile(counter)
#Data!
data={'pipy':'yes','YND-Python':'creators'}
#Add data into dataset
storagepy.upload(file,data)
#Read dataset
data=storagepy.read(file)
print(data)
#Turn dataset into a table
table=storagepy.tablify(file)
print(table)
#Find data using the keys in the key-value pairs
find=storagepy.find("YND-Python",data)
print(find)
#Use storagepy.find() but the data is a file
find=storagepy.find("YND-Python",storagepy.read(file))
print(find)
#Encrypt datasets
storagepy.encrypt(file)
#Dencrypt datasets
storagepy.decrypt(file)
#Remove data from dictionary
storagepy.remove_dict("pipy",data)
#Remove data from file
storagepy.remove_file("pipy",file)
#Compare two datasets to find similar keys!!
keys=storagepy.similar_keys(file1,file2)
print(keys)
Changes From 0.1.1
Delete
The two new delete commands help make deleting data easier!
Compare Files
See the keys that are the same in two files!
New Project E-mail
If you had sent any emails to creativenehan@gmail.com, the email has changed. Please send your emails to the new email.
Release files for storagepy 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| storagepy-0.1.2.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| storagepy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:8.1 kB
Release files / storagepy-0.1.2.tar.gz
| Download URL | storagepy-0.1.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcff14db5a3d2d5a8e2e58752b025bb77a73e39513ae74fb4723a089af6f0625
|
|
BLAKE2b-256 checksum How to use checksums |
f591723067b1c4c3cd54a6cdb4b27953c9f9cd53d54414b1136243713ff83b2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|
Release files / storagepy-0.1.2-py3-none-any.whl
| Download URL | storagepy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4c5e8edf4bb52202d7f00537246969a168cfdd7631a5eb10c85a56953f3fb16
|
|
BLAKE2b-256 checksum How to use checksums |
71c4dffacd432b5cf095150f5d593459b2ea6abb6bb9207d3bd7bad9ad0df2ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.1
|