Skip to content

brainkim/archieml-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python parser for the Archie Markup Language (ArchieML)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages