Metadata-Version: 2.4
Name: storagepy
Version: 0.1.1
Summary: A simple text-based storage system where you can create tables, store data, and more! Encryption is included for data files.
Author: Yuvaan Pandita
Author-email: Nehan Nishad <creativenehan@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
Create a file
from storagepy import *

# Create a new storage file
create("data.txt")
### Create a file
```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)
