Skip to content

Fix broken PyPI examples page (404 error) #2

Description

@karlwaldman

Problem

The PyPI examples page returns a 404 error:
https://pypi.org/project/oilpriceapi/examples/

This likely means there's a broken link somewhere pointing to this URL, or PyPI doesn't support /examples/ routes.

Investigation Needed

  1. Check for broken links - Search codebase for references to /examples/ on PyPI
  2. Understand PyPI routing - PyPI package pages don't have an /examples/ route
  3. Find the source - Where is this link coming from?
    • README.md?
    • Documentation?
    • Website link?
    • External reference?

Possible Solutions

Option 1: Fix Broken Link

If there's a link to https://pypi.org/project/oilpriceapi/examples/, update it to:

  • https://github.com/OilpriceAPI/python-sdk/blob/main/EXAMPLES.md
  • Or https://docs.oilpriceapi.com/sdk/python/examples

Option 2: Add Examples to PyPI README

PyPI displays the package README. Our examples are now in:

  • EXAMPLES.md (comprehensive)
  • README already has examples section

Ensure PyPI is rendering the latest README with example links.

Option 3: Update Documentation Links

Update all documentation to point to correct examples location:

  • GitHub: /EXAMPLES.md
  • Docs site: docs.oilpriceapi.com/sdk/python/examples
  • Not: PyPI /examples/ (doesn't exist)

Search Commands

# Search for PyPI examples links
grep -r "pypi.org.*examples" .
grep -r "oilpriceapi/examples" .

# Check README for potential issues
grep -i "example" README.md | grep -i "pypi"

Acceptance Criteria

  • Identify source of broken link
  • Fix or remove link to PyPI /examples/
  • Verify examples are accessible via correct URLs
  • Update any documentation with broken links
  • Test all example links work correctly

Priority

Medium - Broken link impacts user experience but doesn't break functionality

Labels

bug, documentation, seo

Related Files

  • README.md
  • EXAMPLES.md
  • docs/index.md
  • Any documentation on oilpriceapi.com website

Reported: 2025-01-07
URL: https://pypi.org/project/oilpriceapi/examples/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions