Skip to main content

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] and ServiceFailure
  • persistent HttpServiceClient
  • one-shot http_client() helper
  • explicit request metadata via ServiceRequest
  • JSON-first response decoding and HTTP metadata preservation

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

macss_modular_api_rest_client-0.7.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file macss_modular_api_rest_client-0.7.0.tar.gz.

File metadata

File hashes

Hashes for macss_modular_api_rest_client-0.7.0.tar.gz
Algorithm Hash digest
SHA256 91d3f164458a771e0bce9b67f1a639953fffb3f7264422b3d1bb7a07f7c0c4be
MD5 64481a908136715b23d999de244b5533
BLAKE2b-256 16a5da08384a0fcd9436753d28ad4c0284b5f509bb23d08db559788c671bfccc

See more details on using hashes here.

File details

Details for the file macss_modular_api_rest_client-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for macss_modular_api_rest_client-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46f93a8ce9d1e0a7c64dcbe09eca9355483242151610fb9074f156560026777a
MD5 9cd8eb6e2844c6e95d4ce92591574a9d
BLAKE2b-256 8aa4d8bd669be3496646ab9bbb4f85660a3c0985c47b9531b33bfd92ec0b53f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page