You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chrisr3d ca61b06aa2
Merge branch 'master' of github.com:oasis-open/cti-python-stix2
1 year ago
docs Tweak custom SCO ID-generating properties docs 2 years ago
examples Formatting changes made by the new pre-commit hook 'add trailing commas' 3 years ago
stix2 Merge branch 'master' of github.com:oasis-open/cti-python-stix2 1 year ago
.gitignore Add default weight_dict to documentation 2 years ago
.isort.cfg Update .isort.cfg 2 years ago
.pre-commit-config.yaml Update isort.cfg and .pre-commit-config.yaml 3 years ago
.travis.yml Fix some testing 2 years ago
CHANGELOG Update CHANGELOG for v1.4.0 2 years ago
CONTRIBUTING.md fixup program name w/ 'TC' to OASIS TC Open Repo... 4 years ago
LICENSE Create boilerplate LICENSE text 5 years ago
MANIFEST.in Add MANIFEST to exclude test from final package 4 years ago
README.rst Fix parsing example in Readme 2 years ago
requirements.txt update .ipynb files with correct references. update package requirements 2 years ago
setup.cfg Bump version: 1.3.1 → 1.4.0 2 years ago
setup.py Drop python-dateutil as a dependency and switch to the builtin 1 year ago
tox.ini Fix some TAXII DataStore tests 2 years ago

README.rst

|Build_Status| |Coverage| |Version| |Downloads_Badge| |Documentation_Status|

cti-python-stix2
================

This is an `OASIS TC Open Repository <https://www.oasis-open.org/resources/open-repositories/>`__.
See the `Governance <#governance>`__ section for more information.

This repository provides Python APIs for serializing and de-serializing STIX2
JSON content, along with higher-level APIs for common tasks, including data
markings, versioning, and for resolving STIX IDs across multiple data sources.

For more information, see `the documentation <https://stix2.readthedocs.io/>`__ on ReadTheDocs.

Installation
------------

Install with `pip <https://pip.pypa.io/en/stable/>`__:

.. code-block:: bash

$ pip install stix2

Usage
-----

To create a STIX object, provide keyword arguments to the type's constructor.
Certain required attributes of all objects, such as ``type`` or ``id``, will
be set automatically if not provided as keyword arguments.

.. code-block:: python

from stix2 import Indicator