Skip to content

Commit 672269a

Browse files
author
Alex Lambson
committed
Updated readme and fixed tests import path
1 parent d383f6b commit 672269a

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# python-hash
2-
A way access values in key-value lists using dot notation
1+
# Python Dict Dots
2+
A way access values in nested key-value dicts using dot notation.
3+
4+
I wrote this is reduce the amount of times I will have to do
5+
6+
```
7+
data = None
8+
if nested_needle in haystack[needle]:
9+
data = haystack[needle][nested_needle]
10+
```
11+
12+
or some kind of loop that searches nested dicts

tests/test_dict_dots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from dictdots.DictDots import DictDots, InvalidQueryString
2+
from DictDots import DictDots, InvalidQueryString
33

44

55
@pytest.mark.parametrize("query,result", [

0 commit comments

Comments
 (0)