Skip to main content

A Python wrapper around the Oceanbolt client API

Project description

Oceanbolt Python SDK

Github CI Netlify Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oceanbolt.sdk-0.2.4.tar.gz (223.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oceanbolt.sdk-0.2.4-py3-none-any.whl (436.2 kB view details)

Uploaded Python 3

File details

Details for the file oceanbolt.sdk-0.2.4.tar.gz.

File metadata

  • Download URL: oceanbolt.sdk-0.2.4.tar.gz
  • Upload date:
  • Size: 223.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for oceanbolt.sdk-0.2.4.tar.gz
Algorithm Hash digest
SHA256 4c8f728fff3628cc8e60645ceea9dd43e222ed546348e5157e010c276c5da077
MD5 d5504dc06b7be0702e762ffb3c39b106
BLAKE2b-256 e777dfe541621102057743000f88d783a85530ae422d8887d4eecdd783c5fa97

See more details on using hashes here.

File details

Details for the file oceanbolt.sdk-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: oceanbolt.sdk-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 436.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for oceanbolt.sdk-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 829158ce9724330404a045dd17eb73a477d7d8eb7758a6bd68da36c8e35cce12
MD5 dcefbbc972d0a5b3b1671827c43a42bc
BLAKE2b-256 dbe796c8066605569ba5a81dbbecf8f64aa2d12496158a9e162835ec2681ddae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page