Skip to content

theharvardcrimson/archieml

 
 

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

Crimson fork of ArchieML Python parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%