Skip to main content

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 a new storage file

create("data.txt")

Create a file

#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)

Release files for storagepy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for storagepy 0.1.1
File Size Uploaded
storagepy-0.1.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for storagepy 0.1.1
File Interpreter ABI Platform
storagepy-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size:7.4 kB

Release files / storagepy-0.1.1.tar.gz

Download URL storagepy-0.1.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
031e2a17944999194374449efc075dd5683439906a1160c1770d8b75099dc8fc
BLAKE2b-256 checksum
How to use checksums
caaed53144ae7efc229646b74318e7b118929268cd59e7186dc852f5214c5a25
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.1-py3-none-any.whl

Download URL storagepy-0.1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
195537488eb90252454adc67d80e262b0e93531ae6eabfd0875f8a8bbf6ed279
BLAKE2b-256 checksum
How to use checksums
68f89ae1773beb25c0e06acabf99cf0b34415af363ff56eb536dc6bb571ec22f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page