StackOS Connectors
A Python library of named provider connectors. A caller supplies a connector, action, input data and resolved authentication. The library maps that action to the provider protocol and returns provider output, metadata and file descriptors.
The consumer owns credential storage, when to authorize or refresh, persistent state, workflow decisions and audit. Explicit package functions implement provider authorization URLs, token grants, probes and signature checks. They never start authorization, refresh tokens or persist state implicitly. Provider implementations use plain contracts and can accept caller-owned HTTP clients, rate buckets and native protocol sessions.
Each integration is grouped under src/stackos_connectors/connectors/:
connectors/<provider>/
actions.py # named action mapping
integration.py # provider protocol client, when separate
catalog.json # descriptions, schemas, auth methods and fixed bindings
schemas/ # provider-specific schema resources, when needed
assets/ # fixed GraphQL documents and other provider resources
docs/ # provider reference Markdown
shared/ # common transport, payload and protocol helpers
shared/google/ # Google OAuth and batch protocol helpers
catalog/ # common catalog schema and default resource index
Folder names use Python identifiers, such as aws_s3; public connector keys
remain unchanged, such as aws-s3. Provider-only helper modules live beside
their actions. The root package contains the public contracts and execution API.
The default client loads the bundled connector catalogs. Use list_connectors
and describe to discover the installed actions and their input/auth schemas.
Generic HTTP accepts explicitly registered declarations; OpenRouter currently
provides a credential probe without a text-generation action.
from stackos_connectors import ConnectorAuth, get_default_client
client = get_default_client()
result = await client.execute(
connector="serper",
action="serper.search",
data={"query": "example search"},
auth=ConnectorAuth(method="api_key", fields={"api_key": resolved_api_key}),
)
describe supplies provider and action names, descriptions, native input/output
schemas, setup information and execution auth requirements. Auth method setup
describes credential acquisition; fields_schema and config_schema define the
resolved auth accepted for execution. validate_data checks input without resolving
credentials. validate, estimate_cost and execute also check the selected auth
method. Dynamic actions must be explicitly registered on a scoped client before
execution; existing names cannot be replaced.
CallOptions.timeout=None preserves each provider's default. A numeric timeout
overrides that default. A supplied HTTP client remains caller-owned.
QuickBooks Online provides bounded company/invoice reads with exact invoice JSON fragments and explicit OAuth. See the provider contract.
Explicit authentication
get_auth_contract(connector, method=..., config=...) reads immutable provider
facts from the bundled catalog. build_authorization_request formats a consent
URL using the caller's redirect URI, state and optional PKCE challenge. The caller
opens that URL, handles the callback and checks its state. request_token performs
one requested authorization_code, refresh_token, client_credentials or
jwt_bearer grant, where the selected method declares support. Meta's declared
second token exchange is part of that explicit request.
from stackos_connectors import ConnectorAuth, request_token
token = await request_token(
"google-search-console",
auth=ConnectorAuth(
method="oauth2_authorization_code",
fields={"client_id": client_id, "client_secret": client_secret},
),
grant_type="authorization_code",
code=validated_callback_code,
redirect_uri=registered_redirect_uri,
code_verifier=stored_pkce_verifier,
http=caller_http,
)
Grant calls accept resolved application/key fields; action and probe calls accept
the method's resolved execution fields, usually an access token. The catalog's
setup and protocol describe acquisition separately from fields_schema and
config_schema. Manual token methods retain their declared refresh compatibility;
the library does not infer an auth method from token shape.
TokenResult holds sensitive in-process values. An absent refresh_token means
the response did not rotate it. scopes_present=False distinguishes omitted
scope evidence from an explicitly empty grant. For a successful Google JWT grant,
the immutable contract supplies the signed request's scopes; the consumer can
apply the reviewed omission rule without changing the token response's provenance.
The caller decides how to preserve prior evidence, enforce permissions and store
results. OAuthTokenError exposes bounded categories/status and repair facts,
without raw provider response bodies. Repr suppression is not a storage policy.
probe_credentials(connector, auth=..., options=..., context=...) explicitly
tests a resolved credential through a fixed provider binding. It returns safe
provider facts and optional AuthProbeEvidence; it does not establish application
readiness or permissions. project_probe_config projects portable config and
retains supported legacy probe aliases. The caller chooses the IMAP native mailbox
through CallOptions(provider_context={"mailbox": ...}). Google Ads/Workspace
service-account probes only report resolved-token presence and unverified resource
access; they make no HTTP call or new-grant claim.
Google JWT validation/signing is shared across the six declared service-account
methods. Credentials never come from ambient identity or key-supplied endpoints.
Provider details live in connectors/<provider>/docs/auth.md and the catalog.
Google Indexing supports explicit jwt_bearer acquisition with the fixed Indexing
scope. Token acquisition does not establish API enablement or site-owner access.
Provider-local pure helpers cover Telegram authorization request/challenge/state
translation (connectors.telegram.auth), Slack v0 HMAC verification
(connectors.slack_bot.auth.verify_signature_v0) and HubSpot v3 HMAC verification
(connectors.hubspot.signature.verify_signature_v3). Callers own native sessions,
encrypted custody, challenge expiry, ingress routing, trusted canonical URI,
timestamp/replay checks and policy. HubSpot v2 verification is not implemented.
No library call to discovery, probe or action execution starts an authorization
flow, refreshes a token, opens a native session, stores credentials or selects
readiness. revoke_token(connector, auth=..., token=..., http=..., timeout=30)
performs one explicitly requested revocation where the catalog declares support
(currently QuickBooks Online). It returns None only after HTTP 200, including
an empty response; other statuses and transport failures raise OAuthTokenError.
It does not follow redirects, retry, refresh, store state or read provider bodies.
The caller selects the latest token, coordinates grant-wide concurrency and
reconciles unknown outcomes. A transient error classification is not evidence
that replay is safe. A supplied HTTP client remains caller-owned.
For file-producing actions, pass CallOptions(output_dir=Path(...)) and consume
the plain descriptors in result.files. The library does not create application
artifacts or public download URLs. Telegram actions require an already authorized
session through CallOptions(native_session=session); the caller owns account
lifecycle, the TDLib binary, receipt persistence and session shutdown.
For a restricted catalog, construct ConnectorClient(registry=load_registry(...))
using stackos_connectors.catalog.load_registry and the provider-local resource
paths above. Register custom HTTP or Trackbooth declarations on that scoped client
before execution; request data cannot override a declaration's provider or route.
Shared REST declarations use shared.operations.declare_operation and the existing
immutable ActionDefinition. Providers normalize their own catalog envelopes and
validate their HTTP method, route, destination and authentication. The shared
input projection accepts path_params (named entries with optional schema),
query_params and request_body schemas, with explicit query_required and
body_required envelope flags. Without a flag, the legacy required-member
heuristic applies. Trackbooth retains its public declare_action and
connectors.trackbooth.schema.operation_input_schema imports; its body descriptor's
boolean required flag now controls body presence independently of body members.
shared.schema.project_schema preserves complete supported Draft 2020-12
structural schemas, including strict objects, unions, bounds, boolean schemas and
document-local JSON Pointer references. Embedding rebases those references into
their original query/body/path schema scope. Resource IDs, anchors, external or
unresolved references, other dialects, content validation and unknown keywords
fail at declaration rather than becoming permissive objects. Extensions (x-
and legacy x_), descriptions, defaults, examples, format and discriminator
annotations remain descriptive. Branch constraints enforce unions; the local
validator does not execute custom server refinements or format checks. Server
authorization and semantic validation remain authoritative.
The shared http.request_json helper makes one request, bounds decoded response
bytes to 16 MiB by default and closes its response on success or failure. It
preserves caller-owned clients/timeouts, disables redirects and never retries.
Provider adapters retain response-envelope and URL/auth policy; read-only POST
metadata never grants automatic replay. The independent S1 structural fixture at
tests/core/fixtures/structural-operation.json and Trackbooth admission tests
cover structural fidelity without a live provider or downstream host claim.
ConnectorResult.output_json contains native response data for in-process use,
including signed download URLs and pagination tokens. Exact resolved credential
values are scrubbed from that data. The consumer must project or redact it before
display, audit or persistent storage. Errors, progress, metadata and file
descriptors receive full key and text redaction. Results hide response data in
their default representation.
Provider protocol notes and source links live in each connector's docs/
directory. They cover authentication transport, requests, pagination, response
meaning and error handling. Use the executable catalog and describe for the
installed action contract.
Existing integration icons are bundled at connectors/<provider>/assets/icon.*.
Each catalog's icon object contains a package-relative path, media_type and
kind. Actions inherit the integration icon unless an action declares its own.
Kinds preserve the source presentation: icon, wordmark, wordmark-dark or
wordmark-inverse. Missing logos use the neutral fallback at
shared/icons/integration.svg. Standard package resources read the bytes without
a source checkout:
from importlib.resources import files
description = client.describe("serper", "serper.search")
icon = description["actions"][0]["icon"]
icon_bytes = files("stackos_connectors").joinpath(*icon["path"].split("/")).read_bytes()
CFOBooth native API keys
Version 0.2.9 verifies CFOBooth Accounts with an explicit
api_base_url and an api_key. The endpoint field is editable and shows
https://cfobooth.com as an example. Owned loopback HTTP and explicit remote
HTTPS are supported. GET /api/api-keys/current returns the verified subject,
key ID and organization. The host supplies that verified organization as
organization_id for catalog export and action execution. Explicit catalog
export and connectors.cfobooth.catalog_actions declare fixed JSON actions
through the shared schema and HTTP helpers, preserving effects and response
envelopes without per-call catalog fetching or session refresh.
See the provider contract for setup, supported schema projection, safety boundaries and local-proof limits. Host inventory/custody and live server qualification remain with their existing owners.
Installation
Python 3.12 or newer is required. Source: flowmonkeyio/StackOSConnectors.
Published releases can be installed with:
python -m pip install stackos-connectors==0.2.9
Or add stackos-connectors==0.2.9 to your Python dependency requirements.
Install from a local checkout with pip install /path/to/StackOSConnectors, or
build a wheel with python -m build --wheel and install that wheel. Runtime use
needs only the installed package and its declared dependencies.
0.2.9 release notes
- Add explicit QuickBooks token revocation through
revoke_token, with one bounded request, HTTP 200 confirmation and no automatic retry. - Add CFOBooth native API-key discovery and organization-bound catalog/action execution with bounded, sanitized query diagnostics.
- Extend ElevenLabs discovery, timestamp/alignment output, shared voices, voice design/creation and pronunciation-dictionary actions.
- Preserve declared schema constraints and local references, bounded HTTP/media handling and uncertain-effect receipts through the shared provider owners.
0.2.8 release notes
- Query QuickBooks TaxCode and TaxRate without the rejected Active predicate. Preserve pagination, exact returned records and supplied Active validation.
0.2.7 release notes
- Remove the per-record 16 KiB cutoff from QuickBooks reads. Preserve each exact original within the existing bounded provider response; oversized responses still fail explicitly.
- Preserve provider-returned date and timestamp text in accounting evidence without converting or discarding valid temporal values.
0.2.6 release notes
- Add
quickbooks-online.records.listfor 30 finite accounting transaction, reference and singleton entity reads, with validated scope and fixed provider destinations. Preserve the existing invoice, company-info and OAuth interfaces. - Reuse exact JSON evidence parsing, decimal preservation, credential-echo rejection and bounded transport across the catalog.
- This is core accounting acquisition, not all QuickBooks products or a financial ledger. See the provider contract for the supported catalog, exclusions and live verification limitations.
0.2.5 release notes
- Preserve provider-supplied QuickBooks refresh-token lifetime metadata for explicit code and refresh grants, including an optional hard expiry.
- Leave missing lifetime evidence absent; callers retain validation, expiration and rotated-token custody.
0.2.4 release notes
- Complete QuickBooks setup metadata with method labels and explicit required environment and company realm fields.
- Add a credential probe through the existing validated CompanyInfo read. It returns bounded company identity and leaves OAuth grant evidence unknown.
- Preserve the two QuickBooks read actions and Google Indexing authentication support from 0.2.3.
0.2.3 release notes
- Restore Google Indexing service-account token acquisition through the canonical
get_auth_contractandrequest_tokenAPIs. The contract fixes the Google token endpoint and Indexing scope, requires a Bearer response, and rejects delegation. - Preserve the QuickBooks Online connector from 0.2.2 and the Search Console scope handling from 0.2.1.
Publishing
The manual publish workflow uses PyPI Trusted Publishing through GitHub OIDC. It does not store a PyPI API token. Pushing a commit does not publish a release.
Before running it, configure the GitHub pypi environment and a PyPI GitHub
trusted publisher with these exact values:
| Field | Value |
|---|---|
| PyPI project name | stackos-connectors |
| GitHub owner | flowmonkeyio |
| Repository | StackOSConnectors |
| Workflow filename | publish.yml |
| Environment | pypi |
Use a pending publisher for the first release. See the official PyPI trusted publisher setup.
After configuration and release review, open Actions → Publish to PyPI → Run
workflow and select main. The build job checks out the selected commit,
builds the wheel and source distribution on Python 3.12, checks their metadata,
and uploads them as one workflow artifact. The separate publish job downloads
that artifact and requests the OIDC token inside the pypi environment.
Runs selected on other branches do not build or publish. Only the publish job
has id-token: write permission.
The workflow does not rerun the connector test suite; run the tests and review the intended release commit before dispatch. A version already uploaded to PyPI cannot be replaced; change the package version for a later release.
Metadata
Release files for stackos-connectors 0.2.9
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 |
|---|---|---|---|---|
| stackos_connectors-0.2.9.tar.gz | 2.4 MB | With provenance | Details for stackos_connectors-0.2.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stackos_connectors-0.2.9-py3-none-any.whl | Python 3 | none | any | Details for stackos_connectors-0.2.9-py3-none-any.whl |
Total release size: 4.9 MB
Release files / stackos_connectors-0.2.9.tar.gz
| Download URL | stackos_connectors-0.2.9.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b455ce902cee7f037104f7e2c189049f00d8cb9e9f21cf2e2c05429b861824fc
|
|
BLAKE2b-256 checksum How to use checksums |
48a0313c6e041fc2eb0e400286ce7e95a01181adc424db6d542b275287b6faf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / stackos_connectors-0.2.9-py3-none-any.whl
| Download URL | stackos_connectors-0.2.9-py3-none-any.whl |
|---|---|
| Size | 2.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
293641f30f91d1d7e29a9c2c6ae868293ae73cedae47c47e71077672bdd9d08f
|
|
BLAKE2b-256 checksum How to use checksums |
c0ceb2180e8f86a4241ec00a6fa5103140edecf52185e3c7d32e5f2e408930c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for stackos-connectors 0.2.9
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for stackos_connectors-0.2.9.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA 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.