Skip to main content

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

Project description

E-Z Meta-Language / Python Parser

What Is E-Z Markup/Parser?

E-Z Meta-Language is an extremely simple(or "e-z"), 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
</friday>
</ezml>

Parsing Example (From File) :

from ezml import *

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'])

Thanks for using E-Z MetaLanguage!

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.9.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

ezml-1.0.9-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ezml-1.0.9.tar.gz.

File metadata

  • Download URL: ezml-1.0.9.tar.gz
  • Upload date:
  • Size: 3.0 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.9.tar.gz
Algorithm Hash digest
SHA256 c23f5406f950b858adae9ddabab780b181f61c61a88ad94462555fcc2135c5d7
MD5 c61056704603b8d932a90f3b3eb2ac17
BLAKE2b-256 15182db5919e9e95e5bac46badca2ad6b071de8d8f17c2b10326eb7c27781484

See more details on using hashes here.

File details

Details for the file ezml-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: ezml-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 58194bf2abcc9cace564b0c98843fad1f03898ed15327bcffdd6d16c391127e1
MD5 9f2dc52bcce81b51267b372bd9d4e435
BLAKE2b-256 814707b0562cbe29602a8f97e83ce16990d3ac806cdc2cbfb8d3cfc2bf91bc07

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