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 fern-beta-uat-pets-2c8d06-sc

If you are using Python 3, you can use pip3 instead:

pip3 install fern-beta-uat-pets-2c8d06-sc

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 fern-beta-uat-pets-2c8d06-sc 0.0.1.dev2026101215445236

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

Source distribution (sdist)

Source distribution for fern-beta-uat-pets-2c8d06-sc 0.0.1.dev2026101215445236
File Size Uploaded Provenance
fern_beta_uat_pets_2c8d06_sc-0.0.1.dev2026101215445236.tar.gz 54.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fern-beta-uat-pets-2c8d06-sc 0.0.1.dev2026101215445236
File Interpreter ABI Platform
fern_beta_uat_pets_2c8d06_sc-0.0.1.dev2026101215445236-py3-none-any.whl Python 3 none any Details

Total release size: 119.8 kB

Release files / fern_beta_uat_pets_2c8d06_sc-0.0.1.dev2026101215445236.tar.gz

Download URL fern_beta_uat_pets_2c8d06_sc-0.0.1.dev2026101215445236.tar.gz
Size 54.5 kB
Tags Source
SHA-256 checksum
How to use checksums
584b88a52422806444158decbdf0b2d8a8dbe8db889a6f8b88eadca4148bb33f
BLAKE2b-256 checksum
How to use checksums
ab9b62fd5b51ee3cb7cd70023811151180f5a3259d0af9ca971f6f90368bb7c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.15

Release files / fern_beta_uat_pets_2c8d06_sc-0.0.1.dev2026101215445236-py3-none-any.whl

Download URL fern_beta_uat_pets_2c8d06_sc-0.0.1.dev2026101215445236-py3-none-any.whl
Size 65.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6526fc7085da2381339b385b807bf41dacfe95f2573cb15d14a51f3b7e27e5d8
BLAKE2b-256 checksum
How to use checksums
05f6b0f276f5fb29a3fee0c3f880a4f289a4d3b1684c9025277527f6d7e73e07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.15

Security for fern-beta-uat-pets-2c8d06-sc 0.0.1.dev2026101215445236

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