A Python wrapper around the Oceanbolt client API
Project description
Oceanbolt Python SDK
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.6, 3.7, 3.8, and 3.9
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
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>")
# 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"],
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oceanbolt.sdk-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a4a9c7f567366e8f199e766dd00d67ec10e29c5b1ffc13e26e25a063800162 |
|
MD5 | ac14a32664b1fefbf414ad011b7bf738 |
|
BLAKE2b-256 | b13295422a4b6636116dc5a5556e9e7a89060764895e06c17b348cc6db08d120 |