$npx skillfedfor your agent

spdx-tools

SPDX parser and tools.

Worth itPyPI Python ModulesReleased Mar 20265.4M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — spdx_tools-0.8.5-py3-none-any.whl
v0.8.5 · released 2026-03-13 · Python >=3.10 · 9 runtime deps: beartype, click, license_expression, ply, pyyaml, rdflib, semantic_version, uritools

Yes. spdx-tools is the reference implementation of the SPDX specification in Python, actively maintained, production-stable, and has no known vulnerabilities. Install it if you need to work with SPDX documents—parsing, validation, or creation. The only caveat is that SPDX 3.0 support is experimental and not recommended for production; stick to v2.2/v2.3 for stable use.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction install with a wheel distribution.
  • Active maintenance (last commit 2026-03-13) and production-stable status.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions, though you must include the license text and notice of modifications.

last release 2026-03-13 (154 days) · last repo commit 2026-03-13 · 254 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,435,206 downloads/mo, #2,101 on PyPI

Verify before relying

pip install spdx-tools

from spdx_tools.spdx.parser.parse_anything import parse_file
from spdx_tools.spdx.writer.write_anything import write_file

document = parse_file('input.spdx.json')
write_file(document, 'output.spdx.tag')
  • Whether SPDX 3.0 experimental support is suitable for production use despite the documentation's caution against it.
  • Performance characteristics when parsing or validating very large SPDX documents.
  • Whether optional graph generation dependencies (networkx, pygraphviz) are easy to install on all platforms.
Same gist for agents: .md · .json

What it is and what it does

spdx-tools is a Python library that implements the full SPDX (Software Package Data Exchange) specification for documenting software licenses, components, and compliance metadata. It lets you read SPDX documents in five standard formats, validate them against the v2.2 or v2.3 specification, manipulate their structure programmatically via a typed dataclass model, and write them back out in any supported format. The library also provides a command-line tool for batch parsing, validation, and format conversion.

The package is built on a strict type-checked data model where each SPDX object is a dataclass with enforced property types, catching invalid documents early. It includes experimental support for the upcoming SPDX v3.0 specification (write-only, not yet production-ready), and optional graph visualization of document structure. Nine runtime dependencies handle parsing (ply, xmltodict, rdflib), validation (beartype, semantic_version), and license expression evaluation (license_expression).

Use it for

  • Generate or validate software bill of materials (SBOM) documents for compliance and supply-chain auditing.
  • Convert SPDX documents between formats (e.g., JSON to RDF) for integration with different toolchains.
  • Programmatically create SPDX v2.2/v2.3 documents from your build system or package metadata.
  • Validate third-party SPDX files before ingesting them into a license compliance workflow.
  • Parse and extract license and component information from SPDX documents for reporting or analysis.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

spdx-tools is the reference implementation of the SPDX specification in Python, actively maintained, production-stable, and has no known vulnerabilities. Install it if you need to work with SPDX documents—parsing, validation, or creation. The only caveat is that SPDX 3.0 support is experimental and not recommended for production; stick to v2.2/v2.3 for stable use.

Install

spdx-tools on PyPI

Before you install

Low friction install with a wheel distribution. Active maintenance (last commit 2026-03-13) and production-stable status. Nine runtime dependencies are all established libraries (beartype, click, pyyaml, rdflib, etc.), suggesting a well-integrated ecosystem with no exotic requirements.

Requires Python 3.10 or later.

License in practice

Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions, though you must include the license text and notice of modifications.

Quickstart

pip install spdx-tools

from spdx_tools.spdx.parser.parse_anything import parse_file
from spdx_tools.spdx.writer.write_anything import write_file

document = parse_file('input.spdx.json')
write_file(document, 'output.spdx.tag')

Verify before relying

  • Whether SPDX 3.0 experimental support is suitable for production use despite the documentation's caution against it.
  • Performance characteristics when parsing or validating very large SPDX documents.
  • Whether optional graph generation dependencies (networkx, pygraphviz) are easy to install on all platforms.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
9 packages
beartypeclicklicense_expressionplypyyamlrdflibsemantic_versionuritoolsxmltodict
MaintenanceActively maintained 154 days since the last release
Last repo commit
First released
Downloads5,435,206 / month, #2,101 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: System AdministratorsOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: DocumentationTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Evidence: spdx_tools-0.8.5-py3-none-any.whl

Tags

Capabilities
SPDX document parserlicense compliance toolssoftware bill of materialsSPDX validatorlicense expression parsingSBOM generationformat conversion SPDX
Topics
compliancesbomlicense-management

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “SPDX document parser”

  • spdx-toolsParse, validate, create, and convert SPDX software license documents…
  • pyspdxValidates and tokenizes SPDX license expressions according to the…
  • spdx3-validateValidates SPDX 3 documents with context-aware checks for external…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also pyspdx · spdx3-validate · spdx-python-model · license-expression · csaf-tool · lib4sbom · distro2sbom · reuse · pyshacl · pip-requirements-parser