Json Uts
Installation
pip install jsonUts
GitHub
https://github.com/ZdekPyPi/JsonUts
Usage
Json sample
my_json = {
"person":{
"name":"json uts",
"age": 30
},
"my cars":[
{"pattern":"Ferrari","year":2015},
{"pattern":"Lamborghini","year":2018}
],
"job":"Software developer",
"UpperCase":123,
"with space":"lets go!"
}
simple transform
from jsonUts import jsonToObj
jsonO = jsonToObj(my_json)
#jsonO = jsonToObj(my_json,toLower=True) # to convert all keys in lower case.
#jsonO = jsonToObj(my_json,trim_keys=True) # remove white spaces from the start and end
print(jsonO.person.name)
print(jsonO.job)
print(jsonO.with_space)
print(jsonO.my_cars[0].pattern)
Reverse
#After creating you object (jsonO), you can use it
json_again = jsonO.toJson()
json_again_original = jsonO.toJson(original_keys=True) # if you want your original key names back
'2022-05-25'
Change Log
0.0.1 (2024-04-19)
- First Release
Metadata
Release files for jsonUts 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jsonUts-1.0.3.tar.gz | 3.9 kB | Without provenance | Details for jsonUts-1.0.3.tar.gz |
Release files / jsonUts-1.0.3.tar.gz
| Download URL | jsonUts-1.0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
786e766bb6cfe5a2a5a6cd2db4ec474da09e1e3f2215440885da9c4a9e8335c3
|
|
BLAKE2b-256 checksum How to use checksums |
1d3373d92730b849dcb266d31f8713f8a43b81f762aa47a55e4dfebbd87704d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Security for jsonUts 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.