Skip to main content

python version PyPI version Downloads Status Downloads License pypi format Maintenance

entity_addict

An extended version of addict.

It can be very useful as a decorator. It can be converted to Dict when the function returns a value. Can support a single dictionary, list dictionary, or multi deep dictionary of list.

install via pip

pip install entiry_addict

examples:

from entity_addict import entity_addict
    
@entity_addict
def get_dict_data_a():
    return {"key_name": "value"}

data = get_dict_data_a()
print(data.key_name)

@entity_addict
def get_dict_data_b():
    return [{"key_name": "value"}]

for data in get_dict_data_b():
    print(data.key_name)

@entity_addict
def get_dict_data_c():
    return [
        {"key_name": "value"},
        {"key": [{"sub_key1": 1}, {"sub_key2": 2}]}
    ]
data = get_dict_data_c()
print(data[1].key[1].sub_key2)

Metadata

Release files for entity-addict 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entity-addict 1.2.1
File Size Uploaded
entity_addict-1.2.1.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for entity-addict 1.2.1
File Interpreter ABI Platform
entity_addict-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / entity_addict-1.2.1.tar.gz

Download URL entity_addict-1.2.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eebbfdbc4ec449c12bdfb63a070196865c5b3e77e75b38c3e1551a722a57a49e
BLAKE2b-256 checksum
How to use checksums
331dc11711620181226bb59184c264b303aa3bdf167def5bee6c95b12b01cfd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.0 Linux/5.11.0-1021-azure

Release files / entity_addict-1.2.1-py3-none-any.whl

Download URL entity_addict-1.2.1-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed967519c0f5d5db1ff937df164b38c8d8521a7c9b53340f0847455006730a91
BLAKE2b-256 checksum
How to use checksums
43888b22bc8e34450dc593cc73698a425587a80133c05dcb093d9ad257030c2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.0 Linux/5.11.0-1021-azure

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page