muad-skill-http
Trace-aware HTTP helpers and a platform request client for muad skills.
platform_request() sends business-platform requests through a platform session
managed by session-manager. It assembles the browser defaults, platform host
header, platform static headers, cookies, CSRF header and a fresh Traceid
UUID v4 for every request, and re-asserts the mandatory headers last so caller
headers cannot override them. Cookie and CSRF values never reach the trace
spool.
Install
pip install muad-skill-http
Usage
from muad_skill_http import get, platform_request
# Plain HTTP with trace accounting.
response = get("https://example.com/api/v1/items")
# Business-platform request: headers and Traceid are built by the SDK.
response = platform_request("demo", "GET", "/api/v1/targets")
get / post / put / patch / delete / head / options / request
wrap requests and record request counts for the current skill execution.
Runtime requirements for platform_request
platform_request resolves the platform session from the skill runtime, not
from the local machine. It needs:
MUAD_SKILL_NAMEset to the running skill name;- a
session-managerexecutable onPATHthat answerssession-manager get-state --skill-name <name>with{"sessionStateFile": "..."}; - a session state file containing the requested platform's credentials.
Outside that environment it raises muad_skill_http.PlatformSessionError.
Plain get / post calls work anywhere.
Environment variables
| Variable | Purpose |
|---|---|
MUAD_SKILL_NAME |
Skill name used to resolve the platform session. |
MUAD_TRACE_SPOOL |
Optional JSONL trace spool path; paired with MUAD_EXECUTION_ID. |
MUAD_EXECUTION_ID |
Execution id written to the trace spool. |
MUAD_SKILL_REQUEST_LIMIT |
Per-execution interface request limit; unset or 0 means unlimited. Exceeding the limit exits with code 86. |
I/O failures while writing the trace spool are swallowed: auditing never breaks a skill request.
Development
python -m pytest test
Releases are published by pushing an sdk-v* tag; the tag must match
project.version in pyproject.toml.
Metadata
Release files for muad-skill-http 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 | Actions |
|---|---|---|---|---|
| muad_skill_http-0.1.0.tar.gz | 16.3 kB | With provenance | Details for muad_skill_http-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| muad_skill_http-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for muad_skill_http-0.1.0-py3-none-any.whl |
Total release size: 27.1 kB
Release files / muad_skill_http-0.1.0.tar.gz
| Download URL | muad_skill_http-0.1.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e43e39b8fca6c383bde11319879fe2120893c35b8ebb9487348350dafdcfb365
|
|
BLAKE2b-256 checksum How to use checksums |
084232a90c7a1bc0a590d8fcc389fc04701951ccaabb27df65f088c8a4f05eaf
|
| 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 Oct 19, 2026.
Transparency logRelease files / muad_skill_http-0.1.0-py3-none-any.whl
| Download URL | muad_skill_http-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d6061ef9342dca4435ea3a4d91a49505ad342ed9727cdc7a3f95dad23e7d979
|
|
BLAKE2b-256 checksum How to use checksums |
cdbfeb07ef7636c7a15c25c13e8953532e7b88f07c8bba654cdf1e75ff92e258
|
| 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 Oct 19, 2026.
Transparency logSecurity for muad-skill-http 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
Both files in this release have been uploaded with provenance metadata.
Attestation for muad_skill_http-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 19, 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.