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 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.1.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for json_repository-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2a9fbfafaacb1ce5b4c9dea5f8d3709a4282ea9379897bac152a9c9ca1161c2 |
|
MD5 | bbec1bcb0cfaad3d0df07c299deff177 |
|
BLAKE2b-256 | c23bf3993f6463087cea38d0f20ed7a226f498b619a8647de668531c8d69750e |