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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 198be2ad73fafaff49a429797eb67ca150bf3acd6fc476965fe6a4747821861a |
|
MD5 | 3eb720e628d731334b204253d59c5112 |
|
BLAKE2b-256 | 19d65e9e54144a1709b2cd51e7e16e70447ce56798739552130be21add445e78 |
Close
Hashes for powerfuldeveloper_json_walker-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4df7cdf151df22ca0ca82cc1aa9fd787300b70d0de7f4d43887ef67de6da5cc4 |
|
MD5 | 89bb24859637a6b9f47245ba96418fb7 |
|
BLAKE2b-256 | 897ce1bf939d36c3393a72e42ecd6546da9c9d5f7c3bee8b1e91721b4b8addf7 |