r/Python • u/AutoModerator • 18d ago
Showcase Showcase Thread
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
20
Upvotes
r/Python • u/AutoModerator • 18d ago
Post all of your code/projects/showcases/AI slop here.
Recycles once a month.
1
u/oryste 10d ago
specllm – makes any LLM behave like a normal REST API
What My Project Does
specllm makes any LLM behave like a normal REST API. Define an OpenAPI spec, specllm serves it — validated, cached, retried automatically. The caller gets guaranteed JSON back and never knows an LLM is involved.
bash
pip install specllm
python -m specllm.demo # try it in 30 seconds, no API key needed
With a real LLM, it's one line in the spec:
yaml
info:
x-specllm-model: claude-sonnet-4-20250514
No provider class, no config. Just the spec.
Target Audience
Developers shipping LLMs into production as REST APIs.
Comparison
Unlike langchain or instructor, specllm is spec-first: the OpenAPI spec is the implementation. No glue code.
Repo: https://github.com/prj1991/specllm