python-3.10-dredd
Python 3.10+ language plugin for semver-dredd.
Installation
# Install via the core package extra
pip install "semver-dredd[python]"
# Or install the plugin distribution directly
pip install python-3.10-dredd
Or install from local path (development):
pip install ./plugins/python-3.10-dredd
Usage
Once installed, the plugin is automatically discovered by semver-dredd:
# List plugins to verify installation
semver-dredd plugin list
semver-dredd plugin info python
# Generate a snapshot for an importable module/package
semver-dredd snapshot --plugin python --path mypackage --version 1.0.0
# Use with init/status/bake commands
semver-dredd init mypackage --plugin python --version 1.0.0
semver-dredd status mypackage --plugin python
semver-dredd bake mypackage --plugin python
For the Python plugin, --path/positional source values are importable module
or package names (for example mypackage or mypackage.api), not filesystem
globs.
If .semver.yaml already records plugin: python and source.path, follow-up
commands can often omit the explicit path/plugin:
semver-dredd status --details
semver-dredd bake
How it works
This plugin uses Python's inspect module to introspect Python modules and extract:
- Public functions and their signatures
- Public classes, their methods, and fields
- Support for dataclasses, namedtuples, Pydantic models, and
__slots__
Scope: include / exclude
include and exclude items are module/package dotted names (not filesystem
globs), matched recursively (an item matches itself and any of its
dotted-prefix descendants):
include: [mypackage.api]
exclude: [mypackage.api.internal]
- Empty
include(or omitted) analyzes the whole configured module's API surface, exactly as without scope. - A non-empty
includeswitches to allow-list mode: only listed modules/submodules (and their descendants) are analyzed. excludeis applied afterinclude.- If the root module defines
__all__, scope recursion is skipped entirely — only the names listed in__all__are analyzed, matching plain Python visibility rules.include/excludedo not apply in this mode. - If
__all__is absent, the plugin recursively discovers public (non_-prefixed) submodules and merges their public members into the snapshot.includematching nothing produces an empty snapshot API (logged as a warning) rather than falling back to no-scope behavior.
Requirements
- Python 3.10+
- semver-dredd >= 1.0.20260704001
Metadata
Release files for python-3.10-dredd 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_3_10_dredd-1.1.0.tar.gz | 11.2 kB | Without provenance | Details for python_3_10_dredd-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_3_10_dredd-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for python_3_10_dredd-1.1.0-py3-none-any.whl |
Total release size: 23.4 kB
Release files / python_3_10_dredd-1.1.0.tar.gz
| Download URL | python_3_10_dredd-1.1.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6ea18c1e44a8579c888f17de0e09c1149e94736f421e7fcb92426cfd2d5643f
|
|
BLAKE2b-256 checksum How to use checksums |
9bd5166008a778dc6095b84ac646bbcbd574e6e2bed1c058a1d329a5d2b862e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / python_3_10_dredd-1.1.0-py3-none-any.whl
| Download URL | python_3_10_dredd-1.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89e3609933c8c94aeb92e5e4410b648a545fdfa3a733f7fd3932dc23ebc7b019
|
|
BLAKE2b-256 checksum How to use checksums |
9a3a8b7b1d345cc186112801452b07de8a0b0d3667df4f1d3eb4e9bc39b551ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for python-3.10-dredd 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.