Skip to main content

No project description provided

Project description

Simple Dotdict

The dotdict class is a dictionary that allows access to its elements using dot notation. It inherits from the built-in dict class in Python.

Installation

To install simple-dotdict, you can use pip:

pip install simple-dotdict

Usage

Here is an example of how to use the dotdict class:

from simple_dotdict import dotdict

d = dotdict({'key': 'value'})
print(d.key)  # Outputs: value

You can also set and delete keys using dot notation:

d.new_key = 'new_value'  # Sets a new key-value pair
print(d.new_key)  # Outputs: new_value
del d.new_key  # Deletes the key-value pair

License

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

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

simple_dotdict-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

simple_dotdict-0.0.1-py3-none-any.whl (2.7 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