Warning
This documentation is still a work in progress. If you have any issues or questions, please ask on the stix-discussion mailing list or file a bug in our issue tracker.
Bases: object
Utility class for generating STIX ids
Create an ID.
Note that if prefix is not provided, it will be quid, even if the method is METHOD_INT.
Bases: exceptions.ValueError
Return the stix.utils module’s generator object.
Only under rare circumstances should this function be called by external code. More likely, external code should initialize its own IDGenerator or use the set_id_namespace, set_id_method, or create_id functions of the stix.utils module.
Set the namespace for the module-level ID Generator
Set the method for the module-level ID Generator
Return the namespace associated with generated ids
Returns the namespace alias assoicated with generated ids
Create an ID using the module-level ID Generator
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
d = {} for k, v in iterable:
d[k] = v