Skip to main content

DirectPublishingTest Python SDK 0.1.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: 0.1.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 beta-uat-agentc-r09-20261012

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

pip3 install beta-uat-agentc-r09-20261012

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 beta-uat-agentc-r09-20261012 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 beta-uat-agentc-r09-20261012 0.1.0
File Size Uploaded Provenance
beta_uat_agentc_r09_20261012-0.1.0.tar.gz 53.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for beta-uat-agentc-r09-20261012 0.1.0
File Interpreter ABI Platform
beta_uat_agentc_r09_20261012-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 118.0 kB

Release files / beta_uat_agentc_r09_20261012-0.1.0.tar.gz

Download URL beta_uat_agentc_r09_20261012-0.1.0.tar.gz
Size 53.0 kB
Tags Source
SHA-256 checksum
How to use checksums
55770cfab1f66927254c0bd989abc5d6a1120898e834498d366b672a3deab0e4
BLAKE2b-256 checksum
How to use checksums
d33047efc42b061f71500b2630988a0fe6c85a18e81264c158a69bf125e729f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.15

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

Download URL beta_uat_agentc_r09_20261012-0.1.0-py3-none-any.whl
Size 65.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f5d918d41e701265b68082feeab021e59efa31bf360ddbff30650b169b041af
BLAKE2b-256 checksum
How to use checksums
d570bd51ead66729e7d17cecc4b923d81f8bd1a1e02f6a18fc8cbebb743e921a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.15

Security for beta-uat-agentc-r09-20261012 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