whylabs-client-0.6.9
توضیحات
WhyLabs API client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | whylabs-client-0.6.9 |
| نام | whylabs-client |
| نسخه کتابخانه | 0.6.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | WhyLabs |
| ایمیل نویسنده | support@whylabs.ai |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/whylabs-client/ |
| مجوز | Apache License 2.0 |
# 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)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | urllib3>=1.25.3 |
| - | python-dateutil |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl whylabs-client-0.6.9:
pip install whylabs-client-0.6.9.whl
نصب پکیج tar.gz whylabs-client-0.6.9:
pip install whylabs-client-0.6.9.tar.gz