Easy global variables
Project description
Globalite
A python library for easy global variables saved to a SQLite db and accessable from multiple programs at ones.
Supported types
| Type | Read | Write | Delete |
|---|---|---|---|
| bool | ✅ | ✅ | ✅ |
| int | ✅ | ✅ | ✅ |
| float | ✅ | ✅ | ✅ |
| str | ✅ | ✅ | ✅ |
| dict | ⚠️ |
✅ | ⚠️ |
| custom classes | ❌ |
❌ |
❌ |
⚠️1: When reading a dict you will receive a new instance of the dict and not a reference.
meaning that the following is the case:
import globalite
gl = globalite.get_default_globalite()
gl.a_dict = {"a": 1}
assertEqual(gl.a_dict, gl.a_dict) # is true
assertIs(gl.a_dict, gl.a_dict) # is false
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
globalite-0.0.1.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file globalite-0.0.1.tar.gz.
File metadata
- Download URL: globalite-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8ff7dc79cc941b9259a87cc4488192c5a3953cadd9e13f17f2f2e4755a60c9
|
|
| MD5 |
cf4df9c0cde58dfd8937ecca069dbc59
|
|
| BLAKE2b-256 |
a4151242831a09a820a668f76e38c9ffb97e356e0f862e7e98b95317b9cbf59f
|
File details
Details for the file globalite-0.0.1-py3-none-any.whl.
File metadata
- Download URL: globalite-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de02c58e4b058316bc09ac43210e728d32bcf5d432ea7cb3a238f16ab4644fe1
|
|
| MD5 |
1fdbafb86f2c1fdb7e6a7d1d157c266e
|
|
| BLAKE2b-256 |
5a231b3c401248a6cb9cfbfa7e066f0f9fe62218f065280c5685c4ff278adf4f
|