Giter Club home page Giter Club logo

signalsdk's Introduction

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.

signalsdk's People

Contributors

prompanos-signal avatar ktsitsikas-signal avatar pogrodowczyk avatar miltonlog avatar athanbonis-signal avatar gsafalidis-signal avatar lamprosargy avatar abelesiotis-signal avatar spyriadis avatar dependabot[bot] avatar thomasklepacki avatar vpanagiotou-signal avatar lkattis-signal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.