macss-modular-api-graphql-client
Official MACSS outbound GraphQL client for Python.
Quick start
from modular_api_graphql_client import GraphqlRequest, ServiceClientConfig, graphql_client
result = graphql_client(
config=ServiceClientConfig(
service_id="users-graphql",
base_url="https://api.example.test",
redacted_summary="users-graphql@example",
default_headers={"accept": "application/json"},
),
request=GraphqlRequest(
operation_id="users.query",
document="query GetUsers { users { id } }",
operation_name="GetUsers",
),
decoder=lambda value: dict(value or {}),
)
if result.is_success:
print(result.value.data)
print(result.value.errors)
else:
print(result.failure.message)
Current slice
- query-only GraphQL POST requests to
/graphql - normalized
GraphqlResponse[T]withdata,errors,extensions, and metadata - persistent
GraphqlClient - one-shot
graphql_client()helper - transport failures kept separate from GraphQL error envelopes
Release files for macss-modular-api-graphql-client 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| macss_modular_api_graphql_client-0.7.1.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| macss_modular_api_graphql_client-0.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / macss_modular_api_graphql_client-0.7.1.tar.gz
| Download URL | macss_modular_api_graphql_client-0.7.1.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c663088b9fa38554295d9126076b5dc6f2161ff236e813d1e0cc430167a74694
|
|
BLAKE2b-256 checksum How to use checksums |
eaf9163aada66d6e6db8aadb2d7a2c8f14de8ba5f6d6d9c0b36b5f73ac27c800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / macss_modular_api_graphql_client-0.7.1-py3-none-any.whl
| Download URL | macss_modular_api_graphql_client-0.7.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a8ae9b03558fa5488598bdef65b5536b4abc64cb578ff0a4a334bd87ec6dda6
|
|
BLAKE2b-256 checksum How to use checksums |
47d4a4448b56e6854a9cc9d7fa3197e5ea104e6dfb530dd5dace92598775462c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|