Skip to content

Add Python API route miner (#129)#145

Merged
Dimwiddle merged 1 commit intofeature/discovery-layerfrom
129-python-api-routes
Mar 6, 2026
Merged

Add Python API route miner (#129)#145
Dimwiddle merged 1 commit intofeature/discovery-layerfrom
129-python-api-routes

Conversation

@Dimwiddle
Copy link
Contributor

@Dimwiddle Dimwiddle commented Mar 6, 2026

Description

Implement PythonRouteMiner for Discovery issue #129.

This change adds framework-gated Python route extraction for FastAPI, Flask, and Django using shared discovery context and typed ApiRouteMeta metadata.

What was added

  • New miner: src/specleft/discovery/miners/python/routes.py
  • Miner wiring/export updates in discovery miner registries
  • New miner tests: tests/discovery/miners/test_python_routes.py
  • Fixture updates in tests/fixtures/discovery/sample_api.py
  • Discovery feature spec updates in features/feature-spec-discovery.md

Type of Change

  • New feature
  • Tests
  • Documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Testing

  • make lint-fix
  • make lint
  • make test
  • make pre-commit

Related Issues

Closes #129

@Dimwiddle Dimwiddle linked an issue Mar 6, 2026 that may be closed by this pull request
10 tasks
@Dimwiddle Dimwiddle merged commit 4cd0162 into feature/discovery-layer Mar 6, 2026
1 check passed
@Dimwiddle Dimwiddle deleted the 129-python-api-routes branch March 6, 2026 22:16
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.

Discovery miner: Python API routes (FastAPI, Flask, Django)

1 participant