Skip to main content

a varbox allows to store parmanently python variables between sessions

Project description

varboxes

A varbox is an object to store permanently objects between python session. It uses json module, so it restricts the type of variable to store accordingely.

Installation

pip install varboxes

Usage

from varboxes import VarBox
vb = VarBox('MyApp')
# you can create any variable as attribute of the varbox:
vb.a = 1
# now, you could quit this session, restart the computer, and recreate a varbox (with the same app name):
vb2 = VarBox('MyApp')
print(vb2.a)
>>>  1
# and the attribute has been remembered!!

Features

  • to use permanent variable between session, use attribute of a varbox

  • the attribute will be saved on the disk and retrieved later

License

The project is licensed under GNU GENERAL PUBLIC LICENSE v3.0

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

varboxes-1.1.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

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

varboxes-1.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file varboxes-1.1.tar.gz.

File metadata

  • Download URL: varboxes-1.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for varboxes-1.1.tar.gz
Algorithm Hash digest
SHA256 7c98b9d21975b64dbc96af5e62b33a392dd221b35498ed338eefcc85b33eb374
MD5 2b3d926896c25590328bd6b489d859d4
BLAKE2b-256 28c1828e859bc39fd51d5ae50dac95aae121110e88b46e7e900f74bff202045d

See more details on using hashes here.

File details

Details for the file varboxes-1.1-py3-none-any.whl.

File metadata

  • Download URL: varboxes-1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for varboxes-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e24053110b759015c76670c2a6f5cc0e9d9822f0522308ab968a57233e05f321
MD5 06ede881783177c1d5882646fed12881
BLAKE2b-256 5884febeae004099a82bba03489a30ac534a3af9ae6aeaf65e2866ec6e115792

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