A lightweight state framework for Python applications
Project description
sqlstate
Super simple state manager for Python3
Usage
Define state
import sqlstate
state = sqlstate.State('dog.tmp') # This creates a file called dog.tmp where your state will be saved.
Store
dogs = [{'name': 'Michael Clayton', 'breed': 'Labrador'}]
state.store(key='dogs', payload=dogs)
Get
dogs = state.get(key='dogs')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlstate-0.0.2.tar.gz
(1.8 kB
view details)
File details
Details for the file sqlstate-0.0.2.tar.gz
.
File metadata
- Download URL: sqlstate-0.0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 105b7edb28cf22e8f619346e36c732071b0011bd32856466246235e6fb73e148 |
|
MD5 | 7273ce36aea70517a7838762ecb05377 |
|
BLAKE2b-256 | 21614f5d5c0bdfd535d18b23ce3d09d8e6cf7fc3254c05689021a93b437ca39d |