Skip to main content

Lightweight namedtuple wrapper for attribute-style data access (a la JavaScript objects).

Project description

https://travis-ci.org/brennv/namedtupled.svg?branch=master

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

This version
History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
namedtupled-0.3.3-py2.py3-none-any.whl (5.8 kB) Copy SHA256 hash SHA256 Wheel 3.5 Nov 20, 2016
namedtupled-0.3.3.tar.gz (4.0 kB) Copy SHA256 hash SHA256 Source None Nov 20, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page