whylabs-client


Namewhylabs-client JSON
Version 0.6.3 PyPI version JSON
download
home_pageNone
SummaryWhyLabs API client
upload_time2024-04-25 11:53:39
maintainerNone
docs_urlNone
authorWhyLabs
requires_python>=3.6
licenseApache License 2.0
keywords openapi openapi-generator whylabs api client
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/4f/5a/1acc200f5ff36771bc53c968be8ee9c828c183822fb09eeadde6204765f6/whylabs-client-0.6.3.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.3",
    "project_urls": null,
    "split_keywords": [
        "openapi",
        " openapi-generator",
        " whylabs api client"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0da6c687658d2d899c51124b3a22abbad8e0b9d3677350c70f49f2062dc076de",
                "md5": "996cab5d4006e5c84285637f8cfc7364",
                "sha256": "050bcfd1493fbb303f38b02b750fb5321abeeed1e775f7dfd570998d3bf5719b"
            },
            "downloads": -1,
            "filename": "whylabs_client-0.6.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "996cab5d4006e5c84285637f8cfc7364",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 494608,
            "upload_time": "2024-04-25T11:53:37",
            "upload_time_iso_8601": "2024-04-25T11:53:37.576108Z",
            "url": "https://files.pythonhosted.org/packages/0d/a6/c687658d2d899c51124b3a22abbad8e0b9d3677350c70f49f2062dc076de/whylabs_client-0.6.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4f5a1acc200f5ff36771bc53c968be8ee9c828c183822fb09eeadde6204765f6",
                "md5": "4549a3068d93ac6c1832fa3720e71aa3",
                "sha256": "4df4daa436f7899c60575c5a72641a2b3cbfe9d2f0cc0d6b4831746d13342088"
            },
            "downloads": -1,
            "filename": "whylabs-client-0.6.3.tar.gz",
            "has_sig": false,
            "md5_digest": "4549a3068d93ac6c1832fa3720e71aa3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 117266,
            "upload_time": "2024-04-25T11:53:39",
            "upload_time_iso_8601": "2024-04-25T11:53:39.084616Z",
            "url": "https://files.pythonhosted.org/packages/4f/5a/1acc200f5ff36771bc53c968be8ee9c828c183822fb09eeadde6204765f6/whylabs-client-0.6.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-25 11:53:39",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "whylabs-client"
}
        
Elapsed time: 0.24614s