Skip to main content

Access Signal Ocean Platform data using Python.

Project description

The Signal Ocean SDK combines the power of Python and Signal Ocean's APIs to give you access to a variety of shipping data available in The Signal Ocean Platform.

Installation

Install the SDK with pip:

pip install signal-ocean

The Signal Ocean SDK depends on the pandas library for some of its data analysis features. Optional pandas dependencies are also optional in this SDK. If you plan to use data frame features like plotting or exporting to Excel, you need to install additional dependencies, for example:

pip install matplotlib openpyxl

For more information refer to pandas documentation.

Getting Started

To use the SDK, you need to create an account in our API Portal and subscribe to an API. Once you have a subscription key, put it inside an environment variable called SIGNAL_OCEAN_API_KEY.

Now you're ready to fetch some data:

from signal_ocean import PortAPI

port_api = PortAPI()
ports = port_api.get_ports()

print(ports)

If you don't want to use environment variables, want to use different keys for different APIs, or if you want to override the environment variables, you can configure your Connection when creating the API class:

from signal_ocean import VesselClassAPI, Connection

vessel_class_api = VesselClassAPI(Connection(api_key='YOUR KEY GOES HERE'))
vessel_classes = vessel_class_api.get_vessel_classes()

print(vessel_classes)

All API classes follow this pattern of configuration.

Check the docs for examples covering usage of our other APIs.

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

signal-ocean-1.0.1b3.tar.gz (44.6 kB view details)

Uploaded Source

Built Distribution

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

signal_ocean-1.0.1b3-py3-none-any.whl (68.5 kB view details)

Uploaded Python 3

File details

Details for the file signal-ocean-1.0.1b3.tar.gz.

File metadata

  • Download URL: signal-ocean-1.0.1b3.tar.gz
  • Upload date:
  • Size: 44.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for signal-ocean-1.0.1b3.tar.gz
Algorithm Hash digest
SHA256 2daeb6a95d70ab42cdd535f620e4277d8b46cf519a5d7be68d796b81999d8e25
MD5 bc933e5c1d8e809ed83ff26c38cd5c62
BLAKE2b-256 ecb01fbf870464fa08f0cc00a0e4ac6ce1b4a007e4d0faef2b66eedfbacb8d11

See more details on using hashes here.

File details

Details for the file signal_ocean-1.0.1b3-py3-none-any.whl.

File metadata

  • Download URL: signal_ocean-1.0.1b3-py3-none-any.whl
  • Upload date:
  • Size: 68.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0

File hashes

Hashes for signal_ocean-1.0.1b3-py3-none-any.whl
Algorithm Hash digest
SHA256 52330314811ce3f612d80d1b8ee94a3a1c8cd5c034b458bb3f6329c395dacc3c
MD5 868705c0ec4b6ce81846a5b7e968b2bf
BLAKE2b-256 3d4f2bfd8fb7c4846398c32549764f57964a94b7fb26789f44548b0dcb04f17f

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