Public SDK types for authoring Blondie plugins (backlog backends, CI providers, LLM tools).
Project description
blondie-types
Public SDK types for authoring Blondie plugins. Plugins import every Blondie type they need from this single package.
- Distribution name (PyPI):
blondie-types - Import name:
blondie - Contents: ABCs, dataclasses, enums, error classes, capability constants, and API protocols. No runtime code.
- Dependencies: stdlib +
pydantic+typing_extensions.
The Blondie runtime depends on blondie-types; blondie-types does not
depend on the runtime. Plugins develop, test, and ship outside the
Blondie repo with blondie-types as their only Blondie-side dependency.
Quick start
pip install blondie-types
from blondie import (
BacklogBackend,
BackendProvider,
Plugin,
PluginTool,
Task,
TaskStatus,
ToolProvider,
)
class MyTool(PluginTool):
name = "my_tool"
description = "A tiny example."
async def execute(self, **kwargs) -> str:
self.api.journal.info("hello from my_tool")
return "ok"
class MyPlugin(Plugin):
def provides(self):
return [ToolProvider(MyTool)]
Top-level exports
| Symbol | Kind | Module |
|---|---|---|
Plugin |
ABC | blondie.plugins |
Provider |
ABC | blondie.plugins |
BackendProvider |
dataclass | blondie.plugins |
CIProviderProvider |
dataclass | blondie.plugins |
ToolProvider |
dataclass | blondie.plugins |
RegistrationContext |
dataclass | blondie.plugins |
PluginInfo |
dataclass | blondie.plugins |
PluginEvent |
dataclass | blondie.plugins |
PLUGIN_API_VERSION |
int | blondie.plugins |
PluginTool |
ABC | blondie.tools |
ToolAPI |
Protocol | blondie.tools |
BacklogBackend |
ABC | blondie.backlog |
BackendAPI |
Protocol | blondie.backlog |
Task, Sprint, Comment |
dataclass | blondie.backlog |
Priority, TaskStatus |
enum | blondie.backlog |
TaskFormatter |
ABC | blondie.backlog |
CredentialSpec |
dataclass | blondie.backlog |
BackendError (+ family) |
exception | blondie.backlog |
CAP_* |
constants | blondie.backlog |
CIProvider |
ABC | blondie.ci |
CIAPI |
Protocol | blondie.ci |
Journal |
Protocol | blondie.journal |
The flat from blondie import X form is preferred; per-area submodules
are also exposed for selective import.
Versioning
The SDK follows Semantic Versioning. Two version numbers travel together:
- The distribution version in
pyproject.toml(visible asblondie.__version__, sourced from package metadata) — bumped on every release. - The plugin contract version
blondie.PLUGIN_API_VERSION— bumped on every breaking change to the public surface re-exported fromblondie.
Release notes live in CHANGELOG.md - Keep a Changelog format.
Cutting a release
One command runs the full pipeline. Add your release notes under
## [Unreleased] in CHANGELOG.md, commit them, then from the repo root:
poe release-types # interactive: auto-detect bump, prompt to confirm
poe release-types patch # explicit kind
poe release-types minor
poe release-types major
poe release-types 1.2.3 # explicit target version
poe release-types --dry-run # plan only; no mutations
poe release-types --no-push # stop after tagging; push later
poe release-types patch --yes # non-interactive, accept default
poe release-types --task 704 minor
release-types runs cautious pre-flight checks (working tree clean,
branch tracks remote, lint/typecheck/tests/build pass, CHANGELOG ↔
pyproject agreement, [Unreleased] non-empty), then auto-detects the
bump kind from the [Unreleased] section and conventional commits since
the last tag (heuristics: ### Added → minor, ### Changed /
### Removed / BREAKING → major, ### Fixed → patch; feat!: →
major, feat: → minor, fix: → patch). The default is presented in an
interactive prompt with the reasons it was picked.
Each subsequent step is idempotent — re-running after Ctrl-C resumes from the first incomplete step. The pipeline:
- Bump — pyproject.toml + CHANGELOG.md (
scripts/bump_blondie_types_version.py). - Commit —
[#NNN] blondie-types vX.Y.Z(or override with--message). - Tag —
blondie-types-vX.Y.Z(annotated). - Push — branch + tag.
Pushing the tag triggers
.github/workflows/blondie-types-publish.yml, which publishes to PyPI
via OIDC trusted publishing and creates a matching GitHub Release with
the CHANGELOG section as release notes and the sdist + wheel attached
as assets.
Lower-level tasks
For step-at-a-time control or manual recovery:
poe verify-types-release # check pyproject ↔ CHANGELOG agreement
poe bump-types --patch # bump pyproject + promote [Unreleased]
poe bump-types --to 1.2.3
poe build-types # build sdist + wheel under packages/blondie-types/dist/
poe test-types # run the SDK pytest suite
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blondie_types-0.1.2.tar.gz.
File metadata
- Download URL: blondie_types-0.1.2.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a2eacadecee8fe62c4995ba7a255ca1268d63fbc6327e401735c08fd2a924d1
|
|
| MD5 |
f49cba21c87a9f5cfe5b530e73a71c67
|
|
| BLAKE2b-256 |
42bca8791a8ac5e8ffc7576ce7ce1ab908154a64c2b9a4785da070fdb79a2198
|
Provenance
The following attestation bundles were made for blondie_types-0.1.2.tar.gz:
Publisher:
blondie-types-publish.yml on iva2k/blondie
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blondie_types-0.1.2.tar.gz -
Subject digest:
5a2eacadecee8fe62c4995ba7a255ca1268d63fbc6327e401735c08fd2a924d1 - Sigstore transparency entry: 1399207483
- Sigstore integration time:
-
Permalink:
iva2k/blondie@d2e09e44cb70e921ea0acde72d282720e1f9bff6 -
Branch / Tag:
refs/tags/blondie-types-v0.1.2 - Owner: https://github.com/iva2k
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
blondie-types-publish.yml@d2e09e44cb70e921ea0acde72d282720e1f9bff6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file blondie_types-0.1.2-py3-none-any.whl.
File metadata
- Download URL: blondie_types-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65724cda1b6beecdaeee5635d6e471ad14d9377f0b61df38cc4750986b7853e2
|
|
| MD5 |
d73273d2e8366d5b6857a1c62b8037f1
|
|
| BLAKE2b-256 |
1d6ed511ef288a62a19b2338e880d399aacf22dbe2d2a6c24e5bbf3f86cc2c4d
|
Provenance
The following attestation bundles were made for blondie_types-0.1.2-py3-none-any.whl:
Publisher:
blondie-types-publish.yml on iva2k/blondie
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blondie_types-0.1.2-py3-none-any.whl -
Subject digest:
65724cda1b6beecdaeee5635d6e471ad14d9377f0b61df38cc4750986b7853e2 - Sigstore transparency entry: 1399207487
- Sigstore integration time:
-
Permalink:
iva2k/blondie@d2e09e44cb70e921ea0acde72d282720e1f9bff6 -
Branch / Tag:
refs/tags/blondie-types-v0.1.2 - Owner: https://github.com/iva2k
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
blondie-types-publish.yml@d2e09e44cb70e921ea0acde72d282720e1f9bff6 -
Trigger Event:
push
-
Statement type: