Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vml-parser-0.0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vml_parser-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file vml-parser-0.0.3.tar.gz.

File metadata

  • Download URL: vml-parser-0.0.3.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

Hashes for vml-parser-0.0.3.tar.gz
Algorithm Hash digest
SHA256 49d8fdb07948300242d626717b83277b3ff537b6bebd32675ccd71694d2adcd4
MD5 b0fca299718b96c650a8b8e415fb14e6
BLAKE2b-256 f0e1e8a51d4013ec148aab5ac2f56d5f1568a83dd66b73f74c3cc3339741a307

See more details on using hashes here.

File details

Details for the file vml_parser-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: vml_parser-0.0.3-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

Hashes for vml_parser-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 562f81cccf5608c7f3da94e5fd33810c4a28960dc2fe618deb046e6f617264d9
MD5 bdffc2689a6a85c85cbc0e32a89b278d
BLAKE2b-256 eb6f9ca1e2f689960c6ef048b19c88da19ee16b647e6018489268287cd9630f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page