Official MACSS outbound REST client for Python.
Project description
macss-modular-api-rest-client
Official MACSS outbound REST client for Python.
Quick start
from modular_api_rest_client import ServiceClientConfig, ServiceRequest, http_client
result = http_client(
config=ServiceClientConfig(
service_id="users",
base_url="https://api.example.test",
redacted_summary="users@example",
default_headers={"accept": "application/json"},
),
request=ServiceRequest(
operation_id="users.list",
method="GET",
path="/users",
),
)
if result.is_success:
print(result.value.data)
else:
print(result.failure.message)
Current slice
- normalized
ServiceResult[T]andServiceFailure - persistent
HttpServiceClient - one-shot
http_client()helper - explicit request metadata via
ServiceRequest - JSON-first response decoding and HTTP metadata preservation
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 macss_modular_api_rest_client-0.6.0.tar.gz.
File metadata
- Download URL: macss_modular_api_rest_client-0.6.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9df724f1ed5313dfb8b2288281cfe40a8b55e1894e4fa918be3f80b793061590
|
|
| MD5 |
02d8b423072461b713bd7134c1106550
|
|
| BLAKE2b-256 |
90d69b67e45ed9357ade20536266fcde314051699eb9142adde7ac3fd7c83f76
|
File details
Details for the file macss_modular_api_rest_client-0.6.0-py3-none-any.whl.
File metadata
- Download URL: macss_modular_api_rest_client-0.6.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d99c559a299906a7a2e6795c515ab652663f756adb9fd2a829e3b36a51dff4cf
|
|
| MD5 |
23c8ec5cf60add5503c5297d0d0dc560
|
|
| BLAKE2b-256 |
2323fdada7707aaa3380a88b0ffebf18d67cd0d6c8dd9ce670e30b68698abb64
|