Scan your whole stack
From OX Research Newsroom
Are you using sunsightenergy?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.6
sunsightenergy was last scanned on 30 Nov 2026 at version 0.3.6. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.6 LATEST | 30 Nov 2026 | No rules fired |
| 0.3.5 | 26 Oct 2026 | No rules fired |
| 0.3.4 | 22 Oct 2026 | No rules fired |
| 0.3.3 | 18 Oct 2026 | Not shown |
| 0.3.2 | 18 Oct 2026 | Not shown |
Findings for v0.3.6. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.6; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Python client for the Sunsight Energy data API: real-time and historical data for US/Canadian ISOs (ERCOT, PJM, CAISO, SPP, MISO, NYISO, ISONE, IESO), weather and satellite imagery.
You ask for a dataset and a time range. The SDK handles paging, your plan's date-range limit, retries and file formats, and hands back a pandas or polars DataFrame, parquet files on disk, or images in a folder.
pip install sunsightenergy # pandas
pip install "sunsightenergy[polars]" # + polars output
Python 3.10+. Works in Jupyter, Google Colab, scripts and pipelines.
import sunsightenergy as ss
c = ss.Client("ss_live_...") # or set SUNSIGHT_API_KEY and use ss.Client()
df = c.get("ercot_load", "2026-09-01", "2026-10-01")
df.plot(x="interval_end_utc", y="load")
Create a key in the portal under API Platform → API Keys.
The client has gridstatusio's methods with the same arguments, so existing code only needs a new import and key:
from sunsightenergy import Client as GridStatusClient
client = GridStatusClient("ss_live_...")
df = client.get_dataset(
dataset="ercot_load",
start="2026-10-04",
end="2026-10-05",
timezone="market",
)
client.list_datasets(filter_term="lmp")
client.get_dataset_metadata("ercot_load")
client.get_api_usage()
Version 0.3.5 preserves nullable integer columns in pandas and compares numeric
filters by value, including filters applied after merging latest forecast
windows. 7 and 7.0 match the same integer; nulls do not match numeric
predicates, and string IDs such as 01 keep their exact spelling.
get_dataset takes every Grid Status argument: publish_time_start,
publish_time_end, publish_time ("latest", "latest_report" or a
timestamp), columns, filter_column / filter_value / filter_operator
(including "in"), resample / resample_by / resample_function, limit,
page_size, timezone, verbose and return_format ("pandas", "polars",
"python"). Differences:
timezone defaults to "market" (Grid Status defaults to UTC). Pass
timezone="UTC" for Grid Status's default output.start/end are delivery times as on Grid Status. The client
searches retained publications rather than assuming a seven-day horizon.
Use publish_time_start and publish_time_end to bound publication history
when known; this substantially reduces reads for long-lived datasets.get_daily_peak_report isn't available.# pandas (default), polars, or a pyarrow Table
df = c.get("pjm_load", "2026-09-01", "2026-10-01")
pdf = c.get("pjm_load", "2026-09-01", "2026-10-01", output="polars")
# One market day: ERCOT's operating day 2026-10-04, in Central time
df = c.get("ercot_load", day="2026-10-04")
# Fewer columns, a filter, a row limit, another timezone
df = c.get(
"pjm_load", "2026-09-01", "2026-09-08",
columns=["interval_start_utc", "pjm_rto"],
filter=("pjm_rto", ">", 90000), # ("col", value) means "="; a list value means "in"
limit=1000,
timezone="UTC", # "market" (default), "UTC", "CST"-style or any IANA name
)
start is inclusive and end exclusive. They accept strings, date,
datetime or pd.Timestamp. A value without a timezone is read in
timezone, which defaults to the market's own clock (Central for ERCOT
and SPP, Eastern for PJM, NYISO and ISO-NE, Pacific for CAISO, fixed EST
for MISO and IESO). So "2026-10-04" on an ERCOT dataset is midnight
Central. end defaults to now; day= is one whole day.interval_start_utc, so a day is the intervals
that start in it (as on Grid Status).*_utc column stays UTC and gets a *_local twin in the query
timezone. timezone="UTC" returns only the UTC columns.paths = c.download("pjm_load", "2025-01-01", "2026-01-01", dir="data/")
# data/pjm_load/2025-01-01.parquet, data/pjm_load/2025-01-02.parquet, ...
import pandas as pd, polars as pl
pd.read_parquet("data/pjm_load")
pl.scan_parquet("data/pjm_load/*.parquet").collect()
# DuckDB: SELECT * FROM read_parquet('data/pjm_load/*.parquet')
paths = c.export("pjm_load", "2016-01-01", "2026-01-01", dir="data/")
# data/pjm_load/2016-01-01.parquet, ... straight from storage
download() for years of data, and it doesn't use your
requests-at-a-time slots. Files already on disk at the stored size are
skipped and not charged again (a day still being written is fetched again).export() raises not_on_plan; get() and
download() still pull any range your plan allows, a window at a time.for chunk in c.stream("pjm_load", "2025-01-01", "2026-01-01"):
print(len(chunk)) # one DataFrame per window; memory stays flat
A forecast is published many times (ERCOT's 7-day load forecast: every hour),
so each delivery hour has many predictions. start/end select
publications: you get every forecast published in [start, end), each
with its full horizon and its publish_time_utc.
ds = "ercot_load_forecast_by_forecast_zone"
c.info(ds) # kind: forecast; time column (start/end): publish_time_utc
all_ = c.get(ds, "2026-10-01", "2026-10-02") # 24 publications x 7-day horizon
best = c.get(ds, "2026-10-01", "2026-10-02", vintage="latest") # newest forecast per delivery hour
then = c.get(ds, as_of="2026-10-01T09:00Z", # the forecast as it stood at 09:00,
start="2026-10-02", end="2026-10-03") # cut to delivery on Oct 2
vintage="latest" keeps, for each delivery interval, the newest publication
in the window. Rows still carry publish_time_utc, so you see which won.as_of= selects versions at or before the cutoff, without a publication-age
cutoff (including snapshots older than a year). Interval forecasts select the
newest version per interval and row identity; whole-report snapshots select the
newest complete report per publication group. start/end are optional and
filter delivery times when a delivery clock exists.download() saves forecasts per publish day.query metadata describes
these scopes and the version/delivery columns.get(..., delivery_start=..., delivery_end=...) cuts forecast delivery while
start/end select publication time. get_dataset() sends those delivery
bounds automatically on compatible servers, including when columns= omits
the delivery column. New eDART delivery columns include he_utc and
effective_month.vintage="latest" applies limit after selecting across publication windows.
Whole-report snapshots use a single as_of selection across long ranges.
publish_time="latest_report" honors publish_time_end as an exclusive cutoff.For example, a December delivery can be found in a forecast issued in October:
df = c.get_dataset(
"pjm_outages_90_day_forecast", start="2026-12-01", end="2026-12-02",
publish_time_start="2026-10-01", publish_time_end="2026-10-18",
publish_time="latest",
)
An as_of query uses the dataset's declared publication, acquisition or effective
clock. It cannot reconstruct overwritten revisions or make an effective-date
reference snapshot into a record of what was publicly known at that time.
c.devices() # device_id + when it last checked in
df = c.get("sensor_readings", "2026-10-02", "2026-10-03",
devices=["sunsight-001"], # default: all devices
images=True) # adds image_url: the sky photo for that reading
Device data is stored as hundreds of small files per device-day, so each
request covers at most 7 days (get() splits longer ranges for you).
images=True counts each distinct photo (about 450 KB) against your monthly
data allowance.
Original source files, byte for byte (PJM eDART outage reports, PJM workbooks):
f = c.files("pjm_transmission_outages_raw", "2026-10-02", "2026-10-03",
source="linesout", dir="raw/") # source= is optional: default all
f[["captured_at", "source", "filename", "local_path"]]
Same columns and options as images(), plus source. Each file counts its
size against your monthly data allowance.
# A table of images with download links (links last ~15 minutes)
imgs = c.images("goes19_regional_southcentral_truecolor", "2026-09-30", "2026-10-01")
# Also save them: imgs/goes19_regional_southcentral_truecolor/2026-09-30/<file>.jpg
imgs = c.images("goes19_regional_southcentral_truecolor", "2026-09-30", "2026-10-01", dir="imgs/")
imgs[["captured_at", "local_path"]]
Columns: captured_at (UTC), filename, size_bytes, url and, with
dir=, local_path. Saving runs in parallel, skips files you already have,
and recovers when a link expires mid-run. On networks that block direct
storage links, pass via="api".
The portal's API → Docs → Schema contracts section downloads
sunsight-dataset-contracts.yaml: one file containing all published datasets
visible to your account, generated from the latest catalog on each download.
It includes descriptions, sources, columns/types, keys, timezones and resolved
query behavior for observations, forecast vintages, snapshots and files.
columns describes the stored schema; API responses can add local-time columns.
query describes API time selection and latest/as-of support. Consult queryable
and query_reason for products using file/image endpoints. This is metadata,
not a data export or a statement of coverage; account permissions still apply.
c.datasets() # everything your key can see
c.datasets(search="ercot load") # every word must match id, name, description or tags
c.datasets(queryable=True) # only what get() can serve today
c.info("pjm_load") # columns + types, time column, data range
c.columns("pjm_load") # just the columns: name, type, description, primary_key
A dataset with queryable == False has a reason, e.g. it is a file or
image dataset (use files() / images()).
| Exception | When |
|---|---|
AuthError |
The key is missing or invalid. |
ForbiddenError |
Your plan or key doesn't allow it: a range over the plan limit, image history on the free plan, a dataset outside the key's scope, a revoked key. |
NotFoundError |
No such dataset. |
NotQueryableError |
The dataset exists, but get() can't serve it yet (see reason). |
QuotaExceededError |
This month's data allowance (GB delivered) is used up. Raised immediately, never retried. |
RateLimitError |
Still over your plan's concurrent-request or requests-per-minute limit after waiting ~5 minutes. |
SunsightError (code too_large, HTTP 413) |
Even an hour of the range is too much data for one request (the SDK splits larger windows in half on its own). Use fewer columns. For eDART tickets, exclude source_xml for discovery and filter a ticket ID to fetch its XML. |
All of them subclass ss.SunsightError and include the server's message, the
HTTP status_code, and a machine-readable code such as range_exceeded,
not_scoped, quota_bytes or rate_limited:
try:
df = c.get("pjm_load", "2026-01-01", "2026-03-01")
except ss.ForbiddenError as e:
if e.code == "range_exceeded":
...
Network errors and server errors are retried (3 times by default).
Each plan limits:
| Plan | Requests at a time | Requests per minute | Days per request | Data per month | History | Bulk export |
|---|---|---|---|---|---|---|
| Free Trial | 1 | 60 | 7 | 3 GB | last 30 days (images: 1 day), selected datasets | — |
| Pro | 4 | 1,200 | 365 | 150 GB | full | $500 add-on |
| Team | 4 | 1,200 | 365 | 1 TB, split across up to 5 users | full | $500 add-on |
| Enterprise | 8 | 6,000 | 366 | custom | full | $500 add-on |
Data per month is the bytes delivered to you: every response body, every exported file and every raw file or image link, across all your keys (1 GB = 2^30 bytes; resets on the 1st, UTC). The same data is several times smaller as parquet (the SDK's default) than as JSON or CSV. Rows are still counted and shown, but not limited.
The SDK reads your limits automatically (c.usage() shows them, plus data
used this month), so a "days per request" limit never shows up in your code.
If you hit the per-minute limit, the SDK waits until the next minute and
carries on (one log line says so). Every response carries
X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.