$npx skillfedfor your agent

spgci

SPGCI is an API Client for the S&P Commodity Insights REST API

Worth itPyPI WWW/HTTPReleased Aug 202690.3K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — spgci-0.0.100-py3-none-any.whl
v0.0.100 · released 2026-08-11 · Python <4.0.0,>=3.9.0 · 6 runtime deps: pandas, requests, tqdm, typing-extensions, tenacity, packaging

Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. Install it if you need programmatic access to S&P Global Commodity Insights data and have valid API credentials; the pandas integration and automatic token handling make it substantially easier than calling the REST API directly.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.9.0 and valid S&P Global Commodity Insights API credentials (username and password or environment variables SPGCI_USERNAME and SPGCI_PASSWORD).
  • Low install friction with a pure Python wheel and six common dependencies (pandas, requests, tqdm, typing-extensions, tenacity, packaging).
  • Active maintenance with a recent release (3 days old) and ongoing repository activity.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.

last release 2026-08-11 (3 days) · last repo commit 2026-08-11 · 10 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,296 downloads/mo, #13,604 on PyPI

Verify before relying

pip install spgci

import spgci as ci
ci.set_credentials(username, password)
mdd = ci.MarketData()
df = mdd.get_assessments_by_symbol_current(symbol=["PCAAS00", "PCAAT00"])
  • Whether API rate limits or quota constraints apply to typical usage patterns.
  • Performance characteristics when paginating large result sets or querying multiple symbols.
  • Availability and completeness of historical data across all supported datasets.
Same gist for agents: .md · .json

What it is and what it does

SPGCI is a Python wrapper around the S&P Global Commodity Insights REST API, designed to simplify access to commodity market data, energy forecasts, and refining analytics. It handles authentication token generation automatically, returns results as pandas DataFrames by default, and supports optional auto-pagination and type coercion for date fields. The library covers multiple datasets including market assessments, forward curves, energy price forecasts, refinery data, world oil supply, LNG analytics, and market insights.

The package is built on standard dependencies (pandas for data handling, requests for HTTP calls, tenacity for retry logic) and accepts native Python types—lists and pandas Series are automatically converted to filter expressions. It requires API credentials from S&P Global and targets developers working with commodity markets, energy trading, or supply-chain analytics who want programmatic access to Platts data without writing raw HTTP clients.

Use it for

  • Fetch current crude oil assessments and forward curves for a portfolio of trading symbols in a single DataFrame.
  • Build automated energy price forecasts by querying monthly and annual predictions across multiple sectors and regions.
  • Retrieve refinery operational data (yields, runs, outages) and refining margins for a specific location or time period.
  • Search and download market commentary, subscriber notes, and energy insights articles filtered by keyword and date range.
  • Construct historical demand and supply models by querying archived scenarios and reference data for countries and products.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive license. Install it if you need programmatic access to S&P Global Commodity Insights data and have valid API credentials; the pandas integration and automatic token handling make it substantially easier than calling the REST API directly.

Install

spgci on PyPI

Before you install

Low install friction with a pure Python wheel and six common dependencies (pandas, requests, tqdm, typing-extensions, tenacity, packaging). Active maintenance with a recent release (3 days old) and ongoing repository activity.

Requires Python >= 3.9.0 and valid S&P Global Commodity Insights API credentials (username and password or environment variables SPGCI_USERNAME and SPGCI_PASSWORD).

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most projects.

Quickstart

pip install spgci

import spgci as ci
ci.set_credentials(username, password)
mdd = ci.MarketData()
df = mdd.get_assessments_by_symbol_current(symbol=["PCAAS00", "PCAAT00"])

Verify before relying

  • Whether API rate limits or quota constraints apply to typical usage patterns.
  • Performance characteristics when paginating large result sets or querying multiple symbols.
  • Availability and completeness of historical data across all supported datasets.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4.0.0,>=3.9.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
pandasrequeststqdmtyping-extensionstenacitypackaging
MaintenanceActively maintained 3 days since the last release
Last repo commit
First released
Downloads90,296 / month, #13,604 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Evidence: spgci-0.0.100-py3-none-any.whl

Tags

Capabilities
S&P commodity insights API clientenergy market data pythoncrude oil price data APIcommodity market data libraryplatts API python clientrefining margins analyticsLNG global analytics data
Topics
commodity-marketsenergy-dataapi-client

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “S&P commodity insights API client”

  • spgciPython client library for the S&P Global Commodity Insights REST API,…
  • openbb-commodityProvides commodity-related data commands as an extension to the…
  • tradingeconomicsProvides Python access to over 300,000 economic indicators, exchange…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also energyquantified · pydexcom · tradingeconomics · wapi-python · forecast-solar · openbb-us-eia · Nasdaq-Data-Link · tushare · yahooquery · energyzero