Python module for convenient storage of classes in files.
Reason this release was yanked:
Critical errors with imports
Project description
FrozenClass
This library was created in order to be able to save classes with a single line, as well as load them!
Example
from frozenclass import DataController
# Test class
class Test:
test_var = 10
# Init controller class
data_controller = DataController('PATH_TO_SAVE`S FOLDER')
# Save class as file
save_name = data_controller.freeze_class(Test())
# Get all saves classes models
loaded_classes = data_controller.load_save(save_name) # -> Test object
# Get var value
print(test_var.test_var) # -> 10
Installation
$ pip install frozenclass
Installation from source
Dependencies:
- poetry
$ git clone https://github.com/GigantPro/frozenclass.git; cd frozenclass-main
$ poetry run build; cd dist
$ pip install $(ls -Art | tail -n 1)
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
frozenclass-0.0.9.tar.gz
(6.1 kB
view details)
File details
Details for the file frozenclass-0.0.9.tar.gz
.
File metadata
- Download URL: frozenclass-0.0.9.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c81cfc7dc8bbd74f2d06e3b72595d3e38580d9128660237c589dd632a8e0a8 |
|
MD5 | f11b601619832e153b45a9a1b308e7ac |
|
BLAKE2b-256 | 170ee28f93ef2f2a0045ea3d9a3936e347c9444d7d4a8f11c864728ca722acd2 |