Lightweight wrapper for creating namedtuples.
Project description
https://github.com/brennv/namedtupled
namedtuples are immutable, performant and classy. namedtupled is a lightweight wrapper for recursively creating namedtuples from nested dicts, lists, json and yaml. Thanks to 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
namedtupled-0.2.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for namedtupled-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37909f6fab987a07839c2b1ace8c22b7d83e8333cadfc2c7fa123c50b90624e6 |
|
MD5 | ee010baa0643b3b4a732784ad859d2a5 |
|
BLAKE2b-256 | b09f8db5766f688b93dce6d108ddf197734308d060e12054cbe0cb9bb6049b2c |