Skip to main content

Python module for convenient storage of classes in files.

Project description

Warning: project is unstable now. At the moment, the library has just begun to be developed, so this is not the final form of the product!

Pypi version Python versions Size Pypi version

Testing status Linting

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:
    pass


# Init controller class
data_controller = DataController('PATH_TO_SAVE`S FOLDER')

# Save class as file
data_controller.freeze_class(Test())

# Get all saves classes models
loaded_classes = data_controller.get_all_saves_list()  # -> list[class instances]

Installation

$ pip install frozenclass

Installation from source

Dependencies:

  • poetry
$ git clone https://github.com/GigantPro/frozenclass.git; cd frozenclass
$ poetry run build
$ pip install $(ls -Art | tail -n 1)

poetry install:

$ curl -sSL https://install.python-poetry.org | python3 -

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.0.7a1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file frozenclass-0.0.7a1.tar.gz.

File metadata

  • Download URL: frozenclass-0.0.7a1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for frozenclass-0.0.7a1.tar.gz
Algorithm Hash digest
SHA256 c5c8aa5c1ef2a38e08dd39c4bada6d46114ba49ea38753e08670cb994b17b20c
MD5 e460d69bf47406f301902515f0b02f9b
BLAKE2b-256 46aa7e75b3b25baebec9f20d3c4873954bb6c442795dfb38a920647a8f552160

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