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'])
Getting Current Version:
from ezml import utils
print(utils.version)
Thanks for using E-Z MetaLanguage!
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
ezml-1.1.1.tar.gz
(3.1 kB
view details)
Built Distribution
ezml-1.1.1-py3-none-any.whl
(4.0 kB
view details)
File details
Details for the file ezml-1.1.1.tar.gz
.
File metadata
- Download URL: ezml-1.1.1.tar.gz
- Upload date:
- Size: 3.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3246026ea34e03ee5226bb19e99127173f336d63e3291241a31efa6739483cf7 |
|
MD5 | 53abc86a7160ff3c8f17ae559f85f2dd |
|
BLAKE2b-256 | 82835411cd2b087d9e0fcfee626296f827f98f376fb5bf7eea5bc255b07ccc25 |
File details
Details for the file ezml-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: ezml-1.1.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0fab08050fb9c69d299b53e3c50f91961ffc123de828dda5fb6d2e44cf4d2c |
|
MD5 | 263197930fc2b2852d29959811b1cebf |
|
BLAKE2b-256 | 33f809c5647c3855d4fab4bfca1994f665f531204e77852b49b63f60a98ce574 |