niftools / pyffi

PyFFI is a Python library for processing block structured files.
http://www.niftools.org/pyffi
Other
47 stars 26 forks source link
library nif python

PyFFI

.. image:: https://img.shields.io/travis/niftools/pyffi/develop.svg?label=Linux%20Build&logo=travis :target: https://travis-ci.org/niftools/pyffi

.. image:: https://img.shields.io/appveyor/ci/neomonkeus/pyffi/develop.svg?label=Windows%20Build&logo=appveyor :target: https://ci.appveyor.com/project/neomonkeus/pyffi

.. image:: https://img.shields.io/coveralls/github/niftools/pyffi/develop.svg?label=Coverage :target: https://coveralls.io/r/niftools/pyffi?branch=develop

The Python File Format Interface, briefly PyFFI, is an open source Python library for processing block structured binary files:

Download

Get PyFFI from Github <https://github.com/niftools/pyffi/releases>_, or install it with::

easy_install -U PyFFI

or::

pip3 install PyFFI

Developing

To get the latest (but possibly unstable) code, clone PyFFI from its Git repository <http://github.com/niftools/pyffi>_::

git clone --recursive git://github.com/niftools/pyffi.git
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements/requirements-dev.txt

Be sure to use the --recursive flag to ensure that you also get all of the submodules.

If you wish to code on PyFFI and send your contributions back upstream, get a github account <https://github.com/signup/free> and fork PyFFI <http://help.github.com/fork-a-repo/>.

Testing

We love tests, they help guarantee that things keep working they way they should. You can run them yourself with the following::

source venv/bin/activate
nosetest -v test

or::

source venv/bin/activate
py.test -v tests

Documentation

All our documentation is written in ReST and can be generated into HTML, LaTeX, PDF and more thanks to Sphinx. You can generate it yourself::

source venv/bin/activate
cd docs
make html -a

Examples

Questions? Suggestions?

.. See http://www.niftools.org/ for more information and documentation.