Resolves deeply-nested dictionary properties via dot-notation
Project description
# selectn-py [![Build Status](http://img.shields.io/travis/srn/selectn-py.svg?style=flat-square)](https://travis-ci.org/srn/selectn-py)
> Resolves deeply-nested dictionary properties via dot-notation
Inspired by the node library [selectn](https://github.com/wilmoore/selectn.js)
So you can do:
```python
selectn('info.name.full', person);
```
instead of:
```python
person and person.get('info').get('name').get('full')
```
## Install
```sh
$ pip install selectn-python
```
## Usage
```python
from selectn import selectn
dic = {'ay': {'yo'}}
selectn('info.name.full', dic)
```
## License
MIT © [Søren Brokær](http://srn.io)
> Resolves deeply-nested dictionary properties via dot-notation
Inspired by the node library [selectn](https://github.com/wilmoore/selectn.js)
So you can do:
```python
selectn('info.name.full', person);
```
instead of:
```python
person and person.get('info').get('name').get('full')
```
## Install
```sh
$ pip install selectn-python
```
## Usage
```python
from selectn import selectn
dic = {'ay': {'yo'}}
selectn('info.name.full', dic)
```
## License
MIT © [Søren Brokær](http://srn.io)
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
selectn-1.0.0.tar.gz
(1.3 kB
view hashes)