A dict like storage backed by a yaml file or similar method
Project description
asdf
This is intended to provide a very simple way to manage data and store them to file. The main design principle is to provide as many sensible defaults as possible.
#Usage
class User(LazyStorageObject):
id: int
name: str
authorized: bool = False
class UserMapping(LazyMappingStorage):
object_class=User
filename="users.yaml"
users=UserMapping()
u=users[1]
u.name="andi"
users.to_file()
#Install
#Development git clone pip install -e
pip install -e .[dev]
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for lazymappingstorage-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b5591c7c925e51bad07721dc645ea80a6aaa5fe4938d3fe3b16586ee07032f0 |
|
MD5 | a5db6b57016a2a335b37bf78789079e4 |
|
BLAKE2b-256 | 933712667c51a48998f62030ccea5238edf0812ac7bea8db251cdfb26bdc5c30 |