Metadata-Version: 2.4
Name: storagepy
Version: 0.1.2
Summary: A simple text-based storage system where you can create tables, store data, and more! Encryption is included for data files.
Author-email: Yuvaan Pandita <yuvaanpandita@gmail.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography
Dynamic: license-file

# 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:
```python
#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.
