Skip to main content

PyTiny is an in-memory key–value database written in Python.

Project description

PyTiny

PyTiny is an in-memory key–value database written in Python.

Set up

from pytiny import PyTiny

db = PyTiny()

Functions

Set

Set a key and value

db.set("Key")

Get

Get a value from a key

db.get("Key", "Value")

Delete

Delete a value from a key

db.delete("Key")

Reset

Reset the data. All data stored will be delete.

db.reset()

Export

Export the data to a .db file

db.export()

Bring

Import a file. This will be delete all data stored before, and will be restore the new data from the file.

db.bring("file_name")

Author

Alvaro Azael Rodriguez Rodriguez - (Development Lead) [Gitlab, Twitter]

Licence

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pytiny-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page