Skip to main content

jmstorage

Unit Tests JMStorage on PyPI

Thread safe key:value storage with multiple back-end options.

Install

pip install jmstorage

Storage Options

  1. disk(local file system)
    • Currently, this is the only supported option.
    • This is thread safe as the library acquires a thread lock during write operations.
  2. Redis
    • In Development, will update as it becomes available.
  3. Sqlite
    • In Development, will update as it becomes available.
  4. MySQL
    • In Development, will update as it becomes available.
  5. PostgreSQL
    • In Development, will update as it becomes available.

How to Use

from jmstorage import Cache

c = Cache(namespace="namespace-value", path="./path_to_local_disk_file/")

# Set Value
c.set("my_key", "my_value")

# Read Value
my_val = c.get("my_key")
# > "my_value"

# Pop Value
my_val = c.pop("my_key")
# > "my_value"
c.get("my_key")
# > None


# Delete Value
c.delete("my_key")
c.get("my_key")
# > None

# Truncate Storage
c.truncate()
c.get("my_key")
# > None

Metadata

Release files for jmstorage 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jmstorage 0.0.1
File Size Uploaded
jmstorage-0.0.1.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jmstorage 0.0.1
File Interpreter ABI Platform
jmstorage-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / jmstorage-0.0.1.tar.gz

Download URL jmstorage-0.0.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
912057bf3c62ed17689aa1b894f87864488a67573a276c28aa001166680c7ea7
BLAKE2b-256 checksum
How to use checksums
12217a3a8c4da55e8b58699133a3737fb3530462b166d3cd2d2d845f8347c92b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release files / jmstorage-0.0.1-py3-none-any.whl

Download URL jmstorage-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
451a683ce5826d695b77806b11f61969b7c8d8a2dd663392cf9f025f37c365f7
BLAKE2b-256 checksum
How to use checksums
503ce88cec0210203fb56804b1489f848c24f686478326bdca68f44294cb91a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.18

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page