Skip to main content

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!

Pypi version Python versions Size Pypi version

Testing status Linting

Read the docs

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


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.1.1.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file frozenclass-0.1.1.tar.gz.

File metadata

  • Download URL: frozenclass-0.1.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for frozenclass-0.1.1.tar.gz
Algorithm Hash digest
SHA256 54b96067ca417ab123fe6d7d02e6c8268cb21ed43bda31cb4d234a426d34ebf5
MD5 7db28142ca9583e1024e0b827be07482
BLAKE2b-256 e661dada6a71fd5293138c2e90174759dda58224954a8692a6f18e66f678b03b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page