Skip to content
← Projects

Aiohttp-Swagger

Python 186 stars 2024

Aiohttp-Swagger generates the documentation for your API on aiohttp servers, straight from your own code.

Documenting APIs is a pain, I know. But the docs have to exist and be up to date, because outdated docs are worse than none.

Why I built it

I love aiohttp: it’s fast, simple and powerful. But it had no decent way to generate Swagger documentation, so I wrote one.

What you get

  • Generates the documentation from your code.
  • Ships Swagger UI so you can try the API from the browser.
  • Follows OpenAPI, the de facto standard for REST APIs.
  • Two lines of code to set up.

Who uses it

It has over 180 stars, and some APIs processing millions of requests a day run it.

If you use aiohttp and need to document your API, take a look.

Listen to the audio on why AI turns dumb

I send one email a day, and as soon as you sign up you get a ten minute audio on what almost nobody knows about ChatGPT and Claude.

Daniel Alfocea