messh for Python
Sign and verify HTTP requests as a messh identity with Web Bot Auth: RFC 9421 HTTP Message Signatures, Ed25519, tag="web-bot-auth".
pip install messh-sdk # import name: messh
pip install "messh-sdk[httpx]" # optional httpx auth
Sign (agent)
from messh import Client, key_file
client = Client("mukul", key=key_file("~/.ssh/id_ed25519"))
client.post("https://api.example.com/deploy", json={"env": "staging"})
Use the ssh-ed25519 key you published with messh publish. The private key never leaves your machine.
Agents and CI
Configure it with environment variables instead of code: MESSH_IDENTITY, MESSH_KEY (PEM, or base64 of PEM or PKCS#8 DER) or MESSH_KEY_FILE, and MESSH_REGISTRY. whoami checks the key is published, so a missing messh publish fails at startup with not_published instead of every API answering 401.
client = Client.from_env()
me = client.whoami() # PublishedKey(identity, key_name, key_id, fingerprint, agent_url)
Passphrase-protected key? Load it into ssh-agent (ssh-add) and pass key=ssh_agent().
Verify (API)
from fastapi import Depends, FastAPI
from messh.verify import Agent, MesshAuthMiddleware, current_agent
app = FastAPI()
app.add_middleware(MesshAuthMiddleware, trust=["mukul"], paths=["/api/"])
@app.post("/api/deploy")
def deploy(agent: Agent = Depends(current_agent)):
return {"hello": agent.identity}
Without a framework: Verifier(trust=["mukul"]).verify(method, url, headers, body).
Full reference (every function, input and error code): https://github.com/messhio/messh/blob/main/sdk/README.md
License: Apache-2.0
Metadata
Release files for messh-sdk 0.1.0
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 | |
|---|---|---|---|---|
| messh_sdk-0.1.0.tar.gz | 23.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| messh_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.2 kB
Release files / messh_sdk-0.1.0.tar.gz
| Download URL | messh_sdk-0.1.0.tar.gz |
|---|---|
| Size | 23.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0adf8426e12bfe971677fe5e99020331c2d0e0265b2df5f431d5aa6a02dc52e4
|
|
BLAKE2b-256 checksum How to use checksums |
15453c747259e91a40c407719e04579cc1805062e6b81d6a6bf66c4a27b46364
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 23, 2026.
Transparency logRelease files / messh_sdk-0.1.0-py3-none-any.whl
| Download URL | messh_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4bd321b103f10a4ab9f4a35798b6563257ee9d4af2dc825f9c914b0587f0dda4
|
|
BLAKE2b-256 checksum How to use checksums |
7ece2de429d32cf5db4f24bbf60bb11710917cf601223a5571f40ea5eac38154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 23, 2026.
Transparency logSecurity for messh-sdk 0.1.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for messh_sdk-0.1.0.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 Oct 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.