Alter Vault Python SDK - OAuth token management with policy enforcement
Project description
Alter SDK for Python
Official Python SDK for Alter Vault — credential and authorization layer for apps and AI agents that call third-party APIs.
Tokens stay in the vault. The SDK injects the credential, refreshes it, and writes the audit row — application code only calls vault.request().
Install
pip install alter-sdk
Requires Python 3.10+.
Quick example
Make an authenticated API call — no token ever touches application code.
import asyncio
from alter_sdk import App, HttpMethod
async def main():
async with App(api_key="<api-key>") as vault:
response = await vault.request(
HttpMethod.POST,
"https://api.example.com/resource",
grant_id="<grant-id>",
json={"example": "payload"},
)
print(response.status_code, response.json())
asyncio.run(main())
For a full walkthrough — sign-up, key minting, OAuth — see the First 5 Minutes guide.
Documentation
Full docs are at https://docs.alterauth.com.
| Topic | Page |
|---|---|
| Getting started end-to-end | First 5 Minutes |
| Concepts (principals, grants, identity resolution) | Concepts |
| OAuth flows (JWT, grant_id, headless) | OAuth |
| Identity Provider setup | Identity Providers |
| Managed secrets | Managed Secrets |
| Agents and workload identity | Agents |
| Per-method API reference | SDK reference |
| Framework integrations | FastAPI · MCP · LangChain |
License
MIT. See LICENSE.
Support
Email founders@alterauth.com or open an issue at https://github.com/alter-ai/alter-vault.
Project details
Release history Release notifications | RSS feed
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 alter_sdk-0.13.0.tar.gz.
File metadata
- Download URL: alter_sdk-0.13.0.tar.gz
- Upload date:
- Size: 131.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39c1c348a3a173209538308ec2e8547e894f83e8080493e60db4716d43220525
|
|
| MD5 |
420490ffd4a52fde96460f6c7732234c
|
|
| BLAKE2b-256 |
9ad3f180cf13944ecdceda91cef29cb1909d865a79462d414c9e140c570c0fab
|
Provenance
The following attestation bundles were made for alter_sdk-0.13.0.tar.gz:
Publisher:
python-sdk-release.yml on AlterAIDev/Alter-Vault
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alter_sdk-0.13.0.tar.gz -
Subject digest:
39c1c348a3a173209538308ec2e8547e894f83e8080493e60db4716d43220525 - Sigstore transparency entry: 1514610778
- Sigstore integration time:
-
Permalink:
AlterAIDev/Alter-Vault@aa756b320788bc891204654dcb77fdfc11171527 -
Branch / Tag:
refs/tags/python-sdk-v0.13.0 - Owner: https://github.com/AlterAIDev
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-sdk-release.yml@aa756b320788bc891204654dcb77fdfc11171527 -
Trigger Event:
push
-
Statement type:
File details
Details for the file alter_sdk-0.13.0-py3-none-any.whl.
File metadata
- Download URL: alter_sdk-0.13.0-py3-none-any.whl
- Upload date:
- Size: 143.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecadb78e833e268028966f21939104d3e6f0d02f2519a9bc280ac93ddc7278c7
|
|
| MD5 |
e23968bfdf707495750bc39f224c90c6
|
|
| BLAKE2b-256 |
64966521dcce6623508987d0083e0c50c5e2ef33ca48f6d27d2ed100b34722c4
|
Provenance
The following attestation bundles were made for alter_sdk-0.13.0-py3-none-any.whl:
Publisher:
python-sdk-release.yml on AlterAIDev/Alter-Vault
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alter_sdk-0.13.0-py3-none-any.whl -
Subject digest:
ecadb78e833e268028966f21939104d3e6f0d02f2519a9bc280ac93ddc7278c7 - Sigstore transparency entry: 1514610865
- Sigstore integration time:
-
Permalink:
AlterAIDev/Alter-Vault@aa756b320788bc891204654dcb77fdfc11171527 -
Branch / Tag:
refs/tags/python-sdk-v0.13.0 - Owner: https://github.com/AlterAIDev
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-sdk-release.yml@aa756b320788bc891204654dcb77fdfc11171527 -
Trigger Event:
push
-
Statement type: