Metadata-Version: 2.4
Name: globalite
Version: 0.0.1
Summary: Easy global variables
Author: Bakhoj
Author-email: Bakhoj <anders2108@gmail.com>
Project-URL: Homepage, https://github.com/bakhoj/globalite
Project-URL: Issues, https://github.com/bakhoj/globalite/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: license-file
Dynamic: requires-python

# 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|⚠️~1~|✅|⚠️~1~|
|custom classes|❌~2~|❌~2~|❌~2~|


⚠️~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:
```python
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
```
