Skip to main content

A simple json repository

Project description

json_repository

travis build Pypi Pypi - downloads month

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)

Uploaded Source

Built Distribution

json_repository-0.1.1-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page