Skip to content

Improve gridstatusio agent-legibility (README call-contract + PyPI metadata + py.typed) - #110

Merged
Shiggiddie merged 11 commits into
mainfrom
ws0-agent-legible-package
Jul 17, 2026
Merged

Improve gridstatusio agent-legibility (README call-contract + PyPI metadata + py.typed)#110
Shiggiddie merged 11 commits into
mainfrom
ws0-agent-legible-package

Conversation

@Shiggiddie

@Shiggiddie Shiggiddie commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Improve gridstatusio agent-legibiltiy

README — restructured as a "call contract"

  • Hosted-API value lead → "Why the hosted API?" (vs. the open-source lib / vs. DIY scraping) → numbered golden-path getting-started → all existing detail (return formats, retry, no-pandas, usage) preserved.
  • New "Notes for AI agents & programmatic use" section, including the UTC-default "yesterday" gotcha (pass tz=), the limit discipline + free-tier row caps, cursor pagination, and server-side filtering/resampling.

pyproject.toml — PyPI discoverability

  • Sharper description.
  • Expanded keywords.
  • Classifiers expanded with Intended Audience ×3, Topic :: Scientific/Engineering, License :: BSD, OS Independent.
  • Fixed stale project URLs kmax12/gridstatusiogridstatus/gridstatusio, and added Homepage / Documentation / Data Catalog / Changes.

Typing

  • Added gridstatusio/py.typed (PEP 561) so downstream type-checkers consume the package's types. Confirmed present in the built wheel.

Verification

  • uv build --wheel succeeds; METADATA reflects the new Summary/classifiers/URLs/keywords; gridstatusio/py.typed ships in the wheel.

Notes

  • Finalized the 0.16.0 release: pyproject was already at 0.16.0 but version.py/PyPI lagged at 0.15.1; synced version.py and added a CHANGELOG entry covering this release (return formats, Python 3.14, brotli) plus these changes. Publishing is triggered by a GitHub Release, not by merging this PR.
  • Pre-existing unrelated build warning (tool.uv.dev-dependencies deprecated) left untouched.

@Shiggiddie Shiggiddie changed the title WS0: make gridstatusio agent-legible (README call-contract + PyPI metadata + py.typed) Improve gridstatusio agent-legibility (README call-contract + PyPI metadata + py.typed) Jun 11, 2026
Comment thread CHANGELOG.md Outdated
@@ -1,5 +1,18 @@
# Changelog

## 0.16.0 - June 11, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's remove the date on the changelog from this PR. we will add it in the PR the cuts the release

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — removed the date in c116d46. It'll be set in the release-cutting PR.

@kmax12
kmax12 self-requested a review June 19, 2026 14:33
Comment thread README.md Outdated

* **NOTE**: the Grid Status API has a 500,000 rows per month limit on the free plan. This limit is _very_ easy to exceed when querying data, especially real time prices.
* Make sure to add `limit` to all of your `get_dataset` calls to avoid quickly exceeding the limit.
> **⚠️ Row limit:** the free plan allows 500,000 rows per month, which is *very* easy to exceed — especially with real-time prices. **Add `limit` to every `get_dataset` call** and use bounded `start`/`end` windows. Check current limits and usage with `client.get_api_usage()`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to mention an exact number or can we say "allows a limited number of rows per month"

Comment thread pyproject.toml
@WillKoehrsen

Copy link
Copy Markdown
Contributor

@Shiggiddie Are we going to merge this to get a new release or should I go ahead with #116 ?

@kmax12

kmax12 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

@WillKoehrsen go ahead with your PR. im going to return to this to tweak readme more

@kmax12
kmax12 force-pushed the ws0-agent-legible-package branch 2 times, most recently from e54915b to da65d17 Compare July 8, 2026 04:21
@kmax12
kmax12 force-pushed the ws0-agent-legible-package branch from b067490 to ccc7ef0 Compare July 8, 2026 05:02

@kmax12 kmax12 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made some edits. LGTM now

@Shiggiddie
Shiggiddie merged commit 7e67c89 into main Jul 17, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants