A simple json repository
Project description
json_repository
Install
https://pypi.org/project/json-repository/ pip install json-repository
Examples
You can also go to tests to check a good how-to!
Creating custom repository
class Foo(object):
foo = None
bar = None
id = None
class FoobarRepository(BaseJsonRepository):
def __init__(self):
super(FoobarRepository, self).__init__(Foo)
using created repository
with FoobarRepository() as repo:
for entity in repo.get_all():
repo.delete(entity)
repo.context.commit()
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
json_repository-0.2.2.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for json_repository-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7450c71918e20a5206f11b546e75f1d82ee7e67057e02948e3496415ef88f584 |
|
MD5 | 3ac8991407fc99eaa951f0d73efde324 |
|
BLAKE2b-256 | a1cbd0b9ce72a65e1c82e58bbc8cb2584e3ae8a582504a055ed87ac3d872c9ff |