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.8, 3.9 and 3.10

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.4.1.tar.gz (300.1 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.4.1-py3-none-any.whl (551.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oceanbolt.sdk-0.4.1.tar.gz
  • Upload date:
  • Size: 300.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for oceanbolt.sdk-0.4.1.tar.gz
Algorithm Hash digest
SHA256 798cd32d4efd59bc8179ba80f1c4fc10e5db6b64924fb6b866ebc767ff0148f8
MD5 e13e4d6887702fb9f45f459099cb5772
BLAKE2b-256 23b6c6a8fe08289c85979a12e32be57dc33d42ed3793936b3cb9a3df61927689

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oceanbolt.sdk-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 551.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for oceanbolt.sdk-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f5fa6002c0282e6d5905ab68d44e5e45716a8df4c81c59b96cf5284b2889e0be
MD5 71474a14e903f9cf871a1473660a099f
BLAKE2b-256 8b13f94d3803671f30e41e3072f2be116c7bb233087a49202f41030259b37f9b

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