Skip to main content

A cache-based python ORM.

Project description

A cache-based python ORM -- supports Redis, Memcached.

Build Status codecov PyPI PyPI - License PyPI - Python Version

CacheBackend

  • BaseBackend
  • SimpleBackend
  • RedisBackend
  • MemcachedBackend

Methods

  • set(key, value)
  • get(key)
  • delete(key)
  • set_many(mapping)
  • get_many(*keys)
  • delete_many(*keys)
  • has(key)

Serializer

  • json
  • msgpack
  • pickle
  • protobuf

Registry

All serializers are registered to a registry singleton. Provide json, msgpack, pickle three preset serializers.

You can register your own serializer, such as a Protobuf serializer that registers a Person message.

registry.register("protobuf.person", ProtobufSerializer(person_pb2.Person))

ModelBase

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

cacheorm-0.0.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

cacheorm-0.0.1-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cacheorm-0.0.1.tar.gz.

File metadata

  • Download URL: cacheorm-0.0.1.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.6

File hashes

Hashes for cacheorm-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0494cad2958787385470dd85482addb84631e6fb15f4292db174ef0e2cfcdb76
MD5 aaa78f907b113a823d13806a1dfbc53d
BLAKE2b-256 8ba8858ec8b41d568cbeaf13574993adb507165360ef7987628f6b9da9855d61

See more details on using hashes here.

File details

Details for the file cacheorm-0.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: cacheorm-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.6

File hashes

Hashes for cacheorm-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fede5d21ade5a4447f46dcf17d7217a6334a81f40b001b48285dcd1a014ab700
MD5 667ed16916b7c9d617b98a8e43af2be8
BLAKE2b-256 d0c3484a5234754c40515eef459073f5c82683cb905bb919b9cfde48684ae266

See more details on using hashes here.

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