update project documentation.
parent
97a21c3064
commit
71a2aa2611
|
@ -3,6 +3,7 @@
|
||||||
.. autosummary::
|
.. autosummary::
|
||||||
:toctree: api
|
:toctree: api
|
||||||
|
|
||||||
|
confidence
|
||||||
core
|
core
|
||||||
datastore
|
datastore
|
||||||
environment
|
environment
|
||||||
|
@ -10,26 +11,19 @@
|
||||||
markings
|
markings
|
||||||
patterns
|
patterns
|
||||||
properties
|
properties
|
||||||
sources
|
|
||||||
utils
|
utils
|
||||||
patterns
|
v20.bundle
|
||||||
properties
|
|
||||||
utils
|
|
||||||
workbench
|
|
||||||
v20.common
|
v20.common
|
||||||
v20.observables
|
v20.observables
|
||||||
v20.sdo
|
v20.sdo
|
||||||
v20.sro
|
v20.sro
|
||||||
|
v21.bundle
|
||||||
v21.common
|
v21.common
|
||||||
v21.observables
|
v21.observables
|
||||||
v21.sdo
|
v21.sdo
|
||||||
v21.sro
|
v21.sro
|
||||||
|
workbench
|
||||||
|
|
||||||
The .v21 import can't be relocated, or we get circular import problems.
|
|
||||||
The 'isort:skip' line comment didn't work to skip only that one problematic
|
|
||||||
import. The only thing that did was telling it to skip the whole file.
|
|
||||||
|
|
||||||
isort:skip_file
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""Base classes for type definitions in the stix2 library."""
|
"""Base classes for type definitions in the STIX2 library."""
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
import copy
|
import copy
|
||||||
|
|
|
@ -5,5 +5,6 @@ Functions to operate with STIX2 Confidence scales.
|
||||||
:toctree: confidence
|
:toctree: confidence
|
||||||
|
|
||||||
scales
|
scales
|
||||||
|
|
||||||
|
|
|
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
"""STIX2 Core Objects and Methods."""
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
import importlib
|
import importlib
|
||||||
import pkgutil
|
import pkgutil
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Python STIX 2.0 DataStore API.
|
"""
|
||||||
|
Python STIX2 DataStore API.
|
||||||
|
|
||||||
.. autosummary::
|
.. autosummary::
|
||||||
:toctree: datastore
|
:toctree: datastore
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""Python STIX 2.0 FileSystem Source/Sink"""
|
"""Python STIX2 FileSystem Source/Sink"""
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""Filters for Python STIX 2.0 DataSources, DataSinks, DataStores"""
|
"""Filters for Python STIX2 DataSources, DataSinks, DataStores"""
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Python STIX2 Memory Source/Sink"""
|
||||||
Python STIX 2.0 Memory Source/Sink
|
|
||||||
"""
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Python STIX 2.x TAXIICollectionStore"""
|
"""Python STIX2 TAXIICollection Source/Sink"""
|
||||||
|
|
||||||
from requests.exceptions import HTTPError
|
from requests.exceptions import HTTPError
|
||||||
|
|
||||||
from stix2 import v20, v21
|
from stix2 import v20, v21
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""Python STIX 2.0 Environment API.
|
"""Python STIX2 Environment API."""
|
||||||
"""
|
|
||||||
|
|
||||||
import copy
|
import copy
|
||||||
|
|
||||||
|
@ -177,9 +176,9 @@ class Environment(DataStoreMixin):
|
||||||
up.
|
up.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The STIX object's creator, or
|
str: The STIX object's creator, or None, if the object contains no
|
||||||
None, if the object contains no `created_by_ref` property or the
|
`created_by_ref` property or the object's creator cannot be
|
||||||
object's creator cannot be found.
|
found.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
creator_id = obj.get('created_by_ref', '')
|
creator_id = obj.get('created_by_ref', '')
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""STIX 2 error classes.
|
"""STIX2 Error Classes."""
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class STIXError(Exception):
|
class STIXError(Exception):
|
||||||
|
|
|
@ -9,7 +9,6 @@ Note:
|
||||||
Definitions. The corresponding methods on those classes are identical to
|
Definitions. The corresponding methods on those classes are identical to
|
||||||
these functions except that the `obj` parameter is omitted.
|
these functions except that the `obj` parameter is omitted.
|
||||||
|
|
||||||
|
|
||||||
.. autosummary::
|
.. autosummary::
|
||||||
:toctree: markings
|
:toctree: markings
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""Functions for working with STIX 2.0 granular markings.
|
"""Functions for working with STIX2 granular markings."""
|
||||||
"""
|
|
||||||
|
|
||||||
from stix2 import exceptions
|
from stix2 import exceptions
|
||||||
from stix2.markings import utils
|
from stix2.markings import utils
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""Functions for working with STIX 2.0 object markings.
|
"""Functions for working with STIX2 object markings."""
|
||||||
"""
|
|
||||||
|
|
||||||
from stix2 import exceptions
|
from stix2 import exceptions
|
||||||
from stix2.markings import utils
|
from stix2.markings import utils
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""Utility functions for STIX 2.0 data markings.
|
"""Utility functions for STIX2 data markings."""
|
||||||
"""
|
|
||||||
|
|
||||||
import collections
|
import collections
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""Classes to aid in working with the STIX 2 patterning language.
|
"""Classes to aid in working with the STIX 2 patterning language."""
|
||||||
"""
|
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
import binascii
|
import binascii
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
"""Classes for representing properties of STIX Objects and Cyber Observables.
|
"""Classes for representing properties of STIX Objects and Cyber Observables."""
|
||||||
"""
|
|
||||||
import base64
|
import base64
|
||||||
import binascii
|
import binascii
|
||||||
import collections
|
import collections
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""Utility functions and classes for the stix2 library."""
|
"""Utility functions and classes for the STIX2 library."""
|
||||||
|
|
||||||
from collections import Mapping
|
from collections import Mapping
|
||||||
import copy
|
import copy
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
"""STIX 2.0 API Objects."""
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
"""STIX 2.0 Bundle Representation."""
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
from ..base import _STIXBase
|
from ..base import _STIXBase
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""STIX 2 Common Data Types and Properties."""
|
"""STIX 2.0 Common Data Types and Properties."""
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
import copy
|
import copy
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
"""STIX 2.0 Domain Objects.
|
"""STIX 2.0 Domain Objects."""
|
||||||
"""
|
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
"""STIX 2.1 API Objects."""
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
"""STIX 2.1 Bundle Representation."""
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
from ..base import _STIXBase
|
from ..base import _STIXBase
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""STIX 2.1 Domain Objects"""
|
"""STIX 2.1 Domain Objects."""
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
import itertools
|
import itertools
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""Functions and class wrappers for interacting with STIX data at a high level.
|
"""Functions and class wrappers for interacting with STIX2 data at a high level.
|
||||||
|
|
||||||
.. autofunction:: create
|
.. autofunction:: create
|
||||||
.. autofunction:: set_default_creator
|
.. autofunction:: set_default_creator
|
||||||
|
|
Loading…
Reference in New Issue