Skip to main content

Simple Persistent Python Storage

Project description

Boydem - Simple Persistent Python Storage

What is it good for?

  • Debugging multiple sessions in parallel.
  • Keep objects between interpreter session.
  • Storing random objects for using later.

What is this name "boydem"?

It's Attic in Yiddish 😊

Install

pip install boydem

Usage

>>> from boydem import boydem

>>> boydem
Nothing here 😳

>>> boydem.a = 3

>>> boydem[123] = {"key": "val"}

>>> boydem
a: 3
123: {'key': 'val'}

>>> "a" in boydem
True

>>> 123 in boydem
True

>>> "bla" in boydem
False

>>> len(boydem)
2

>>> for key, val in boydem:
...     print(f"{key}: {val}")
...
a: 3
123: {'key': 'val'}

>>> boydem.keys()
dict_keys(['a', 123])

>>> boydem.values()
dict_values([3, {'key': 'val'}])

>>> boydem.items()
dict_items([('a', 3), (123, {'key': 'val'})])

>>> boydem.clear()
Nothing here 😳

>>> boydem.is_it_here = True

>>> exit()

$ python
Python 3.8.0 ...
>>> from boydem import boydem

>>> boydem
is_it_here: True

Development

git clone https://github.com/omrirz/boydem.git
cd boydem
pip install -r requirements.txt

Test

tox

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

boydem-0.0.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

boydem-0.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file boydem-0.0.0.tar.gz.

File metadata

  • Download URL: boydem-0.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for boydem-0.0.0.tar.gz
Algorithm Hash digest
SHA256 1c21637868a986bea7aab0684c9530ce117ff7c3b69538183f795977b8ee04e5
MD5 b2f73bccf37513c1247662b526c96392
BLAKE2b-256 d804b9cb84d01996cea28b54f025681801087dafa13cdbfecefd68315c275ce8

See more details on using hashes here.

File details

Details for the file boydem-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: boydem-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for boydem-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 921ac34d5a64a7579daabbfc3362a5d50ce41438f916a8fa0cc5235a27f10406
MD5 e4fda77c07562ca52781873ce02f89a0
BLAKE2b-256 ffe7e2a35644b57e24b614983896c9522987156bd284e8a30a76a82ee5caa7a4

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