diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:39:34 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 09:39:34 +0000 |
| commit | 2298ec3d76ba1406f59d3bcf6037a44e87811ca4 (patch) | |
| tree | 2f28d30f0309775e8d8d5e1ed3aaa7e339d17432 | |
| parent | 312d2f88040a6d3117a2d6629c53b3288e11822c (diff) | |
automatic import of python-databricks-api
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-databricks-api.spec | 235 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 237 insertions, 0 deletions
@@ -0,0 +1 @@ +/databricks_api-0.8.0.tar.gz diff --git a/python-databricks-api.spec b/python-databricks-api.spec new file mode 100644 index 0000000..548ae15 --- /dev/null +++ b/python-databricks-api.spec @@ -0,0 +1,235 @@ +%global _empty_manifest_terminate_build 0 +Name: python-databricks-api +Version: 0.8.0 +Release: 1 +Summary: Databricks API client auto-generated from the official databricks-cli package +License: MIT +URL: https://github.com/crflynn/databricks-api +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/67/5b/fdaaa9ce90d45686b44ad048fe01cea6efab2fb8529f58df0380a540def6/databricks_api-0.8.0.tar.gz +BuildArch: noarch + +Requires: python3-databricks-cli + +%description +|pypi| |pyversions| +*[This documentation is auto-generated]* +This package provides a simplified interface for the Databricks REST API. +The interface is autogenerated on instantiation using the underlying client +library used in the official ``databricks-cli`` python package. +Install using + pip install databricks-api +The docs here describe the interface for version **0.17.0** of +the ``databricks-cli`` package for API version **2.0**. +The ``databricks-api`` package contains a ``DatabricksAPI`` class which provides +instance attributes for the ``databricks-cli`` ``ApiClient``, as well as each of +the available service instances. The attributes of a ``DatabricksAPI`` instance are: +* DatabricksAPI.client *<databricks_cli.sdk.api_client.ApiClient>* +* DatabricksAPI.jobs *<databricks_cli.sdk.service.JobsService>* +* DatabricksAPI.cluster *<databricks_cli.sdk.service.ClusterService>* +* DatabricksAPI.policy *<databricks_cli.sdk.service.PolicyService>* +* DatabricksAPI.managed_library *<databricks_cli.sdk.service.ManagedLibraryService>* +* DatabricksAPI.dbfs *<databricks_cli.sdk.service.DbfsService>* +* DatabricksAPI.workspace *<databricks_cli.sdk.service.WorkspaceService>* +* DatabricksAPI.secret *<databricks_cli.sdk.service.SecretService>* +* DatabricksAPI.groups *<databricks_cli.sdk.service.GroupsService>* +* DatabricksAPI.token *<databricks_cli.sdk.service.TokenService>* +* DatabricksAPI.instance_pool *<databricks_cli.sdk.service.InstancePoolService>* +* DatabricksAPI.delta_pipelines *<databricks_cli.sdk.service.DeltaPipelinesService>* +* DatabricksAPI.repos *<databricks_cli.sdk.service.ReposService>* +To instantiate the client, provide the databricks host and either a token or +user and password. Also shown is the full signature of the +underlying ``ApiClient.__init__`` + from databricks_api import DatabricksAPI + # Provide a host and token + db = DatabricksAPI( + host="example.cloud.databricks.com", + token="dpapi123..." + ) + # OR a host and user and password + db = DatabricksAPI( + host="example.cloud.databricks.com", + user="me@example.com", + password="password" + ) + # Full __init__ signature + db = DatabricksAPI( + user=None, + password=None, + host=None, + token=None, + api_version='2.0', + default_headers={}, + verify=True, + command_name='', + jobs_api_version=None + ) +Refer to the `official documentation <https://docs.databricks.com/api/index.html>`_ +on the functionality and required arguments of each method below. +Each of the service instance attributes provides the following public methods: + +%package -n python3-databricks-api +Summary: Databricks API client auto-generated from the official databricks-cli package +Provides: python-databricks-api +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-databricks-api +|pypi| |pyversions| +*[This documentation is auto-generated]* +This package provides a simplified interface for the Databricks REST API. +The interface is autogenerated on instantiation using the underlying client +library used in the official ``databricks-cli`` python package. +Install using + pip install databricks-api +The docs here describe the interface for version **0.17.0** of +the ``databricks-cli`` package for API version **2.0**. +The ``databricks-api`` package contains a ``DatabricksAPI`` class which provides +instance attributes for the ``databricks-cli`` ``ApiClient``, as well as each of +the available service instances. The attributes of a ``DatabricksAPI`` instance are: +* DatabricksAPI.client *<databricks_cli.sdk.api_client.ApiClient>* +* DatabricksAPI.jobs *<databricks_cli.sdk.service.JobsService>* +* DatabricksAPI.cluster *<databricks_cli.sdk.service.ClusterService>* +* DatabricksAPI.policy *<databricks_cli.sdk.service.PolicyService>* +* DatabricksAPI.managed_library *<databricks_cli.sdk.service.ManagedLibraryService>* +* DatabricksAPI.dbfs *<databricks_cli.sdk.service.DbfsService>* +* DatabricksAPI.workspace *<databricks_cli.sdk.service.WorkspaceService>* +* DatabricksAPI.secret *<databricks_cli.sdk.service.SecretService>* +* DatabricksAPI.groups *<databricks_cli.sdk.service.GroupsService>* +* DatabricksAPI.token *<databricks_cli.sdk.service.TokenService>* +* DatabricksAPI.instance_pool *<databricks_cli.sdk.service.InstancePoolService>* +* DatabricksAPI.delta_pipelines *<databricks_cli.sdk.service.DeltaPipelinesService>* +* DatabricksAPI.repos *<databricks_cli.sdk.service.ReposService>* +To instantiate the client, provide the databricks host and either a token or +user and password. Also shown is the full signature of the +underlying ``ApiClient.__init__`` + from databricks_api import DatabricksAPI + # Provide a host and token + db = DatabricksAPI( + host="example.cloud.databricks.com", + token="dpapi123..." + ) + # OR a host and user and password + db = DatabricksAPI( + host="example.cloud.databricks.com", + user="me@example.com", + password="password" + ) + # Full __init__ signature + db = DatabricksAPI( + user=None, + password=None, + host=None, + token=None, + api_version='2.0', + default_headers={}, + verify=True, + command_name='', + jobs_api_version=None + ) +Refer to the `official documentation <https://docs.databricks.com/api/index.html>`_ +on the functionality and required arguments of each method below. +Each of the service instance attributes provides the following public methods: + +%package help +Summary: Development documents and examples for databricks-api +Provides: python3-databricks-api-doc +%description help +|pypi| |pyversions| +*[This documentation is auto-generated]* +This package provides a simplified interface for the Databricks REST API. +The interface is autogenerated on instantiation using the underlying client +library used in the official ``databricks-cli`` python package. +Install using + pip install databricks-api +The docs here describe the interface for version **0.17.0** of +the ``databricks-cli`` package for API version **2.0**. +The ``databricks-api`` package contains a ``DatabricksAPI`` class which provides +instance attributes for the ``databricks-cli`` ``ApiClient``, as well as each of +the available service instances. The attributes of a ``DatabricksAPI`` instance are: +* DatabricksAPI.client *<databricks_cli.sdk.api_client.ApiClient>* +* DatabricksAPI.jobs *<databricks_cli.sdk.service.JobsService>* +* DatabricksAPI.cluster *<databricks_cli.sdk.service.ClusterService>* +* DatabricksAPI.policy *<databricks_cli.sdk.service.PolicyService>* +* DatabricksAPI.managed_library *<databricks_cli.sdk.service.ManagedLibraryService>* +* DatabricksAPI.dbfs *<databricks_cli.sdk.service.DbfsService>* +* DatabricksAPI.workspace *<databricks_cli.sdk.service.WorkspaceService>* +* DatabricksAPI.secret *<databricks_cli.sdk.service.SecretService>* +* DatabricksAPI.groups *<databricks_cli.sdk.service.GroupsService>* +* DatabricksAPI.token *<databricks_cli.sdk.service.TokenService>* +* DatabricksAPI.instance_pool *<databricks_cli.sdk.service.InstancePoolService>* +* DatabricksAPI.delta_pipelines *<databricks_cli.sdk.service.DeltaPipelinesService>* +* DatabricksAPI.repos *<databricks_cli.sdk.service.ReposService>* +To instantiate the client, provide the databricks host and either a token or +user and password. Also shown is the full signature of the +underlying ``ApiClient.__init__`` + from databricks_api import DatabricksAPI + # Provide a host and token + db = DatabricksAPI( + host="example.cloud.databricks.com", + token="dpapi123..." + ) + # OR a host and user and password + db = DatabricksAPI( + host="example.cloud.databricks.com", + user="me@example.com", + password="password" + ) + # Full __init__ signature + db = DatabricksAPI( + user=None, + password=None, + host=None, + token=None, + api_version='2.0', + default_headers={}, + verify=True, + command_name='', + jobs_api_version=None + ) +Refer to the `official documentation <https://docs.databricks.com/api/index.html>`_ +on the functionality and required arguments of each method below. +Each of the service instance attributes provides the following public methods: + +%prep +%autosetup -n databricks-api-0.8.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-databricks-api -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.0-1 +- Package Spec generated @@ -0,0 +1 @@ +0a5b1a95ea4915bc06f01dadeb36fdda databricks_api-0.8.0.tar.gz |
