Skip to content

docs: registry storefront README + v1.10.1#49

Merged
karlwaldman merged 2 commits into
mainfrom
docs/registry-storefront
Jul 3, 2026
Merged

docs: registry storefront README + v1.10.1#49
karlwaldman merged 2 commits into
mainfrom
docs/registry-storefront

Conversation

@karlwaldman

@karlwaldman karlwaldman commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Applies the shared "registry storefront" marketing formula (shipped in the PHP SDK README) to the Python SDK, and bumps the version so PyPI re-renders the README from the new release.

  • Hero: real-time oil/gas/LNG/carbon/fuel prices in under 60 seconds; audiences (fintech dashboards, fleet & logistics, maritime compliance, energy analytics); 2M+ API requests/month
  • Badges: swapped badge.fury.io for shields.io pypi/v; kept downloads, pyversions, tests, coverage, license
  • Nav line: free API key (utm_source=python-sdk) · docs · pricing · jump link to the existing Quick Start anchor
  • New "What can you get?" 10-commodity table after the hero (same commodities/columns as the PHP README)
  • New "The whole OilPriceAPI toolbox" cross-SDK table before Testing (node, go, php, mcp, wordpress + preserved Sheets/Excel add-in links); removed the now-redundant "Also Available As" list
  • Version bump 1.10.1 in oilpriceapi/version.py + pyproject.toml (verified in sync) + CHANGELOG entry — docs-only release so the PyPI page updates

All other content (quick starts, Beyond Oil, resources, streaming, error handling) preserved. Removed one duplicated mini "Quick start: pip install" block that repeated the Installation section verbatim.

Verification

  • Signup/pricing/docs URLs curl to 200 (via redirects to www.oilpriceapi.com/auth/signup)
  • All cross-linked GitHub repos return 200
  • version.py == pyproject.toml == 1.10.1, CHANGELOG contains 1.10.1
  • Docs+version-only change; relying on PR CI for the test suite

Do NOT merge without review.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Updated forecast confidence handling so it accepts both numeric scores and label-style values.
  • Documentation

    • Refreshed the README with updated header content, broader SDK/tool links, and clearer support resources.
    • Added a new release note entry for the latest version.
  • Tests

    • Added coverage for both confidence value formats to ensure they remain supported.
  • Chores

    • Bumped the package version to 1.10.1.

Apply the shared registry-storefront formula from the PHP SDK:
- hero line (oil/gas/LNG/carbon/fuels in under 60 seconds) + audience line + 2M+ requests/month
- shields.io pypi/v badge, nav line with utm_source=python-sdk and quick-start jump link
- "What can you get?" 10-commodity table after the hero
- "The whole OilPriceAPI toolbox" cross-SDK table before Testing
- bump version to 1.10.1 (version.py + pyproject.toml) so PyPI re-renders the README

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR widens the MarketBriefForecast.confidence field type to accept both string labels and numeric floats, adds corresponding unit tests, bumps SDK version to 1.10.1 with a changelog entry, and updates README documentation (hero section, toolbox links, support resources, footer).

Changes

Confidence Field and Version Update

Layer / File(s) Summary
Confidence field type widening and tests
oilpriceapi/models.py, tests/unit/test_subscriptions_resource.py
confidence field on MarketBriefForecast changes from Optional[str] to Optional[Union[str, float]], with new tests validating both numeric and string confidence inputs.
Version bump and changelog
oilpriceapi/version.py, pyproject.toml, CHANGELOG.md
SDK version bumped from 1.10.0 to 1.10.1 with a changelog entry documenting the README-only documentation changes.

README Storefront Documentation

Layer / File(s) Summary
Hero, toolbox, and support updates
README.md
Hero tagline/badges rewritten, Quick start snippet removed, new "toolbox" section linking other SDKs added, Support section enhanced with API explorer/OpenAPI spec links, and old "Also Available As" footer removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the README storefront update and 1.10.1 release bump, which are the main changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/registry-storefront
⚔️ Resolve merge conflicts
  • Resolve merge conflict in branch docs/registry-storefront

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Live contract tests (first run with a real key) caught the API sending
confidence: 0.65 (float) where the model required a string label — now
Union[str, float]. Also links the interactive Swagger explorer and raw
OpenAPI spec from the README (they existed, unadvertised).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
CHANGELOG.md (1)

10-15: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Changelog entry omits the confidence type fix.

Entry states "docs: registry storefront README — hero, "What can you get?" commodity table, and cross-SDK toolbox table so the PyPI page matches the other OilPriceAPI SDKs. No code changes." but this same release also widens MarketBriefForecast.confidence to Union[str, float] — a functional/contract fix, not just docs. Consider adding a "Fixed" note for the confidence field so users relying on the changelog aren't misled about code changes in 1.10.1.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` around lines 10 - 15, The 1.10.1 changelog entry currently only
mentions the README/docs update and omits the functional contract change. Update
the release note in CHANGELOG.md to also include a “Fixed” item for the
`MarketBriefForecast.confidence` type widening to `Union[str, float]`, so the
entry reflects both the docs work and the code change.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@CHANGELOG.md`:
- Around line 10-15: The 1.10.1 changelog entry currently only mentions the
README/docs update and omits the functional contract change. Update the release
note in CHANGELOG.md to also include a “Fixed” item for the
`MarketBriefForecast.confidence` type widening to `Union[str, float]`, so the
entry reflects both the docs work and the code change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e639e8d2-6c76-44e4-a291-091f71bb2d33

📥 Commits

Reviewing files that changed from the base of the PR and between 06d9d49 and f02b714.

📒 Files selected for processing (6)
  • CHANGELOG.md
  • README.md
  • oilpriceapi/models.py
  • oilpriceapi/version.py
  • pyproject.toml
  • tests/unit/test_subscriptions_resource.py

@karlwaldman karlwaldman merged commit 1c93297 into main Jul 3, 2026
6 checks passed
@karlwaldman karlwaldman deleted the docs/registry-storefront branch July 3, 2026 14:12
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.

1 participant