Skip to main content

An (extremly) simple markup language, this is the parser!

Project description

E-Z Markup Language / Python Parser

What Is E-Z Markup/Parser?

E-Z Markup Language is an extremely simple, xml-flavored, data storage + aquisition method, revolving around this parser, written in Python.

At this point, general usage is simply variable storage.

Basic usage:

Example .ezml file(test.ezml):

<ezml>
<meta>
Author: Example Author
Info: Class Schedule
Date: January 17th, 2020
</meta>
<var title>Campus #1 Weekly Schedule Example</title>
<var monday>No School</monday>
<var tuesday>
class 1: history
class 2: science
</tuesday>
<var wednesday>Not On Campus</wednesday>
<var thursday>
class 1: history
class 2: science
</thursday>
<var friday>
class 1: history
class 2: ap-history
class 3: science
</ezml>

Parsing Example (From File) :

from EZML import EZML, utils

ezml = EZML(utils.dump_file('test.ezml')) 
print(ezml.meta)
print(ezml.var['title'])

print(ezml.var['monday'])

print(f"Tuesdays Schedule:\n {ezml.var['tuesday']}")

Parsing Example (From String):

from EZML import EZML

ezml = EZML("<ezml><meta>Title: Hello World!</meta><var title>Foo<title><var bar>Hello World!</bar></ezml>") 
print(ezml.meta)
print(ezml.var['title'])
print(ezml.var['bar'])

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

EZML-1.0.2.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

EZML-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file EZML-1.0.2.tar.gz.

File metadata

  • Download URL: EZML-1.0.2.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5

File hashes

Hashes for EZML-1.0.2.tar.gz
Algorithm Hash digest
SHA256 36efe20b0299ef3b739ae43cc28e9b21ccc8ee14d06469a999f243d373a11d7a
MD5 d85f532fa8b80383356c05803f03bc26
BLAKE2b-256 fdcf4a2835c0614dacb55c712d7b4ee44c4cede05687fe0b4546637a3566889d

See more details on using hashes here.

File details

Details for the file EZML-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: EZML-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.5

File hashes

Hashes for EZML-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd4643eb19f20a887f76e1767aca7f018c7d790784d41c16ee7cd7d6eb0c774c
MD5 ccd69a531aa6008a727a43756291e27e
BLAKE2b-256 3d158c6e50182fc8f04794a44661559b5407d452bbb46d048258e8d1dbc0301f

See more details on using hashes here.

Supported by

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