Skip to main content

Super Charged Io Dicts

Project description

sio-dict

Super Charged Io Dicts

Installation

pip install sioDict

Features

  • OneLayerDict, OneLayerList are auto savable dict/list that supports depth 1
  • SioList, SioDict supports infinite nesting with customizable _save, _load and _clear io methods
  • variants contain prebuilt sioDict implementations
  • functions like getDeep, setDeep, setDeepSimple are utility functions that can be used for any dict

Example Usage

from sioDict import SioDict, SioList

d = SioDict(
    "test.json",
    {"a" : 1},
    reset=True
)

d["a"] = {
    "b" : 2
}

# expect test.json =>  {"a": {"b": 2}}

License

MIT

Acknowledgements

  • Peter Wendl

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

sioDict-0.4.1.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

sioDict-0.4.1-py3-none-any.whl (10.8 kB view hashes)

Uploaded Python 3

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