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 details)
Built Distribution
File details
Details for the file json_repository-0.2.2.tar.gz
.
File metadata
- Download URL: json_repository-0.2.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 713d3be9c6bfa992ce7651d239c5fcb4fb07fed73d81ec9df66b31e3612103ca |
|
MD5 | 92fa1333b7057862314638689fae141c |
|
BLAKE2b-256 | f481e1d1e411f9c7bd4c63e38b019c563cc431deae6818be08bc4a17ae15bc35 |
File details
Details for the file json_repository-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: json_repository-0.2.2-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7450c71918e20a5206f11b546e75f1d82ee7e67057e02948e3496415ef88f584 |
|
MD5 | 3ac8991407fc99eaa951f0d73efde324 |
|
BLAKE2b-256 | a1cbd0b9ce72a65e1c82e58bbc8cb2584e3ae8a582504a055ed87ac3d872c9ff |