Skip to main content

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 as blondie.__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 from blondie.

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:

  1. Bump — pyproject.toml + CHANGELOG.md (scripts/bump_blondie_types_version.py).
  2. Commit[#NNN] blondie-types vX.Y.Z (or override with --message).
  3. Tagblondie-types-vX.Y.Z (annotated).
  4. 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

blondie_types-0.1.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blondie_types-0.1.2-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

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

Hashes for blondie_types-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5a2eacadecee8fe62c4995ba7a255ca1268d63fbc6327e401735c08fd2a924d1
MD5 f49cba21c87a9f5cfe5b530e73a71c67
BLAKE2b-256 42bca8791a8ac5e8ffc7576ce7ce1ab908154a64c2b9a4785da070fdb79a2198

See more details on using hashes here.

Provenance

The following attestation bundles were made for blondie_types-0.1.2.tar.gz:

Publisher: blondie-types-publish.yml on iva2k/blondie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for blondie_types-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65724cda1b6beecdaeee5635d6e471ad14d9377f0b61df38cc4750986b7853e2
MD5 d73273d2e8366d5b6857a1c62b8037f1
BLAKE2b-256 1d6ed511ef288a62a19b2338e880d399aacf22dbe2d2a6c24e5bbf3f86cc2c4d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page