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.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for json_repository-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 328e3664f98c3a48b2c4f05b3d4b0f6530e51f1820c0228841bbe694acbc85a1 |
|
MD5 | b38150df73ae8842b465a8f0f0b1e7ab |
|
BLAKE2b-256 | f04b10374970e824e69a5104a1221e381351d8d6d7bb9fa3b464a6ea0728e3eb |