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
</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'])
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.0.6.tar.gz
(3.0 kB
view details)
Built Distribution
ezml-1.0.6-py3-none-any.whl
(4.1 kB
view details)
File details
Details for the file ezml-1.0.6.tar.gz
.
File metadata
- Download URL: ezml-1.0.6.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa5a72f12c03f36d1778ea5169a18a47553dc51849be1f4d947d1265b44fa6d |
|
MD5 | 49146ffb9bad648abb7f22819d9f7f65 |
|
BLAKE2b-256 | b0973b8d2d9cdd97c8d150addb6dd0f47b2aa75c2bb9043fd1ce12b567dc700e |
File details
Details for the file ezml-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: ezml-1.0.6-py3-none-any.whl
- Upload date:
- Size: 4.1 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 | ea07bb00e53574eacd2e003a159090963999bd9d51ca55b814590eea20f1666e |
|
MD5 | e75001b539ca1fb1e189ae9518455697 |
|
BLAKE2b-256 | 86072044fe82c65405aba53537eaded763c7f98402e3689a39efc83e4bd34b7d |