Skip to content

brainkim/archieml-python

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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