Skip to main content

Django TAXII installable app & utilities for creating TAXII Django Web Apps.

Project description

Add TAXII support to Django projects.

Source:

https://github.com/TAXIIProject/django-taxii-services

Documentation:

http://taxii-services.readthedocs.io

Information:

http://taxiiproject.github.io/

Download:

https://pypi.python.org/pypi/taxii-services

Build Status Code Health version badge downloads badge

Overview

django-taxii-services is an installable Django app that enables application developers to rapidly create TAXII Applications that cover any aspect of TAXII 1.0 and TAXII 1.1. Key aspects of django-taxii-services include:

  • Reusable - You can install it

  • Extensible - You can extend (almost) any aspect of django-taxii-services to perform your custom application logic

  • Complete - Covers 100% of TAXII 1.0 and TAXII 1.1 (this is more of a goal, at the moment)

  • Easy - Always a subjective term, but django-taxii-services aims to be easy to use.

Please Note that this library is under rapid development. If you see anything you’d like to ask a question on, please open an issue on GitHub or contact the TAXII Team at taxii@mitre.org.

Using django-taxii-services

Create your own Django project, install django-taxii-services, and modify your settings.py to add taxii_services (e.g.,):

INSTALLED_APPS = (
    ...
    'taxii_services',
)

MIDDLEWARE_CLASSES = (
    ...
    'taxii_services.middleware.StatusMessageExceptionMiddleware'
)

# Add a logger if you'd like
LOGGING = {
    ...
    'loggers': {
        ...
        'taxii_services': {
            'handlers': ['normal','stdout'],
            'level': LOG_LEVEL,
            'propagate': True,
        },
    }
}

Some Key Features

(This section is kind of a brain dump and should eventually be moved to readthedocs when it matures)

  • exceptions.StatusMessageException / middleware.StatusMessageExceptionMiddleware - These, when used together, allow developers to raise a StatusMessageException() anywhere and have the server automagically create a StatusMessage in response (might be a TAXII 1.0 or 1.1 Status Message depending on the request). If you have taxii_services.middleware.StatusMessageExceptionMiddleware in your MIDDLEWARAE_CLASSES, you can just raise taxii_services.exceptions.StatusMessageException( ... ) from anywhere and have django-taxii-services send back a StatusMessage.

  • Register your own message handler - use taxii_services.management.register_message_handler()

  • Some convenience methods:

  • taxii_services.register_admins - Register some/all admins to the Django admin interface

  • taxii_services.register_message_handlers - Register some/all built-in message handlers

Dependencies

TODO: Document the dependencies

Feedback

Please provide feedback and/or comments on open issues to taxii@mitre.org.

License

For license information, see the LICENSE.txt file.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

taxii_services-0.5-py2-none-any.whl (77.4 kB view details)

Uploaded Python 2

File details

Details for the file taxii_services-0.5-py2-none-any.whl.

File metadata

File hashes

Hashes for taxii_services-0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 52917caead0639a8352282312e51e4278c8b3763f020556d830f262178cb3fb2
MD5 83cbcc50b767fa0a1b42d9e1adfc9f23
BLAKE2b-256 051bd14e7cfcf3d246d6f9b7df55456f72a2495a97ac247562caa12ee941bcaa

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