Skip to main content

A dictionary that supports dot notation access, including nested dicts.

Project description

classyDict

classyDict is a Python package that provides a dictionary with dot notation access, including support for nested dictionaries.

Features

  • Access dictionary keys using dot notation.
  • Supports nested dictionaries with dot notation.

Installation

To install classyDict, you can use pip:

pip install classyDict

Usage

Here's a simple example of how to use classyDict:

from classyDict import ClassyDict

# Create a ClassyDict instance
my_dict = ClassyDict({'key1': 'value1', 'key2': {'nestedKey': 'nestedValue'}})

# Access values using dot notation
print(my_dict.key1)  # Output: value1
print(my_dict.key2.nestedKey)  # Output: nestedValue

Contributing

Contributions are welcome! Please feel free to submit a Pull Request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Hassan Rasool - hassanrasool1057@gmail.com

Acknowledgments

  • Inspired by the need for a more intuitive way to access dictionary keys in Python.

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

classydict-0.1.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

classydict-0.1.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file classydict-0.1.3.tar.gz.

File metadata

  • Download URL: classydict-0.1.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for classydict-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4343a5de2fcb8c8d968c281a4de0b24a853aa097ca8339eccdf6ce773a8840dc
MD5 cf8697f7583c03fbfae1319fdbaffb75
BLAKE2b-256 43d36e61256b72c2d1093436b47e4003982b59c31fb023cc564d3ba92e8d81b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for classydict-0.1.3.tar.gz:

Publisher: publish.yml on HassanRasoo98/classy-dict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file classydict-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: classydict-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for classydict-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 831bd4026c9b13944b845a5741c7faac857204c72f467bdfc4ddcaa893923062
MD5 bf73bf4759fb20133e247fc595095da9
BLAKE2b-256 460fb313501fb856f903c121fc239df253bc2042b8cbccb20f8d4f8aec59c18d

See more details on using hashes here.

Provenance

The following attestation bundles were made for classydict-0.1.3-py3-none-any.whl:

Publisher: publish.yml on HassanRasoo98/classy-dict

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page