Skip to main content

Processing block structured binary files.

Project description

https://img.shields.io/travis/niftools/pyffi/develop.svg?label=Linux%20Build&logo=travis https://img.shields.io/appveyor/ci/neomonkeus/pyffi/develop.svg?label=Windows%20Build&logo=appveyor https://img.shields.io/coveralls/github/niftools/pyffi/develop.svg?label=Coverage

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

  • Simple: Reading, writing, and manipulating complex binary files in a Python environment is easy! Currently, PyFFI supports the NetImmerse/Gamebryo NIF and KFM formats, CryTek’s CGF format, the FaceGen EGM format, the DDS format, and the TGA format.

  • Batteries included: Many tools for files used by 3D games, such as optimizers, stripifier, tangent space calculator, 2d/3d hull algorithms, inertia calculator, as well as a general purpose file editor QSkope (using PyQt4), are included.

  • Modular: Its highly modular design makes it easy to add support for new formats, and also to extend existing functionality.

Download

Get PyFFI from Github, 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:

git clone --recursive git://github.com/niftools/pyffi.git
virtualenv -p python3 venv
source venv/bin/activate
pip install -r 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 and fork PyFFI.

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?

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyFFI-2.2.4.dev4.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyFFI-2.2.4.dev4-py3-none-any.whl (547.6 kB view details)

Uploaded Python 3

File details

Details for the file PyFFI-2.2.4.dev4.tar.gz.

File metadata

  • Download URL: PyFFI-2.2.4.dev4.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for PyFFI-2.2.4.dev4.tar.gz
Algorithm Hash digest
SHA256 11bf05367c3fd7f97e3f61119ddbeb1dbad2a7c54a37cdda91e2bc7ec309ec9e
MD5 c170340cd32774190fd58358f4c8e58e
BLAKE2b-256 fac5ae09af93ef55b42b7717ef86d8aeb0e12f672b58118d54f2bdc5ccfee619

See more details on using hashes here.

File details

Details for the file PyFFI-2.2.4.dev4-py3-none-any.whl.

File metadata

  • Download URL: PyFFI-2.2.4.dev4-py3-none-any.whl
  • Upload date:
  • Size: 547.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3

File hashes

Hashes for PyFFI-2.2.4.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 a173bfe7f8462442cbd7131e1b1c6605908f06b9b91bde8fac0efd4c31f5b1e2
MD5 6e1324e54f4f194a141079b60dcc5849
BLAKE2b-256 2d5f2e09ce99f669975979113627d0ddc3938a643d27d07b31ddae23dd69973e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page