python API to EMBOSS ACD files
Project description
Python API to parse and access EMBOSS ACD files
===============================================
pyacd is a parsing library for:
- EMBOSS ACD files.
- EMBOSS QA files (functional tests for EMBOSS)
Install
-------
Installing the official package from PyPi:
`pip install pyacd`
Or from source:
`
git clone https://github.com/hmenager/pyacd.git
cd pyacd && python setup.py install
`
Usage
-----
pyacd is a Python API. Here is a small example that shows how to use it to parse an ACD file and
retrieve basic information from it.
`
from pyacd.parser import parse_acd
abiview_acd = parse_acd(open('/usr/share/EMBOSS/acd/abiview.acd','r').read())
print abiview_acd.application.name
for section in abiview_acd.sections:
print [p.name for p in section.parameters]
`
===============================================
pyacd is a parsing library for:
- EMBOSS ACD files.
- EMBOSS QA files (functional tests for EMBOSS)
Install
-------
Installing the official package from PyPi:
`pip install pyacd`
Or from source:
`
git clone https://github.com/hmenager/pyacd.git
cd pyacd && python setup.py install
`
Usage
-----
pyacd is a Python API. Here is a small example that shows how to use it to parse an ACD file and
retrieve basic information from it.
`
from pyacd.parser import parse_acd
abiview_acd = parse_acd(open('/usr/share/EMBOSS/acd/abiview.acd','r').read())
print abiview_acd.application.name
for section in abiview_acd.sections:
print [p.name for p in section.parameters]
`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyacd-0.1.2.tar.gz
(13.3 kB
view hashes)