Skip to main content

Memory cache to use with Py Easy REST

Project description

Lint Build and Test Upload Package PyPI version

py-easy-rest-memory-cache

Cache lib to use with py-easy-rest

Getting Started

How to install

pip install py-easy-rest py-easy-rest-memory-cache

Integrating with your py-easy-rest app

#main.py

from py_easy_rest.server import App
from py-easy-rest-memory-cache.memory_cache import MemoryCache


config = {
    "name": "Project Name",
    "schemas": [{
        "name": "Mock",
        "slug": "mock",
        "properties": {
            "name": {"type": "string"},
            "age": {"type": "integer"},
        },
        "required": ["name"],
    }]
}

cache = MemoryCache()

pyrApp = App(config, cache=cache)

pyrApp.app.run(
    host='0.0.0.0',
    port=8000,
    debug=True,
    auto_reload=True,
)

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

py-easy-rest-memory-cache-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file py-easy-rest-memory-cache-0.1.0.tar.gz.

File metadata

  • Download URL: py-easy-rest-memory-cache-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for py-easy-rest-memory-cache-0.1.0.tar.gz
Algorithm Hash digest
SHA256 25a490b92b867ba2c2d1c556728f76b716bc043198a5c952fe76da8806d4f2b2
MD5 8ee1e175f8cb9be5d58944f23a1780a2
BLAKE2b-256 6795bdbc28f74d3c1d960ec4bdfb4e8ccf99c989ba039312f52e4f9c1936e317

See more details on using hashes here.

File details

Details for the file py_easy_rest_memory_cache-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: py_easy_rest_memory_cache-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for py_easy_rest_memory_cache-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39fc2956a213382758450a79bcfa288616f60517ccd2728594207840c7e58f67
MD5 9b231c5cc80d060b349409e2775b7b4e
BLAKE2b-256 10579eb7364f26e85d603992068e570aa7bc2f6f130447516a9d8b71d1778dca

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