Skip to main content

account-connections

Small Python rules for letting authenticated people explicitly use a connection its owner shared with them. No credentials, network clients or storage framework.

Owners offer access. Recipients choose in one action and can switch between owned and shared connections, including after disconnecting their own. Offers never change routing. Revoke, leave and scope changes never fall back. Reissued grants have new revisions; an old selection cannot regain access.

Host contract

The host authenticates the actor, checks current application membership, selects the provider namespace and loads strictly validated native records. The actor and owner come from those bindings, never an untrusted tool parameter. Only owners may acquire credentials, disconnect or offer access. Recipients cannot reshare.

Call offer, choose, resolve, revoke and leave under the application's shared authority lock. Persist returned state before success. Do not hold that lock across network/browser work. Capture immutable admission per operation; recheck native barriers at actual credential access and publication. Admission never overrides session generations, holds, budgets or profile leases.

Revoke durably before clearing a departing selection, holding the transaction lock throughout. A crash between writes leaves access denied. Never reuse revisions or repair missing adopted controls around retained credentials. Isolate damaged records so healthy management and revocation remain available.

resolve takes the selected owner's current grant to the authenticated actor in the current provider namespace. Owned selection uses no grant. Applications define capabilities and map the closed ConnectionError.code outcomes. This library cannot prove identity, storage integrity or provider entitlement for you.

account_connections.ui renders escaped native forms and selected-connection sections. Hosts supply local actions and independently authorize submissions: browser identity, Origin, fresh authentication where required, expected revisions.

Saved content belongs to the recipient. Revocation stops new protected access; it does not erase saved content. Work admitted before revoke may finish on its captured connection subject to native barriers. Continuations must revalidate captured selection and cannot silently acquire another one.

Development

Run uv sync --locked, then make check. Tests are offline and synthetic.

Metadata

Release files for account-connections 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for account-connections 0.1.1
File Size Uploaded Provenance Actions
account_connections-0.1.1.tar.gz 33.7 kB Without provenance Details for account_connections-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for account-connections 0.1.1
File Interpreter ABI Platform Actions
account_connections-0.1.1-py3-none-any.whl Python 3 none any Details for account_connections-0.1.1-py3-none-any.whl

Total release size: 39.8 kB

Release files / account_connections-0.1.1.tar.gz

Download URL account_connections-0.1.1.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f235e2f58ed63fbe046e523dff44b4692a337e6ede5467af7ad63ba88473ecee
BLAKE2b-256 checksum
How to use checksums
471c8488bb9d25f51bcb593b770b663f73c8328fa6824cbf1420036a771509d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / account_connections-0.1.1-py3-none-any.whl

Download URL account_connections-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bb3d7043d4dd02610cd7ed73cbd91764ea9f5d88714d2df65a309786b8962a6
BLAKE2b-256 checksum
How to use checksums
46b50a4031e41ed2876d0140f0c1cb537da06e9659b6834e69ff1598d66700cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for account-connections 0.1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page