Walk on jsons like nothing :)
Project description
Powerfuldeveloper Json Walker
Walk on jsons like it's nothing 😎
Usage
Just give JsonWalker
class the json which you want
to pars and this class is able to give you feet which
need to walk on json !
from powerfuldeveloper.json_walker import JsonWalker
some_json = {
"key_1": 'test',
"key_2": 1,
}
json_walker = JsonWalker(some_json)
print(json_walker.key_1)
# test
print(type(json_walker.key_1))
# JsonWalker
print(json_walker.key_1.inner_key_1)
# None
print(type(json_walker.key_1.inner_key_1))
# JsonWalker
if json_walker.key_1.inner_key_1:
print('inner key 1 exists')
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
Built Distribution
Close
Hashes for powerfuldeveloper-json-walker-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ab0547d237d6f94ceb8221c9c0495d3b8b50c2b4ba9797fb8a283095ba4c11 |
|
MD5 | a7ca2dbb46ebef3fce881f19f3cb9dfd |
|
BLAKE2b-256 | 9e3b0e3e2a9e761f5c67762a99437f1dcec2105a90151ee7a54c563b35d76fb5 |
Close
Hashes for powerfuldeveloper_json_walker-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10738e1113707b7a5fc4b1a9b139f45b3361cfb734bef36eae1c35ef96e37b7d |
|
MD5 | 7f16bb41b4879ee3ddd1cff607dedfad |
|
BLAKE2b-256 | 09587d368fa28e70e9e2a463ab32c9f776e9f1d1a85c2994f8cdc67ed7435104 |