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
urlstr-The URL of Fiddler Platform to make a connection to.
tokenstr-The authorization token used to authenticate with Fiddler. Can be found on the Credentials tab of the Settings page.
proxiesOptional[dict]-Dictionary mapping protocol to the URL of the proxy
timeoutOptional[int]60Seconds to wait for the server to send data before giving up.
verifyOptional[bool]TrueControls whether we verify the server’s TLS certificate.
validateOptional[bool]TrueWhether 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
ValueErrorURL or token missing while initialising the client.
IncompatibleClientFiddler 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