update project documentation.
parent
97a21c3064
commit
71a2aa2611
|
@ -3,6 +3,7 @@
|
|||
.. autosummary::
|
||||
:toctree: api
|
||||
|
||||
confidence
|
||||
core
|
||||
datastore
|
||||
environment
|
||||
|
@ -10,26 +11,19 @@
|
|||
markings
|
||||
patterns
|
||||
properties
|
||||
sources
|
||||
utils
|
||||
patterns
|
||||
properties
|
||||
utils
|
||||
workbench
|
||||
v20.bundle
|
||||
v20.common
|
||||
v20.observables
|
||||
v20.sdo
|
||||
v20.sro
|
||||
v21.bundle
|
||||
v21.common
|
||||
v21.observables
|
||||
v21.sdo
|
||||
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
|
||||
|
|
|
@ -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 copy
|
||||
|
|
|
@ -5,5 +5,6 @@ Functions to operate with STIX2 Confidence scales.
|
|||
:toctree: confidence
|
||||
|
||||
scales
|
||||
|
||||
|
|
||||
"""
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
"""STIX2 Core Objects and Methods."""
|
||||
|
||||
import copy
|
||||
import importlib
|
||||
import pkgutil
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Python STIX 2.0 DataStore API.
|
||||
"""
|
||||
Python STIX2 DataStore API.
|
||||
|
||||
.. autosummary::
|
||||
:toctree: datastore
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Python STIX 2.0 FileSystem Source/Sink"""
|
||||
"""Python STIX2 FileSystem Source/Sink"""
|
||||
|
||||
import io
|
||||
import json
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Filters for Python STIX 2.0 DataSources, DataSinks, DataStores"""
|
||||
"""Filters for Python STIX2 DataSources, DataSinks, DataStores"""
|
||||
|
||||
import collections
|
||||
from datetime import datetime
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
"""
|
||||
Python STIX 2.0 Memory Source/Sink
|
||||
"""
|
||||
"""Python STIX2 Memory Source/Sink"""
|
||||
|
||||
import io
|
||||
import itertools
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
"""Python STIX 2.x TAXIICollectionStore"""
|
||||
"""Python STIX2 TAXIICollection Source/Sink"""
|
||||
|
||||
from requests.exceptions import HTTPError
|
||||
|
||||
from stix2 import v20, v21
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Python STIX 2.0 Environment API.
|
||||
"""
|
||||
"""Python STIX2 Environment API."""
|
||||
|
||||
import copy
|
||||
|
||||
|
@ -177,9 +176,9 @@ class Environment(DataStoreMixin):
|
|||
up.
|
||||
|
||||
Returns:
|
||||
The STIX object's creator, or
|
||||
None, if the object contains no `created_by_ref` property or the
|
||||
object's creator cannot be found.
|
||||
str: The STIX object's creator, or None, if the object contains no
|
||||
`created_by_ref` property or the object's creator cannot be
|
||||
found.
|
||||
|
||||
"""
|
||||
creator_id = obj.get('created_by_ref', '')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""STIX 2 error classes.
|
||||
"""
|
||||
"""STIX2 Error Classes."""
|
||||
|
||||
|
||||
class STIXError(Exception):
|
||||
|
|
|
@ -9,7 +9,6 @@ Note:
|
|||
Definitions. The corresponding methods on those classes are identical to
|
||||
these functions except that the `obj` parameter is omitted.
|
||||
|
||||
|
||||
.. autosummary::
|
||||
: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.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.markings import utils
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""Utility functions for STIX 2.0 data markings.
|
||||
"""
|
||||
"""Utility functions for STIX2 data markings."""
|
||||
|
||||
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 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 binascii
|
||||
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
|
||||
import copy
|
||||
import datetime as dt
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
"""STIX 2.0 API Objects."""
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
"""STIX 2.0 Bundle Representation."""
|
||||
|
||||
from collections import OrderedDict
|
||||
|
||||
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
|
||||
import copy
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""STIX 2.0 Domain Objects.
|
||||
"""
|
||||
"""STIX 2.0 Domain Objects."""
|
||||
|
||||
from collections import OrderedDict
|
||||
import itertools
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
"""STIX 2.1 API Objects."""
|
||||
|
||||
# flake8: noqa
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
"""STIX 2.1 Bundle Representation."""
|
||||
|
||||
from collections import OrderedDict
|
||||
|
||||
from ..base import _STIXBase
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""STIX 2.1 Domain Objects"""
|
||||
"""STIX 2.1 Domain Objects."""
|
||||
|
||||
from collections import OrderedDict
|
||||
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:: set_default_creator
|
||||
|
|
Loading…
Reference in New Issue