Parse Archie Markup Language (ArchieML) documents into Python data structures.
Read about the ArchieML specification at archieml.org.
Installation (with pip)
The current version is ==0.3.5
(hopefully, you never know).
pip install archieml
import archieml
# use archieml.load to load data from a file
with open('a.aml') as f:
data = archieml.load(f)
# or use archieml.loads to load data from a string
data = archieml.loads("""
key: value
[array]
* 1
* 2
* 3
""")
We pull test fixtures from the ArchieML repository (https://github.com/newsdev/archieml.org). This is done using git submodules for some reason. Run the following command to pull the repository.
git submodule update --init
Then, run the following command to run unit tests.
./setup.py test
Publishing can be done using twine.
./setup.py sdist
twine dist/*.gz