Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.11 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.11 KB

ArchieML

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

Usage

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

""")

Contributing

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