update project documentation.

master
Emmanuelle Vargas-Gonzalez 2018-11-28 16:51:00 -05:00
parent 97a21c3064
commit 71a2aa2611
26 changed files with 38 additions and 42 deletions

View File

@ -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

View File

@ -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

View File

@ -5,5 +5,6 @@ Functions to operate with STIX2 Confidence scales.
:toctree: confidence
scales
|
"""

View File

@ -1,3 +1,5 @@
"""STIX2 Core Objects and Methods."""
import copy
import importlib
import pkgutil

View File

@ -1,4 +1,5 @@
"""Python STIX 2.0 DataStore API.
"""
Python STIX2 DataStore API.
.. autosummary::
:toctree: datastore

View File

@ -1,4 +1,4 @@
"""Python STIX 2.0 FileSystem Source/Sink"""
"""Python STIX2 FileSystem Source/Sink"""
import io
import json

View File

@ -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

View File

@ -1,6 +1,4 @@
"""
Python STIX 2.0 Memory Source/Sink
"""
"""Python STIX2 Memory Source/Sink"""
import io
import itertools

View File

@ -1,4 +1,5 @@
"""Python STIX 2.x TAXIICollectionStore"""
"""Python STIX2 TAXIICollection Source/Sink"""
from requests.exceptions import HTTPError
from stix2 import v20, v21

View File

@ -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', '')

View File

@ -1,5 +1,4 @@
"""STIX 2 error classes.
"""
"""STIX2 Error Classes."""
class STIXError(Exception):

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,4 @@
"""Utility functions for STIX 2.0 data markings.
"""
"""Utility functions for STIX2 data markings."""
import collections

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1,3 +1,4 @@
"""STIX 2.0 API Objects."""
# flake8: noqa

View File

@ -1,3 +1,5 @@
"""STIX 2.0 Bundle Representation."""
from collections import OrderedDict
from ..base import _STIXBase

View File

@ -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

View File

@ -1,5 +1,4 @@
"""STIX 2.0 Domain Objects.
"""
"""STIX 2.0 Domain Objects."""
from collections import OrderedDict
import itertools

View File

@ -1,3 +1,4 @@
"""STIX 2.1 API Objects."""
# flake8: noqa

View File

@ -1,3 +1,5 @@
"""STIX 2.1 Bundle Representation."""
from collections import OrderedDict
from ..base import _STIXBase

View File

@ -1,4 +1,4 @@
"""STIX 2.1 Domain Objects"""
"""STIX 2.1 Domain Objects."""
from collections import OrderedDict
import itertools

View File

@ -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