Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details β†’
Socket
Book a DemoInstallSign in
Socket

vortexasdk

Package Overview
Dependencies
Maintainers
1
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vortexasdk

Vortexa SDK

pipPyPI
Version
1.0.19
Maintainers
1

VortexaSDK

Code style: black All Contributors

Welcome to Vortexa's Python Software Development Kit (SDK)! We built the SDK to provide fast, interactive, programmatic exploration of our data. The tool lets Data Scientists, Analysts and Developers efficiently explore the world’s waterborne oil movements, and to build custom models & reports with minimum setup cost.

The SDK sits as a thin python wrapper around Vortexa's API, giving you immediate access to pandas DataFrames.

Example

In an interactive Python console, run:

>>> from datetime import datetime
>>> from vortexasdk import CargoMovements
>>> df = CargoMovements()\
        .search(filter_activity='loading_state',
            filter_time_min=datetime(2017, 8, 2),
            filter_time_max=datetime(2017, 8, 3))\
        .to_df()

returns:

quantityvessels.0.nameproduct.group.labelproduct.grade.labelevents.cargo_port_load_event.0.end_timestampevents.cargo_port_unload_event.0.start_timestamp
01998ALSIA SWANClean productsLube Oils2017-08-01T06:10:45+00002017-08-27T14:38:15+0000
116559IVERDirty productsnan2017-08-02T17:20:51+00002017-09-07T07:52:20+0000
2522288BLUE SUNCrudeGharib2017-08-02T04:22:09+00002017-08-13T10:32:09+0000

Quick Start

Try me out in your browser:

Binder

Installation

pip install vortexasdk

or

pip3 install vortexasdk

The SDK requires Python version 3.9. See Setup FAQ for more details.

To install the SDK on an Apple ARM-based machine, use Python versions 3.9.19 and use the latest version of pip. This is supported in the SDK versions 1.0.0 or higher.

Authentication

Set your VORTEXA_API_KEY environment variable, that's all. Alternatively, the SDK prompts to you enter your API Key when running a script interactively.

To get an API key and experiment with Vortexa's data, you can request a demo here.

Check Setup

To check the SDK is setup correctly, run the following in a bash console:

python -m vortexasdk.check_setup

or

python3 -m vortexasdk.check_setup

A successful setup looks like this:

check_setup.png

Next Steps

Learn how to call Endpoints

Glossary

The Glossary can be found at Vortexa API Documentation. The Glossary outlines key terms, functions and assumptions aimed at helping to extract powerful findings from our data.

Documentation

Read the documentation at VortexaSDK Docs

Contributing

We welcome contributions! Please read our Contributing Guide for ways to offer feedback and contributions.

Thanks goes to these wonderful contributors (emoji key):


Kit Burgess

🎨 πŸ’»

tinovs

πŸ’» πŸ‘€

David Andrew Starkey

πŸ’» πŸ“– πŸ’‘

syed

πŸ‘€

Jakub Korzeniowski

πŸ€”

Edward Wright

πŸ““

Patrick Roddy

πŸ““

Romain

πŸ““ πŸ€”

Natday

πŸ’Ό πŸ€” πŸ““

ArthurD1

πŸ““

Chloe Connor

πŸ““

Achilleas Sfakianakis

πŸ““

Sean Barry

πŸ’» πŸ“–

Konrad Moskal

πŸ’»

Pawel Pietruszka

πŸ’»

Olly De Sousa

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts