CybOXProject / python-cybox

A Python library for parsing, manipulating, and generating CybOX content.
http://cybox.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
77 stars 42 forks source link

python-cybox

A Python library for parsing, manipulating, and generating Cyber Observable eXpression (CybOX™) <https://cyboxproject.github.io/>_ v2.1.0 content.

:Source: https://github.com/CybOXProject/python-cybox :Documentation: https://cybox.readthedocs.io/ :Information: https://cyboxproject.github.io/ :Download: https://pypi.python.org/pypi/cybox/

|travis_badge| |landscape_io_badge| |version_badge|

.. |travis_badge| image:: https://api.travis-ci.org/CybOXProject/python-cybox.svg?branch=master :target: https://travis-ci.org/CybOXProject/python-cybox :alt: Build Status .. |landscape_io_badge| image:: https://landscape.io/github/CybOXProject/python-cybox/master/landscape.svg?style=flat :target: https://landscape.io/github/CybOXProject/python-cybox/master :alt: Code Health .. |version_badge| image:: https://img.shields.io/pypi/v/cybox.svg?maxAge=3600 :target: https://pypi.python.org/pypi/cybox/ :alt: Version

Overview

A primary goal of the python-cybox library is to remain faithful to both the CybOX standard and to customary Python practices. There are places where these will conflict, and the goal is to make the library intuitive both to those familiar with the XML schemas (but less familiar with Python) and also to experienced Python developers who want to add CybOX support to their programs.

There are currently two levels of APIs for dealing with CybOX content:

Versioning

Releases of the python-cybox library will be given version numbers of the form major.minor.update.revision, where major, minor, and update correspond to the CybOX version being supported. The revision number is used to indicate new versions of the python-cybox library itself.

Installation

The cybox package depends on the following Python libraries:

For Windows installers of the above libraries, we recommend looking here: http://www.lfd.uci.edu/~gohlke/pythonlibs/.

To build lxml on Ubuntu, you will need the following packages from the Ubuntu package repository:

For more information about installing lxml, see http://lxml.de/installation.html.

Layout

The structure of the python-cybox repository is as follows:

Please refer to the example scripts for examples of how to use the python-cybox library.

Feedback

Bug reports and feature requests are welcome and encouraged. Pull requests are especially appreciated. Feel free to use the issue tracker on GitHub or send an email directly to cybox@mitre.org.