Skip to main content

WhyLabs API client

Project description

whylabs-client

WhyLabs API that enables end-to-end AI observability

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://whylabs.ai

Requirements.

Python >= 3.6

Installation & Usage

pip install

You can install directly using:

pip install whylabs-client

Then import the package:

import whylabs_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import whylabs_client

Getting Started

Please follow the installation procedure and then run the following:

import time
import whylabs_client
from pprint import pprint
from whylabs_client.api import dataset_profile_api
from whylabs_client.model.delete_analyzer_results_response import DeleteAnalyzerResultsResponse
from whylabs_client.model.delete_dataset_profiles_response import DeleteDatasetProfilesResponse
from whylabs_client.model.reference_profile_item_response import ReferenceProfileItemResponse
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = whylabs_client.Configuration(
    host = "https://api.whylabsapp.com"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'
configuration.discard_unknown_keys = True

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with whylabs_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dataset_profile_api.DatasetProfileApi(api_client)
    org_id = "org-123" # str | Your company's unique organization ID
dataset_id = "model-123" # str | The unique dataset ID in your company.
start_timestamp = 1577836800000 # int, none_type | Optional, scope deleting analyzer results more recent than the timestamp (optional)
end_timestamp = 1893456000000 # int, none_type | Optional, scope deleting analyzer results older than the timestamp (optional)

    try:
        # Deletes a set of analyzer results
        api_response = api_instance.delete_analyzer_results(org_id, dataset_id, start_timestamp=start_timestamp, end_timestamp=end_timestamp)
        pprint(api_response)
    except whylabs_client.ApiException as e:
        print("Exception when calling DatasetProfileApi->delete_analyzer_results: %s\n" % e)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whylabs-client-0.6.0.tar.gz (106.7 kB view details)

Uploaded Source

Built Distribution

whylabs_client-0.6.0-py3-none-any.whl (428.4 kB view details)

Uploaded Python 3

File details

Details for the file whylabs-client-0.6.0.tar.gz.

File metadata

  • Download URL: whylabs-client-0.6.0.tar.gz
  • Upload date:
  • Size: 106.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.17

File hashes

Hashes for whylabs-client-0.6.0.tar.gz
Algorithm Hash digest
SHA256 46101dda1d9ec802ec4c891018acdd8b73b3f34aef55ae938eb887affe2e248d
MD5 14494e52c5d4876c6744bd5f5941de73
BLAKE2b-256 2c917e05a0acaf09f7d7ccc9a3240fcf2d11d84c0e0d4a6c17af7a2c1a452f51

See more details on using hashes here.

File details

Details for the file whylabs_client-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: whylabs_client-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 428.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.17

File hashes

Hashes for whylabs_client-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 686cc30492c206915af053f2bfb5a720b914f62c3ca56c88492fd7c60a1658a1
MD5 b1d4e5cd16b6b111616656996da38ccd
BLAKE2b-256 b870789b94a547451cf77b4b09c3fcc3f4df0beb86929b13df1f84172c0b6fb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page