mcs-types-http
Shared HTTP types for the Model Context Standard (MCS).
Contains HttpResponse and HttpError -- the library-agnostic value
objects returned by any MCS HTTP adapter (mcs-adapter-http,
mcs-adapter-http-httpx, ...).
This package has zero dependencies. It exists so that alternative HTTP adapter implementations can share the same response type without depending on each other.
Installation
pip install mcs-types-http
Most users don't need to install this directly -- it's pulled in
automatically by mcs-adapter-http and other adapter packages.
Usage
from mcs.types.http import HttpResponse, HttpError
resp = HttpResponse(status_code=200, text='{"ok": true}')
assert resp.ok
data = resp.json()
Links
- Homepage: https://www.modelcontextstandard.io
- Source: https://github.com/modelcontextstandard/python-sdk
License
Apache-2.0
Metadata
Release files for mcs-types-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 |
|---|---|---|---|---|
| mcs_types_http-0.1.0.tar.gz | 6.8 kB | Without provenance | Details for mcs_types_http-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcs_types_http-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcs_types_http-0.1.0-py3-none-any.whl |
Total release size: 14.1 kB
Release files / mcs_types_http-0.1.0.tar.gz
| Download URL | mcs_types_http-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03f0697f546ca358119101e2af594288348f757757960003efa3b436ece3fd6d
|
|
BLAKE2b-256 checksum How to use checksums |
99a86f1cb46d31f69411d538ee4908e4a9d5d53089af3addacc5393d676a64a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Release files / mcs_types_http-0.1.0-py3-none-any.whl
| Download URL | mcs_types_http-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13dbbf41d37227d656a58a5316328b13fb4fad1b2f6a03d3348e827da66711b5
|
|
BLAKE2b-256 checksum How to use checksums |
e223b48487d44a6faf15d9b1ba91e5e3512b62dc5a07ed8b59348cf09724dfd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Security for mcs-types-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.
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.