dot-accessible dictionaries (dicy) and dictionary-containing encyclopedia classes (ency)
Project description
dot-accessible dictionaries and dictionary-containing classes
dicy: dot-accessible dictionary
ency: dot-accessible "ecyclopedia" - a custom class containing one or more dictionaries, and possibly other data.
This is intended to be used as an abstract class, inherited in your custom data class.
If there are multiple contained dictionaries, they are prioritized based on the explicit ordering. When there are two or more identical keys exist in contained dictionaries, the priority determines which is accessed.
Features:
- dot-accessed create*/read/update/delete operations for dictionary keys
- IDE auto-completion**
- pickle serialization
*: Key creation can be dot-accessed for dicy. In ency, dot-create adds a new class attribute, as is standard in python.
**: Auto-complete is tested in pycharm but others should work.
Installation
pip install dotsy
Usage
from dotsy import dicy, ency
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.