jsonml
This library is a python implementation of jsonml.
See below for jsonml specifications.
Requirement
- Python 3.8+
Getting Started
from jsonml import Parser
parser = Parser()
obj = ["tag1", ["tag2", ["tag3", "1"]]]
tree_1 = parser.parse(obj)
xml_1 = parser.to_xml(tree_1)
jsonml = parser.to_jsonml(tree_1)
tree_2 = parser.parse_from_xml_string(xml_1)
assert parser.to_jsonml(tree_2) == jsonml
<tag1><tag2><tag3>1</tag3></tag2></tag1>
[
"tag1",
[
"tag2",
[
"tag3",
"1"
]
]
]
Contribute
poetry install
pre-commit install
source .venv/bin/activate
make
Metadata
Release files for jsonml 0.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 |
|---|---|---|---|---|
| jsonml-0.0.3.tar.gz | 2.9 kB | Without provenance | Details for jsonml-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jsonml-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for jsonml-0.0.3-py3-none-any.whl |
Total release size: 6.1 kB
Release files / jsonml-0.0.3.tar.gz
| Download URL | jsonml-0.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
697cb7f31110c8291f721a4db25569bbc92830373ca09d681c3d36116bb630cc
|
|
BLAKE2b-256 checksum How to use checksums |
f292e1757ac2a06592d9e5965f2c9aa04d85e10de9bcbe2c87e0d2af0fb819d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.6.9 Linux/4.19.104-microsoft-standard
|
Release files / jsonml-0.0.3-py3-none-any.whl
| Download URL | jsonml-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
572135e6fa5e0225d5e76ff1bc99297b8f8952aa6344a4196ba9a8b712f8c75a
|
|
BLAKE2b-256 checksum How to use checksums |
99cdcea18ede04a94471af6bf678241719d32de71cae221f3c785f29d9cc6298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.6.9 Linux/4.19.104-microsoft-standard
|
Security for jsonml 0.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.