About Client 3.x

The Fiddler Client contains many useful methods for sending and receiving data to and from the Fiddler platform.

Fiddler provides a Python Client that allows you to connect to Fiddler directly from a Python notebook or automated pipeline.

Each client function is documented with a description, usage information, and code examples.

Initialisation

The Client object is used to communicate with Fiddler.

Import fiddler

To import fiddler client, we can use the below method:

import fiddler as fdl
from fiddler import Model, Project

Authenticate and connect:

In order to use the client, you'll need to provide authentication details as shown below.

Usage params

ParameterTypeDefaultDescription

url

str

-

The URL of Fiddler Platform to make a connection to.

token

str

-

The authorization token used to authenticate with Fiddler. Can be found on the Credentials tab of the Settings page.

proxies

Optional[dict]

-

Dictionary mapping protocol to the URL of the proxy

timeout

Optional[int]

60

Seconds to wait for the server to send data before giving up.

verify

Optional[bool]

True

Controls whether we verify the serverโ€™s TLS certificate.

validate

Optional[bool]

True

Whether to validate the server/client version compatibility. Some functionalities might not work if this is turned off.

Return params

None

Usage

fdl.init(
  url: str,
  token: str,
  proxies: dict[str, Any],
  timeout: int,
  verify: bool,
  validate: bool
)
fdl.init(
  url="https://xyz.fiddler.ai",
  token="abc"
)

Raises

Error codeIssue

ValueError

URL or token missing while initialising the client.

IncompatibleClient

Fiddler Platform version is not compatible with Client version.

๐Ÿ“˜ Info

To maximize compatibility, please ensure that your client version matches the server version for your Fiddler instance.

When you connect to Fiddler using the code on the right, you'll receive a notification if there is a version mismatch between the client and server.

You can install a specific version of fiddler-client using pip: pip install fiddler-client==X.X.X

\

Last updated

ยฉ 2024 Fiddler AI