ezml-1.1.2
توضیحات
An (extremly) simple Meta-Language, this is the parser!
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ezml-1.1.2 |
| نام | ezml |
| نسخه کتابخانه | 1.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Chad M. Groom |
| ایمیل نویسنده | chadgroom17@gmail.com |
| آدرس صفحه اصلی | https://github.com/chadgroom/EZML |
| آدرس اینترنتی | https://pypi.org/project/ezml/ |
| مجوز | - |
# E-Z Meta-Language / Python Parser
## What Is E-Z MetaLanguage/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):
```xml
<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) :
```python
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):
```python
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:
```python
from ezml import utils
print(utils.version)
```
Thanks for using E-Z MetaLanguage!
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ezml-1.1.2:
pip install ezml-1.1.2.whl
نصب پکیج tar.gz ezml-1.1.2:
pip install ezml-1.1.2.tar.gz