Skip to main content

Non official jsonblob api client

Project description

jsonblob

Non official jsonblob api client

pip install jsonblob

Official API

https://jsonblob.com/api

Usage

from jsonblob import JSONBlobClient

json_blob_client = JSONBlobClient()

blob_id = json_blob_client.create({"hello": "world"})
json_blob_client.update({"zebra": "bebra"})

print(json_blob_client.get(blob_id))

Custom Json Blob storage

from jsonblob import JSONBlobStorage

# Create blob to store keys. Usually once and than keys_blob_id is hardcoded
keys_blob_id = JSONBlobStorage.create()
# Create storage
json_blob_storage = JSONBlobStorage(keys_blob_id)

# Print keys blob id (stores keys map)
print(json_blob_storage.keys_blob_id)
# Print keys
print(json_blob_storage.keys)

# Check if key exists
if "my_key" in json_blob.keys:
    print(json_blob_storage.get("my_key"))

# Set key and value
is_new_key = json_blob_storage.set("zebra", {"hello": "world"})

# Get value
value = json_blob_storage.get("zebra")
print(value)

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

jsonblob-0.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonblob-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file jsonblob-0.0.2.tar.gz.

File metadata

  • Download URL: jsonblob-0.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for jsonblob-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7ee0f4b24a31463dbd756cd6b20a9a784dabb34442303097af61f9e4d779fb7f
MD5 c3c389369e54eaa878910e9ff3b7bec7
BLAKE2b-256 c261dc535c9166b43769e8fd0ebed84e7f1a4b83b0f87f59b35c55ea79b3feee

See more details on using hashes here.

File details

Details for the file jsonblob-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: jsonblob-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for jsonblob-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af38f16bf6643f1c76f19af97a4559bbd590eff857e31f70715a502c39237160
MD5 539cc6765703d58e6c8125bec4219f49
BLAKE2b-256 fa872ebd91246e30f45a9fdbdfe33b3849c31fd935871bf7734db113a287fa31

See more details on using hashes here.

Supported by

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