Skip to main content
Pre-release

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 = FernApi(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("FernApi")
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())

client = FernApi(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 fern import FernApi

sdk = FernApi(timeout=10)

Sample Usage

Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:

from fern import FernApi

sdk = FernApi(
    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 fern import AsyncFernApi

sdk = AsyncFernApi(
    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.dev2026101614392786

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

Source distribution (sdist)

Source distribution for pm-ahamot-direct-publishing-test 0.0.1.dev2026101614392786
File Size Uploaded Provenance
pm_ahamot_direct_publishing_test-0.0.1.dev2026101614392786.tar.gz 56.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pm-ahamot-direct-publishing-test 0.0.1.dev2026101614392786
File Interpreter ABI Platform
pm_ahamot_direct_publishing_test-0.0.1.dev2026101614392786-py3-none-any.whl Python 3 none any Details

Total release size: 124.0 kB

Release files / pm_ahamot_direct_publishing_test-0.0.1.dev2026101614392786.tar.gz

Download URL pm_ahamot_direct_publishing_test-0.0.1.dev2026101614392786.tar.gz
Size 56.6 kB
Tags Source
SHA-256 checksum
How to use checksums
de22988eebfd1dda33756a8ec8cb62fb187d5fe2175b9713b0518a82314593a2
BLAKE2b-256 checksum
How to use checksums
fa3b8243441fcc8ca06b29708793d127402cabf0912969645c07213a0f921c6c
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.dev2026101614392786-py3-none-any.whl

Download URL pm_ahamot_direct_publishing_test-0.0.1.dev2026101614392786-py3-none-any.whl
Size 67.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08f727ba6b9e58c44b3b6d9803c5c1308daed9d69664aad14b64b6ccd4675272
BLAKE2b-256 checksum
How to use checksums
aaee7fa3fa07cf50216cbb9b9d1ac6ffa2e0da4c2c3d3a6452968c9b94f5c368
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.dev2026101614392786

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.

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