Skip to main content

A database that saves its state in a file every time it is modified

Project description

README

Build Status Downloads

A database that saves its state in a file every time it is modified. See example.py for usage.

Features:

  • Allows 0 to n tests to be run on setting a variable. If these tests don't pass, an exception is raised.
  • Records the time that a database key is last set.

Setup

Option 1: Clone the repository

Best if you want to modify or view the code - note that you can do the following inside of a virtual environment

git clone https://github.com/robotpt/pickle-database

An easy way to setup the repository with its dependencies and with your Python path is to use pip.

pip install -e pickle-database

Tests can be run with the following commands.

cd pickle-database
python3 -m unittest

Option 2: Use Pip

Best if you just want to use it

python3 -m pip install pickle_database

Project details


Download files

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

Source Distribution

pickle-database-0.0.5.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file pickle-database-0.0.5.tar.gz.

File metadata

  • Download URL: pickle-database-0.0.5.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9

File hashes

Hashes for pickle-database-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e959735ce6920459ceeeb726fc9f08e69c395e48a67a629752c6c8044860b784
MD5 a2beb6f3d22003791d5a95cd1245a0be
BLAKE2b-256 1f895ff455239197a3d231db16b05cbe57781eaeeb9794621f413f32f8a99cbc

See more details on using hashes here.

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