summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 08:20:52 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 08:20:52 +0000
commite9e38e844654614fca1bb75f75496f9b67865a27 (patch)
tree764d451224e12df4aba5e9a849756c7ff867326d
parent0d8668f08a7d1c148e403b768a3a87fb91ab8160 (diff)
automatic import of python-oceanbolt-sdkopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-oceanbolt-sdk.spec327
-rw-r--r--sources1
3 files changed, 329 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2b4eb45 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/oceanbolt.sdk-0.5.1.tar.gz
diff --git a/python-oceanbolt-sdk.spec b/python-oceanbolt-sdk.spec
new file mode 100644
index 0000000..0c2f727
--- /dev/null
+++ b/python-oceanbolt-sdk.spec
@@ -0,0 +1,327 @@
+%global _empty_manifest_terminate_build 0
+Name: python-oceanbolt.sdk
+Version: 0.5.1
+Release: 1
+Summary: A Python wrapper around the Oceanbolt client API
+License: MIT
+URL: https://github.com/oceanbolt/oceanbolt-python-sdk
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2a/cc/1d8187e8f4f9933943c7a22beb4d8f8e817667ea16d0a685f9e19f01f83c/oceanbolt.sdk-0.5.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-google-api-core
+Requires: python3-libcst
+Requires: python3-googleapis-common-protos
+Requires: python3-proto-plus
+Requires: python3-grpcio
+Requires: python3-pandas
+Requires: python3-numpy
+Requires: python3-protobuf
+Requires: python3-Sphinx
+Requires: python3-sphinx-rtd-theme
+Requires: python3-sphinx-autodoc-typehints
+Requires: python3-build
+Requires: python3-twine
+Requires: python3-black
+Requires: python3-mypy-extensions
+Requires: python3-mypy
+Requires: python3-pre-commit
+Requires: python3-pytest
+Requires: python3-pytest-dotenv
+Requires: python3-dateutil
+Requires: python3-pytest-rerunfailures
+Requires: python3-mock
+Requires: python3-flake8
+Requires: python3-hypothesis
+
+%description
+# Oceanbolt Python SDK
+
+[![Github CI](https://github.com/oceanbolt/oceanbolt-python-sdk/actions/workflows/python-ci.yml/badge.svg)](https://github.com/oceanbolt/oceanbolt-python-sdk/actions)
+[![Netlify Status](https://api.netlify.com/api/v1/badges/0c776868-ce00-4c64-a4e1-1817953d3169/deploy-status)](https://app.netlify.com/sites/oceanbolt-python-sdk/deploys)
+
+
+The Oceanbolt Python SDK provides access to Oceanbolt data. It is a python wrapper around the Oceanbolt Data API.
+
+It can be easily integrated existing tools such as jupyter notebooks, scripts, and applications.
+
+Data is returned in the form of pandas.DataFrame, which allows for easy manipulation and further data processing.
+
+The python SDK is available to all Oceanbolt API clients (API authentication token required in order to get access). API tokens can be generated in the Oceanbolt App (app.oceanbolt.com)
+
+## Project Status
+
+**IMPORTANT**: The oceanbolt-python-sdk is still undergoing development, and certain features may be changed/removed before the launch of version 1.0.0
+
+## Setup
+
+The SDK supports the following python versions: 3.9, 3.10 and 3.11
+
+In order to install, run the following:
+
+ pip install oceanbolt.sdk
+
+In order to upgrade an existing installation, run the following:
+
+ pip install oceanbolt.sdk --upgrade
+
+## Docs
+Documentation : https://python-sdk.oceanbolt.com
+
+## Quick Example Dry Bulk
+
+````python
+from oceanbolt.sdk.client import APIClient
+from oceanbolt.sdk.data.port_calls import PortCalls
+from datetime import date, timedelta
+
+# Create the base API client using your token. Tokens can be created in the Oceanbolt App (app.oceanbolt.com)
+base_client = APIClient("<your API access token>","dry")
+
+# Connect to one of the Oceanbolt's data endpoints using the base client object, ie: PortCalls
+port_calls_client = PortCalls(base_client)
+
+# Get a list of Port Hedland exports over the last week
+hedland_portcalls = port_calls_client.get(
+ start_date=date.today() - timedelta(days=7),
+ segment=["capesize"],
+ unlocode=["AUPHE"],
+)
+
+````
+
+## Quick Example Tanker Data
+In order to extract tanker data, you have to specify the platform when instantiating the client:
+base_client = APIClient("<your API access token>","tank")
+
+````python
+from oceanbolt.sdk.client import APIClient
+from oceanbolt.sdk.data.port_calls import PortCalls
+from datetime import date, timedelta
+
+# Create the base API client using your token. Tokens can be created in the Oceanbolt App (app.oceanbolt.com)
+base_client = APIClient("<your API access token>","tank")
+
+# Connect to one of the Oceanbolt's data endpoints using the base client object, ie: PortCalls
+port_calls_client = PortCalls(base_client)
+
+# Get a list of Port Hedland exports over the last week
+hedland_portcalls = port_calls_client.get(
+ start_date=date.today() - timedelta(days=7),
+ unlocode=["USHOU"],
+)
+
+````
+
+
+%package -n python3-oceanbolt.sdk
+Summary: A Python wrapper around the Oceanbolt client API
+Provides: python-oceanbolt.sdk
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-oceanbolt.sdk
+# Oceanbolt Python SDK
+
+[![Github CI](https://github.com/oceanbolt/oceanbolt-python-sdk/actions/workflows/python-ci.yml/badge.svg)](https://github.com/oceanbolt/oceanbolt-python-sdk/actions)
+[![Netlify Status](https://api.netlify.com/api/v1/badges/0c776868-ce00-4c64-a4e1-1817953d3169/deploy-status)](https://app.netlify.com/sites/oceanbolt-python-sdk/deploys)
+
+
+The Oceanbolt Python SDK provides access to Oceanbolt data. It is a python wrapper around the Oceanbolt Data API.
+
+It can be easily integrated existing tools such as jupyter notebooks, scripts, and applications.
+
+Data is returned in the form of pandas.DataFrame, which allows for easy manipulation and further data processing.
+
+The python SDK is available to all Oceanbolt API clients (API authentication token required in order to get access). API tokens can be generated in the Oceanbolt App (app.oceanbolt.com)
+
+## Project Status
+
+**IMPORTANT**: The oceanbolt-python-sdk is still undergoing development, and certain features may be changed/removed before the launch of version 1.0.0
+
+## Setup
+
+The SDK supports the following python versions: 3.9, 3.10 and 3.11
+
+In order to install, run the following:
+
+ pip install oceanbolt.sdk
+
+In order to upgrade an existing installation, run the following:
+
+ pip install oceanbolt.sdk --upgrade
+
+## Docs
+Documentation : https://python-sdk.oceanbolt.com
+
+## Quick Example Dry Bulk
+
+````python
+from oceanbolt.sdk.client import APIClient
+from oceanbolt.sdk.data.port_calls import PortCalls
+from datetime import date, timedelta
+
+# Create the base API client using your token. Tokens can be created in the Oceanbolt App (app.oceanbolt.com)
+base_client = APIClient("<your API access token>","dry")
+
+# Connect to one of the Oceanbolt's data endpoints using the base client object, ie: PortCalls
+port_calls_client = PortCalls(base_client)
+
+# Get a list of Port Hedland exports over the last week
+hedland_portcalls = port_calls_client.get(
+ start_date=date.today() - timedelta(days=7),
+ segment=["capesize"],
+ unlocode=["AUPHE"],
+)
+
+````
+
+## Quick Example Tanker Data
+In order to extract tanker data, you have to specify the platform when instantiating the client:
+base_client = APIClient("<your API access token>","tank")
+
+````python
+from oceanbolt.sdk.client import APIClient
+from oceanbolt.sdk.data.port_calls import PortCalls
+from datetime import date, timedelta
+
+# Create the base API client using your token. Tokens can be created in the Oceanbolt App (app.oceanbolt.com)
+base_client = APIClient("<your API access token>","tank")
+
+# Connect to one of the Oceanbolt's data endpoints using the base client object, ie: PortCalls
+port_calls_client = PortCalls(base_client)
+
+# Get a list of Port Hedland exports over the last week
+hedland_portcalls = port_calls_client.get(
+ start_date=date.today() - timedelta(days=7),
+ unlocode=["USHOU"],
+)
+
+````
+
+
+%package help
+Summary: Development documents and examples for oceanbolt.sdk
+Provides: python3-oceanbolt.sdk-doc
+%description help
+# Oceanbolt Python SDK
+
+[![Github CI](https://github.com/oceanbolt/oceanbolt-python-sdk/actions/workflows/python-ci.yml/badge.svg)](https://github.com/oceanbolt/oceanbolt-python-sdk/actions)
+[![Netlify Status](https://api.netlify.com/api/v1/badges/0c776868-ce00-4c64-a4e1-1817953d3169/deploy-status)](https://app.netlify.com/sites/oceanbolt-python-sdk/deploys)
+
+
+The Oceanbolt Python SDK provides access to Oceanbolt data. It is a python wrapper around the Oceanbolt Data API.
+
+It can be easily integrated existing tools such as jupyter notebooks, scripts, and applications.
+
+Data is returned in the form of pandas.DataFrame, which allows for easy manipulation and further data processing.
+
+The python SDK is available to all Oceanbolt API clients (API authentication token required in order to get access). API tokens can be generated in the Oceanbolt App (app.oceanbolt.com)
+
+## Project Status
+
+**IMPORTANT**: The oceanbolt-python-sdk is still undergoing development, and certain features may be changed/removed before the launch of version 1.0.0
+
+## Setup
+
+The SDK supports the following python versions: 3.9, 3.10 and 3.11
+
+In order to install, run the following:
+
+ pip install oceanbolt.sdk
+
+In order to upgrade an existing installation, run the following:
+
+ pip install oceanbolt.sdk --upgrade
+
+## Docs
+Documentation : https://python-sdk.oceanbolt.com
+
+## Quick Example Dry Bulk
+
+````python
+from oceanbolt.sdk.client import APIClient
+from oceanbolt.sdk.data.port_calls import PortCalls
+from datetime import date, timedelta
+
+# Create the base API client using your token. Tokens can be created in the Oceanbolt App (app.oceanbolt.com)
+base_client = APIClient("<your API access token>","dry")
+
+# Connect to one of the Oceanbolt's data endpoints using the base client object, ie: PortCalls
+port_calls_client = PortCalls(base_client)
+
+# Get a list of Port Hedland exports over the last week
+hedland_portcalls = port_calls_client.get(
+ start_date=date.today() - timedelta(days=7),
+ segment=["capesize"],
+ unlocode=["AUPHE"],
+)
+
+````
+
+## Quick Example Tanker Data
+In order to extract tanker data, you have to specify the platform when instantiating the client:
+base_client = APIClient("<your API access token>","tank")
+
+````python
+from oceanbolt.sdk.client import APIClient
+from oceanbolt.sdk.data.port_calls import PortCalls
+from datetime import date, timedelta
+
+# Create the base API client using your token. Tokens can be created in the Oceanbolt App (app.oceanbolt.com)
+base_client = APIClient("<your API access token>","tank")
+
+# Connect to one of the Oceanbolt's data endpoints using the base client object, ie: PortCalls
+port_calls_client = PortCalls(base_client)
+
+# Get a list of Port Hedland exports over the last week
+hedland_portcalls = port_calls_client.get(
+ start_date=date.today() - timedelta(days=7),
+ unlocode=["USHOU"],
+)
+
+````
+
+
+%prep
+%autosetup -n oceanbolt.sdk-0.5.1
+
+%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-oceanbolt.sdk -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..a9f1fe3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5538adb2c9b26862fd50fe650efac1f6 oceanbolt.sdk-0.5.1.tar.gz