Skip to main content

A simple, reactive local storage library.

Project description

Stora

Stora is a simple, reactive local storage library.

>>> from stora import stora
>>> apple = {"name": "Apple", "price": "10", "size": "small"}
>>> s = stora(apple)
>>> s.state
'{"name": "Apple", "price": "10", "size": "small"}'
>>> s.file
'/home/user/project/state.json'
>>> s.state["size"] = "middle"
>>> s.state
'{"name": "Apple", "price": "10", "size": "middle"}'

Stora allows you to save dict to local as json extremely easily. There’s no need to manually open file and read, or save file after change your data — but nowadays, just editor the state, and stora will automatically save for you!

Stora is a new Python package, welcome issue and pull request.

Installing stora and Supported Versions

Stora is available on PyPI:

$ python3 -m pip install stora

Stora only support Python 3.6+.

Supported Features & Best–Practices

Stora is ready for simple data storage.

if you need high performance, use a professional database is a better choice.

  • Data persistence saving.
  • Synchronize data saving to local.
  • Customizable file names.
  • Customize the save directory.
  • Save format is json by default.
  • Read format is dict by default.

API Reference and User Guide available on Read the Docs

Coming soon.

Cloning the repository

When cloning the Requests repository, you may need to add the -c fetch.fsck.badTimezone=ignore flag to avoid an error about a bad commit (see this issue for more background):

git clone https://github.com/louisyoungx/stora.git

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

stora-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

stora-0.0.1-py3-none-any.whl (3.9 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