No project description provided
Project description
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
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
jsonml-0.0.3.tar.gz
(2.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsonml-0.0.3.tar.gz.
File metadata
- Download URL: jsonml-0.0.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/4.19.104-microsoft-standard
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
697cb7f31110c8291f721a4db25569bbc92830373ca09d681c3d36116bb630cc
|
|
| MD5 |
9c6ca79b98cc31b54b6bd8318ab8345a
|
|
| BLAKE2b-256 |
f292e1757ac2a06592d9e5965f2c9aa04d85e10de9bcbe2c87e0d2af0fb819d3
|
File details
Details for the file jsonml-0.0.3-py3-none-any.whl.
File metadata
- Download URL: jsonml-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.9 Linux/4.19.104-microsoft-standard
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
572135e6fa5e0225d5e76ff1bc99297b8f8952aa6344a4196ba9a8b712f8c75a
|
|
| MD5 |
43c72adad96ed177f9ed38c1f8906ad9
|
|
| BLAKE2b-256 |
99cdcea18ede04a94471af6bf678241719d32de71cae221f3c785f29d9cc6298
|