velocitous markup language to JSON parser
Project description
vml
velocitous markup language
(Totally not related with VML-SVG)
This is a JSON parser for a markup language, if you want to call it like that, that i found myself using while jolting notes in the fastest most velocitous, and laziest way that i could think of... It goes pretty much like this:
element 1
things
dog
[x] snacks
[ ] apple
pear
house
names
james
alfred
[ ] element 2
foo
bar
baz
That translates to this bulky JSON. You see, it makes JSON look bulky!!!
[
{
"element 1": [
{
"things": [
"dog",
{
"snacks": [
{
"apple": [],
"checked": false
},
"pear"
],
"checked": true
},
"house"
]
},
{
"names": [
"james",
"alfred"
]
}
]
},
{
"element 2": [
"foo",
"bar",
"baz"
],
"checked": false
}
]
vml uses tabs to differentiate the hierarchical level of the current line... i think you got what i mean. Plus, you can also add checkboxes to every line with "[ ]", and you can check it with "[x]", and all this translates to a "checked" property in the JSON representation. It's easy to write vml with vi, for example you might check an empty checkbox with rx and move around tabulations efficiently with >> or <<. In fact, this should really have been called tml, as in tab markup language, but unfortunately, that resembled too much TOML, dammit you Tom!!
Import it with import vml_parser, so you that you can access the vml.parse(s : str) -> str method!
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
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 vml-parser-0.0.2.tar.gz.
File metadata
- Download URL: vml-parser-0.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0db805cfad762feb8f427c7fb4582a13d8d676d319d6efaed803322ca0f74f28
|
|
| MD5 |
1a8449adca887309bdd29f794463ca7d
|
|
| BLAKE2b-256 |
29e06af7469efcebdc7f63902a161818ee6e36e660153d9d92fd137b561af8e0
|
File details
Details for the file vml_parser-0.0.2-py3-none-any.whl.
File metadata
- Download URL: vml_parser-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
750016c85c8f5f95d31cb7d3fdc858f2b9b240caeeecc601f1d01217b8509510
|
|
| MD5 |
c4c1b7924b5374266a4a765513a84649
|
|
| BLAKE2b-256 |
b22b3a50707811bc9b19c67259932b53e384c9cd40d9e0b405cb535a9153fa8b
|