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.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for json_repository-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28280a613b72281e56a8957443d5c0fbd31c770140e44cdf6bffbbd43bad33ca |
|
MD5 | 57d6c6b2783a9c8ff904a0b79e32e482 |
|
BLAKE2b-256 | fc72975b18177dfd1b1e3111d9854591fe268ee696996a06b33f6f47c147d45a |