This release is a pre-release and may not be stable for production use.
DirectPublishingTest Python SDK 1.0.0
Welcome to the DirectPublishingTest SDK documentation. This guide will help you get started with integrating and using the DirectPublishingTest SDK in your project.
Versions
- SDK version:
1.0.0
Table of Contents
Setup & Configuration
Supported Language Versions
This SDK is compatible with the following versions: Python >= 3.9
Installation
To get started with the SDK, we recommend installing using pip:
pip install pm-ahamot-direct-publishing-test
If you are using Python 3, you can use pip3 instead:
pip3 install pm-ahamot-direct-publishing-test
Disabling Redirects
By default, the SDK follows HTTP redirects (3xx responses) automatically. Pass
follow_redirects=False to get the redirect response back as-is instead:
client = DirectPublishingTest(follow_redirects=False)
This can also be changed later with client.set_follow_redirects(False).
Logging
The SDK is silent by default. Pass a standard library logging.Logger as logger to log
every outgoing request and its response (method, URL, status, and duration):
import logging
logger = logging.getLogger("DirectPublishingTest")
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())
client = DirectPublishingTest(logger=logger)
This can also be changed later with client.set_logging(logger).
Authorization and Cookie header values are always redacted in logged output, regardless
of the logger's own configuration.
Setting a Custom Timeout
You can set a custom timeout for the SDK's HTTP requests as follows:
from direct_publishing_test import DirectPublishingTest
sdk = DirectPublishingTest(timeout=10)
Sample Usage
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
from direct_publishing_test import DirectPublishingTest
sdk = DirectPublishingTest(
timeout=10
)
result = sdk.widgets.get_widget(widget_id="widgetId")
print(result)
Async Usage
The SDK includes an Async Client for making asynchronous API requests. This is useful for applications that need non-blocking operations, like web servers or apps with a graphical user interface.
import asyncio
from direct_publishing_test import DirectPublishingTestAsync
sdk = DirectPublishingTestAsync(
timeout=10
)
async def main():
result = await sdk.widgets.get_widget(widget_id="widgetId")
print(result)
asyncio.run(main())
Services
The SDK provides various services to interact with the API.
Below is a list of all available services:
| Name |
|---|
| widgets |
Models
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
Below is a list of all available models:
| Name | Description |
|---|---|
| Widget |
Metadata
Release files for pm-ahamot-direct-publishing-test 0.0.1.dev2026100117383348
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 | |
|---|---|---|---|---|
| pm_ahamot_direct_publishing_test-0.0.1.dev2026100117383348.tar.gz | 53.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pm_ahamot_direct_publishing_test-0.0.1.dev2026100117383348-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 119.4 kB
Release files / pm_ahamot_direct_publishing_test-0.0.1.dev2026100117383348.tar.gz
| Download URL | pm_ahamot_direct_publishing_test-0.0.1.dev2026100117383348.tar.gz |
|---|---|
| Size | 53.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a062da6056e13b690e73d0ba8e1d0c7505606ff1b719edd5a4dbe3df35f3dc67
|
|
BLAKE2b-256 checksum How to use checksums |
ae1027b662bd3225f0137a61f1fd502271e5c2da807a975a8cb7dacf64db0471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.15
|
Release files / pm_ahamot_direct_publishing_test-0.0.1.dev2026100117383348-py3-none-any.whl
| Download URL | pm_ahamot_direct_publishing_test-0.0.1.dev2026100117383348-py3-none-any.whl |
|---|---|
| Size | 65.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05ef0edbc0cd0e453a8bd09358202229fbe7e67e549268413b1a1b99d7f19b1a
|
|
BLAKE2b-256 checksum How to use checksums |
f24da23c009070e0d23e3aead7b0db1a7c6b209ec28a026f32b94c378d4f8f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.15
|
Security for pm-ahamot-direct-publishing-test 0.0.1.dev2026100117383348
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.