Registry / auth-security / mixbox

mixbox

JSON →
library1.0.5pypypi✓ verified 80d ago

Utility library providing shared functions and classes for the CybOX, MAEC, and STIX Python packages. Current version 1.0.5, in maintenance mode with no active development since 2018.

pip install mixbox
INSTALL
IMPORT
SIG · MIXBOX
M
mixbox
auth-securitypythonv1.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

version
from mixbox import version
from mixbox import idgen, namespaces, dates, errors, vizard

Basic usage of idgen, namespaces, and dates modules

from mixbox import idgen, namespaces, dates, errors # Generate a unique ID with a specified namespace namespace = namespaces.get_namespace('myns') id_ = idgen.create_id(namespace) print(id_) # Parse an ISO 8601 date string dt = dates.parse_date('2015-01-01T12:00:00Z') print(dt)
Debug
Known issues
deprecatedmixbox is in maintenance mode. New projects should use stix2, maec5, or cybox2 directly.
fix
Migrate to the newer STIX/MAEC/CybOX libraries (e.g., stix2 for STIX 2.x).
affects: all
gotchamixbox.namespaces is not a dict: do not iterate over it with .items() or .values(). Use namespace lookup functions instead.
fix
Use namespaces.get_namespace(name) instead of treating the module as a dictionary.
affects: all
gotchaidgen.create_id() requires a namespace object (not a string). Passing a string will break.
fix
First obtain a namespace via namespaces.get_namespace('prefix') and then pass it to idgen.create_id().
affects: all
deprecatedThe vizard submodule (vizard) is deprecated and may be removed in future releases.
fix
Avoid using vizard; use direct lxml manipulation or a dedicated validation library.
affects: >=1.0.0
Upgrade
Version history
1.0.5latest on PyPI · released Nov 20, 2020
Audit
Dependencies
lxmlrequiredXML parsing and generation (e.g., for STIX/MAEC documents)
python-dateutilrequiredDate/time parsing and manipulation
ordered-setrequiredOrdered set implementation used for ID generation
Agent activity
19 hits · last 30 days
node
18
OpenAI (training)
1
Resources
mixbox — pip install mixbox · libregistry