Skip to main content

A library to handle persistent memory

Project description

membank

Python library for storing data in persistent memory (sqlite, postgresql, berkeley db)

usage

memory = LoadMemory() # defaults to sqlite memory Dog = namedtuple('Dog', ['color', 'size', 'breed']) memory.create(Dog) # expects Python collections.namedtuple memory.set.dog(Dog('brown')) # stores object into database memory.get.dog() # retrieves all objects as tuple

... new process ...

memory = LoadMemory() # this works unless sqlite memory is used before memory.get.dog()

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

membank-0.2.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

membank-0.2.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file membank-0.2.1.tar.gz.

File metadata

  • Download URL: membank-0.2.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for membank-0.2.1.tar.gz
Algorithm Hash digest
SHA256 aa6b8e57addbfd830dae31898580a2094856aff42fda2069cede5091984d4cdc
MD5 9d393dca1352c1877f4fe9cbefe4a906
BLAKE2b-256 cfa98402596a187dac312b207179e02755ae7a879310e8e3da204efbefd00170

See more details on using hashes here.

File details

Details for the file membank-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: membank-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.22.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/18.0.1 rfc3986/2.0.0 colorama/0.4.3 CPython/3.8.10

File hashes

Hashes for membank-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0eeff1c6cd1628d619e17cd9e129832c8a3cd3bf960a14f32d14e45171581249
MD5 8bf4114994a26bf3db0e3e61a7d51bf0
BLAKE2b-256 64c37f910bc386ee59b1addc653e328aaad10d25d0c6aa0e57ebfe09f0a04591

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