Skip to main content

OAMP-APIBASE

Build Status PyPI version License

These are abstract API Clients to be used to contact external API Services

There are Three Clients supported:

  • HTTPClient

The HTTPClient is a simple client that can be used to make HTTP requests to an API. It uses the httpx library to make the requests, and so returns a rich object as the response. This object can be used to access the response data, headers, and status code.

  • HTTPProxyClient

The HTTPProxyClient is a client that can be used to make HTTP requests to an API through a proxy. It supports both HTTP (not reccommended) and HTTPS proxies, and can be used to make requests to APIs that require a proxy to be used. If the proxy requires authentication, the client can be configured to use a username and password.

  • HttpProxyTokenClient

The HttpProxyTokenClient is a client that can be used to make HTTP requests to an API through a proxy, and that requires a token to be passed in the headers.

Installation

pip install oamp-apibase

Usage

The Response Object

The response object returned by the clients is an instance of the httpx.Response class.

This object has the following attributes:

  • status_code: The status code of the response
  • reason_phrase: The reason phrase of the response
  • headers: A dictionary of the response headers

Testing

License

This project is licensed under the MIT License - see the LICENSE file for details

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

This project is Copyright (c) 2025 by Mike Simkins, All Rights Reserved

Metadata

Release files for oamp-apibase 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oamp-apibase 0.1.0
File Size Uploaded Provenance Actions
oamp_apibase-0.1.0.tar.gz 4.1 kB Without provenance Details for oamp_apibase-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oamp-apibase 0.1.0
File Interpreter ABI Platform Actions
oamp_apibase-0.1.0-py3-none-any.whl Python 3 none any Details for oamp_apibase-0.1.0-py3-none-any.whl

Total release size: 8.9 kB

Release files / oamp_apibase-0.1.0.tar.gz

Download URL oamp_apibase-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
346ad2363710a2ce9231a57e4c7551a40cf6c2503e3bd15a5471c349e88eab3e
BLAKE2b-256 checksum
How to use checksums
e187fd8e63cac7ae0382dc0405035f9cb77cc00f5f547d2be783a9c3b58dc2dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

Release files / oamp_apibase-0.1.0-py3-none-any.whl

Download URL oamp_apibase-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49b29695ed52181748f89c62ac6968e43cccf2764148c7934f852389553bccf0
BLAKE2b-256 checksum
How to use checksums
1a999a72c90e362e58f854f5187b4a03d36cde333d59a5183c0e7db43c46955c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

Security for oamp-apibase 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page