{"library":"stix","title":"stix - STIX Content API","type":"library","description":"An API for parsing and generating Structured Threat Information Expression (STIX) content. Current version 1.2.0.11 is legacy, based on the older STIX 1.x standard; development has been superseded by stix2 for STIX 2.x. Low release cadence.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install stix"],"cli":null},"imports":["from stix.core import STIXPackage","from stix.indicator import Indicator","from stix.utils import parse_xml"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":"https://stixproject.github.io/","github":"https://github.com/STIXProject/python-stix","docs":"https://stix.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/stix/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from stix.core import STIXPackage\nfrom stix.utils import parse_xml\nimport os\n\nstix_xml = os.environ.get('STIX_XML', '<stix:STIXPackage xmlns:stix=\"http://stix.mitre.org/stix-1\" id=\"example:package-1\"><stix:STIX_Header><stix:Title>Example</stix:Title></stix:STIX_Header></stix:STIXPackage>')\npackage = parse_xml(stix_xml)\nprint(package.stix_header.title)","lang":"python","description":"Parse a STIX 1.x XML document and access the package title.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}