semvec/pypi-packages huggingface dataset:
objayson 0.0.2
Persist and reload Python settings and objects in json files
Requires Python: >=3.6

# objayson 
[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://pypi.python.org/pypi/objayson/)
[![PyPI version fury.io](https://badge.fury.io/py/objayson.svg)](https://pypi.python.org/pypi/objayson/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/objayson)](https://pypi.python.org/pypi/objayson/) [![PyPI license](https://img.shields.io/pypi/l/objayson.svg)](https://pypi.python.org/pypi/objayson/)

Persist and reload Python settings and objects in jsonpickle files

## Examples

    # functional use
    objayson_save_file('settings.json', my_dict)
    loaded_dict = objayson_load_file('settings.json')
    assert my_dict.__dict__ == loaded_dict.__dict__

    # object use
    class FancyTest(objayson.Objayson):
        def __init__(self):
            self.one_attr = 0.1221
            self.collection = []
            self.objayson_set_path("objayson-test-persist.json")
            self.objayson_load()

    test = FancyTest()
    test.objayson_save()

    test_same = FancyTest()
    assert test.__dict__ == test_same.__dict