# whylabs-client
WhyLabs API that enables end-to-end AI observability
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 0.1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://whylabs.ai](https://whylabs.ai)
## Requirements.
Python >= 3.6
## Installation & Usage
### pip install
You can install directly using:
```sh
pip install whylabs-client
```
Then import the package:
```python
import whylabs_client
```
### Setuptools
Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
```sh
python setup.py install --user
```
(or `sudo python setup.py install` to install the package for all users)
Then import the package:
```python
import whylabs_client
```
## Getting Started
Please follow the [installation procedure](#installation--usage) and then run the following:
```python
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)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "whylabs-client",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "OpenAPI, OpenAPI-Generator, WhyLabs API client",
"author": "WhyLabs",
"author_email": "support@whylabs.ai",
"download_url": "https://files.pythonhosted.org/packages/53/ed/904425308a095fd978437c08f2885ed585738a1438a7e6020c844f6207bb/whylabs-client-0.6.16.tar.gz",
"platform": null,
"description": "# whylabs-client\nWhyLabs API that enables end-to-end AI observability\n\nThis Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: 0.1\n- Build package: org.openapitools.codegen.languages.PythonClientCodegen\n For more information, please visit [https://whylabs.ai](https://whylabs.ai)\n\n## Requirements.\n\nPython >= 3.6\n\n## Installation & Usage\n### pip install\n\nYou can install directly using:\n\n```sh\npip install whylabs-client\n```\n\n\nThen import the package:\n```python\nimport whylabs_client\n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport whylabs_client\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\n\nimport time\nimport whylabs_client\nfrom pprint import pprint\nfrom whylabs_client.api import dataset_profile_api\nfrom whylabs_client.model.delete_analyzer_results_response import DeleteAnalyzerResultsResponse\nfrom whylabs_client.model.delete_dataset_profiles_response import DeleteDatasetProfilesResponse\nfrom whylabs_client.model.reference_profile_item_response import ReferenceProfileItemResponse\n# Defining the host is optional and defaults to http://localhost\n# See configuration.py for a list of all supported configuration parameters.\nconfiguration = whylabs_client.Configuration(\n host = \"https://api.whylabsapp.com\"\n)\n\n# The client must configure the authentication and authorization parameters\n# in accordance with the API server security policy.\n# Examples for each auth method are provided below, use the example that\n# satisfies your auth use case.\n\n# Configure API key authorization: ApiKeyAuth\nconfiguration.api_key['ApiKeyAuth'] = 'YOUR_API_KEY'\nconfiguration.discard_unknown_keys = True\n\n# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed\n# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'\n\n\n# Enter a context with an instance of the API client\nwith whylabs_client.ApiClient(configuration) as api_client:\n # Create an instance of the API class\n api_instance = dataset_profile_api.DatasetProfileApi(api_client)\n org_id = \"org-123\" # str | Your company's unique organization ID\ndataset_id = \"model-123\" # str | The unique dataset ID in your company.\nstart_timestamp = 1577836800000 # int, none_type | Optional, scope deleting analyzer results more recent than the timestamp (optional)\nend_timestamp = 1893456000000 # int, none_type | Optional, scope deleting analyzer results older than the timestamp (optional)\n\n try:\n # Deletes a set of analyzer results\n api_response = api_instance.delete_analyzer_results(org_id, dataset_id, start_timestamp=start_timestamp, end_timestamp=end_timestamp)\n pprint(api_response)\n except whylabs_client.ApiException as e:\n print(\"Exception when calling DatasetProfileApi->delete_analyzer_results: %s\\n\" % e)\n```\n\n\n\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "WhyLabs API client",
"version": "0.6.16",
"project_urls": null,
"split_keywords": [
"openapi",
" openapi-generator",
" whylabs api client"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d39142167d19a2cc4c94dc5d6a8b7b91003992a314268ba59eed926df6b7d5af",
"md5": "0a3c40b0f8ee396106a746d23eedb943",
"sha256": "bc4d99cd0454d13ff1e21126102427f1e75c88b5d2ed35bb2751136a898b1cef"
},
"downloads": -1,
"filename": "whylabs_client-0.6.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0a3c40b0f8ee396106a746d23eedb943",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 534031,
"upload_time": "2025-01-13T23:00:41",
"upload_time_iso_8601": "2025-01-13T23:00:41.585899Z",
"url": "https://files.pythonhosted.org/packages/d3/91/42167d19a2cc4c94dc5d6a8b7b91003992a314268ba59eed926df6b7d5af/whylabs_client-0.6.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "53ed904425308a095fd978437c08f2885ed585738a1438a7e6020c844f6207bb",
"md5": "461d97b1965d36980d34c14b3f6e8763",
"sha256": "bcf8312ffc47941b2d3a606aeaf7ca26a231b96289030265039f5a5600218493"
},
"downloads": -1,
"filename": "whylabs-client-0.6.16.tar.gz",
"has_sig": false,
"md5_digest": "461d97b1965d36980d34c14b3f6e8763",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 125391,
"upload_time": "2025-01-13T23:00:44",
"upload_time_iso_8601": "2025-01-13T23:00:44.264766Z",
"url": "https://files.pythonhosted.org/packages/53/ed/904425308a095fd978437c08f2885ed585738a1438a7e6020c844f6207bb/whylabs-client-0.6.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-13 23:00:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "whylabs-client"
}