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
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.
Source Distribution
simple_dotdict-0.0.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for simple_dotdict-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc19e45558de3fe7a9453c1efd4911f3bf1f3a85e87d285dab9de6fa5c31c5f |
|
MD5 | ede9699ed934011652b0c60de8ea0432 |
|
BLAKE2b-256 | 9dfdc4ef8674c015ec0a19a5134bda70cfbd6043c812ee00052753b54e4737a8 |