A lightweight library for working with Akoma Ntoso Act documents
Cobalt is a lightweight Python library for working with Akoma Ntoso Act documents. It makes it easy to work with Akoma Ntoso metadata, FRBR URIs and generate Tables of Contents for a document.
It is lightweight because most operations are done on the XML document directly without intermediate objects. You still need to understand how Akoma Ntoso works.
$ pip install cobalt
Use it like this:
>>> from cobalt import Act >>> act = Act() >>> act.title = "Act 10 of 1980" >>> act.frbr_uri = "/za/act/1980/10" >>> act.year '1980' >>> act.number '10' >>> print act.to_xml() [ lots of xml ]
Clone the repo
Install development dependencies:
pip install -e .[dev]
Make your changes
nosetests && flake8 cobalt
Send a pull request
Run the tests!
Update VERSION appropriately
Update the Change Log section in README.rst
Commit and push to github
Release to PyPI:
python setup.py sdist bdist_wheel upload
Cobalt is licensed under the LPGL 3.0 license.
Cobalt is Copyright 2015-2017 AfricanLII.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|cobalt-0.1.11-py2-none-any.whl (17.4 kB) Copy SHA256 Checksum SHA256||2.7||Wheel||Apr 23, 2017|
|cobalt-0.1.11.tar.gz (13.6 kB) Copy SHA256 Checksum SHA256||–||Source||Apr 23, 2017|