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.dev2026101418555177

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.dev2026101418555177
File Size Uploaded Provenance
pm_ahamot_direct_publishing_test-0.0.1.dev2026101418555177.tar.gz 54.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 119.9 kB

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

Download URL pm_ahamot_direct_publishing_test-0.0.1.dev2026101418555177.tar.gz
Size 54.7 kB
Tags Source
SHA-256 checksum
How to use checksums
67cba7ef27e899556a4aa8ade96d4093e04920544053e4ace6c91b6ebe795942
BLAKE2b-256 checksum
How to use checksums
39101b799b558b3a77c34c8a044846a8a16951c65fa25e6ec0ffc56507f90d62
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.dev2026101418555177-py3-none-any.whl

Download URL pm_ahamot_direct_publishing_test-0.0.1.dev2026101418555177-py3-none-any.whl
Size 65.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8c983e4eb426f73e3198fb34573e16609e0b5bef79b5ee0e6ccad448c919658
BLAKE2b-256 checksum
How to use checksums
b7e89b91cfa9cc0984131cea84ae17976f85f64af0e39981ad182128a8b8b03d
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.dev2026101418555177

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