Skip to main content

Python Client for the IsoStream API

Project description

isostream

IsoStream Python Client

A simple wrapper around the ISOStream API that produces JSON or well formated pandas DataFrames from query results. The the API client, methods, inputs and responses and all dynamically created from the OpenAPI specification of the IsoStream REST API.

Installation

You can install the library with:

pip install isostream

Quickstart

The ISOStream client is dynamically generated from the OpenAPI specification from the ISOStream API. See the ISOStream API Documentation for more details. All of the REST API endpoints available on client as methods.

from isostream import IsoStream

client = IsoStream("<your_api_key>")

df = client.dalmp_node(node="WESTERN HUB", start="2021-01-01", end="2021-02-01", iso="PJM")

All string timestamps can also be provided as datetime objects.

To see a list of available API methods:

client.api_methods()

# or filter by a specific keyword to see only relevant methods:
client.api_methods(filter="dalmp")

By default, the client returns all queries in appropriated typed and logically pivoted pandas DataFrames. You can alter this behavior with the 'as_df' and 'pivot' flags:

raw = client.meta_nodes(iso="PJM", as_df=False)

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

isostream-1.0.5.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

isostream-1.0.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file isostream-1.0.5.tar.gz.

File metadata

  • Download URL: isostream-1.0.5.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for isostream-1.0.5.tar.gz
Algorithm Hash digest
SHA256 07207bd186377f6a6f8632efd0bfe7521c6656d9e3fd5ac9d465c50de5fd3c0c
MD5 2ab9b40d99ec491304e8e02d5b050484
BLAKE2b-256 2d9f14cef12c6bc8d194bdd2b086d23be95b16210f39c685849cde89460d834b

See more details on using hashes here.

File details

Details for the file isostream-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: isostream-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for isostream-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b74556b509e4699d727f8882beabcdaf7369ddca27044d216f6830f121b3340c
MD5 8a82452269533c84ecb9faf139e821be
BLAKE2b-256 199fcb200eecab6499fbb69c95efdc757a2bd18016f6b60aa83a478e9e2b7cf3

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