From b448b776c69b72b1a71828a9ef8050ff8c2c650c Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 03:00:55 +0000 Subject: automatic import of python-whylabs-client --- .gitignore | 1 + python-whylabs-client.spec | 350 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 352 insertions(+) create mode 100644 python-whylabs-client.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..66dc07d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/whylabs-client-0.5.0.tar.gz diff --git a/python-whylabs-client.spec b/python-whylabs-client.spec new file mode 100644 index 0000000..ec7b34f --- /dev/null +++ b/python-whylabs-client.spec @@ -0,0 +1,350 @@ +%global _empty_manifest_terminate_build 0 +Name: python-whylabs-client +Version: 0.5.0 +Release: 1 +Summary: WhyLabs API client +License: Apache License 2.0 +URL: https://pypi.org/project/whylabs-client/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5b/92/a6520157eb284174f13e8aff243d4a76411cb88f9c6c3fb7fa2e86006e76/whylabs-client-0.5.0.tar.gz +BuildArch: noarch + +Requires: python3-urllib3 +Requires: python3-dateutil + +%description +# 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' + +# 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) +``` + + + + + +%package -n python3-whylabs-client +Summary: WhyLabs API client +Provides: python-whylabs-client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-whylabs-client +# 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' + +# 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) +``` + + + + + +%package help +Summary: Development documents and examples for whylabs-client +Provides: python3-whylabs-client-doc +%description help +# 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' + +# 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) +``` + + + + + +%prep +%autosetup -n whylabs-client-0.5.0 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-whylabs-client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 0.5.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..54f5bc7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +b1e7f449bc4da26890fe651559046364 whylabs-client-0.5.0.tar.gz -- cgit v1.2.3