Lightweight namedtuple wrapper for attribute-style data access (a la JavaScript objects).
Project description
Source: https://github.com/brennv/namedtupled
Docs: https://namedtupled.readthedocs.io
namedtuples are immutable, performant and classy. namedtupled is a lightweight wrapper for recursively creating namedtuples from nested dicts, lists, json and yaml. Inspired by hangtwenty.
Installation
pip install namedtupled
Getting started
import namedtupled
data = {'binks': {'says': 'meow'}}
cat = namedtupled.map(data)
cat # NT(binks=NT(says='meow'))
cat.binks.says # 'meow'
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file namedtupled-0.3.3.tar.gz.
File metadata
- Download URL: namedtupled-0.3.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79c793fae4c996ae8c988e502f3568e04e937ef315a9fdc957779f3029296985
|
|
| MD5 |
d935c3f445d1c6790404b666793409c2
|
|
| BLAKE2b-256 |
8837e12bab824e76dd597467a94462b9c55feec32a0465844cbeb826c956c942
|
File details
Details for the file namedtupled-0.3.3-py2.py3-none-any.whl.
File metadata
- Download URL: namedtupled-0.3.3-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e168b155672987fc7ae367d8833120deb86ed6766da1442f68ca06617cd7b07a
|
|
| MD5 |
735bf5f475934dbb66670dcf9f414db7
|
|
| BLAKE2b-256 |
b9efddec4c396dd9902d54e385ba5a2a984df836f9efacc41f372998c59d1340
|