Skip to content

Commit c557376

Browse files
author
=
committed
😋 final working build v_012
1 parent fe6b32a commit c557376

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
5. [How to Contribute](#how-to-contribute)
1414

1515
## Overview
16-
**NestedFetch** provides syntactic sugar 🍬 to deal with a nested python `dictionary` or a nested `list` 🐍.<br>
17-
You can `get`, `set`, `update` and `flatten` values from a deeply nested dictionary or a list with a more concise, easier and a more `KeyError`, `IndexError` free way 😌. <br>
18-
You can further `flatten` lists of lists having the same depth.
16+
- **NestedFetch** provides syntactic sugar 🍬 to deal with a nested python `dictionary` or a nested `list` 🐍
17+
- You can `get`, `set`, `update` and `flatten` values from a deeply nested dictionary or a list with a more concise, easier and a `KeyError`, `IndexError` free way 😌
1918

2019
```python
2120
data = {
@@ -85,7 +84,7 @@ flatten => Specifies whether to flatten the returned value
8584
Returns the fetched value if it exists, or returns specified default value
8685
```
8786

88-
1. **Fetch** simple nested data :
87+
- **Fetch** simple nested data :
8988

9089
```python
9190
data = {
@@ -100,7 +99,7 @@ res = nested_get(data,['details','address','city'])
10099
# res = Albuquerque
101100
```
102101

103-
2. **Fetch** simple nested data with `default` value:
102+
- **Fetch** simple nested data with `default` value:
104103

105104
```python
106105
data = {
@@ -115,7 +114,7 @@ res = nested_get(data,['details','address','state'], default=-1)
115114
# res = -1
116115
```
117116

118-
3. **Fetch** nested data:
117+
- **Fetch** nested data:
119118

120119
```python
121120
data = {
@@ -132,7 +131,7 @@ res = nested_get(data,['details','address','city'])
132131
# res = ['Albuquerque','El Paso']
133132
```
134133

135-
4. **Fetch** nested data with `default` value:
134+
- **Fetch** nested data with `default` value:
136135

137136
```python
138137
data = {
@@ -151,7 +150,7 @@ res = nested_get(data,['details','address','city'], default= None)
151150
# res = ['Albuquerque','El Paso', None]
152151
```
153152

154-
5. **Fetch** nested data by specifing `index`:
153+
- **Fetch** nested data by specifing `index`:
155154

156155
```python
157156
data = {
@@ -168,7 +167,7 @@ res = nested_get(data,['details','address','city', 0])
168167
# res = Albuquerque
169168
```
170169

171-
6. **Fetch** nested data without `flatten`:
170+
- **Fetch** nested data without `flatten`:
172171

173172
```python
174173
data = {
@@ -202,7 +201,7 @@ res = nested_get(data,['matches','goals','scorrer'])
202201
# res = [['Lionel Messi', 'Luis Suarez'], ['C. Ronaldo']]
203202
```
204203

205-
8. **Fetch** nested data with `flatten`:
204+
- **Fetch** nested data with `flatten`:
206205

207206
```python
208207
data = {
@@ -252,7 +251,7 @@ Returns the number of values updated
252251
```
253252

254253

255-
1. **Update** value of simple nested data :
254+
- **Update** value of simple nested data :
256255

257256
```python
258257
data = {
@@ -277,7 +276,7 @@ res = nested_set(data,['details','address','city'], "Denver")
277276

278277
```
279278

280-
2. **Update** nested data:
279+
- **Update** nested data:
281280

282281
```python
283282
data = {
@@ -305,7 +304,7 @@ res = nested_set(data,['details','address','city'], "Denver")
305304
# }
306305
```
307306

308-
3. **Update** nested data with `index`:
307+
- **Update** nested data with `index`:
309308

310309
```python
311310
data = {
@@ -333,7 +332,7 @@ res = nested_set(data,['details','address',0,'city'], "Denver")
333332
# }
334333
```
335334

336-
4. **Set** nested data with `create_missing` :
335+
- **Set** nested data with `create_missing` :
337336

338337
```python
339338
data = {
@@ -371,7 +370,7 @@ data => list of list
371370
Returns the flattened list
372371
```
373372

374-
1. **Flatten** List of Lists
373+
- **Flatten** List of Lists
375374

376375
```python
377376
data = [[

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
setup(
44
name = 'nestedfetch',
55
packages = ['nestedfetch'],
6-
version = '0.1.1',
6+
version = '0.1.2',
77
license='MIT',
8-
description = 'Syntactic sugar to perform GET, SET and FLATTEN values from nested dictionaries and nested lists.',
8+
description = 'Syntactic sugar to GET, SET, UPDATE and FLATTEN values from nested dictionaries and nested lists.',
99
long_description=open("README.md").read(),
1010
long_description_content_type='text/markdown',
1111
author = 'Shubham Dalvi',
1212
author_email = '[email protected]',
1313
url = 'https://github.com/saintlyzero/NestedFetch',
14-
download_url = ('https://github.com/saintlyzero/NestedFetch/archive/v_011.tar.gz'),
14+
download_url = ('https://github.com/saintlyzero/NestedFetch/archive/v_012.tar.gz'),
1515
keywords = ['dict','nested dictionary','nested list','list','flatten','scalpl','nestedfetch','addict','box','Nested Fetch'],
1616
install_requires=[],
1717
classifiers=[

0 commit comments

Comments
 (0)