Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Since we're tooting our own horns here, I wrote a small Python Web API framework called pyotr [0]. Its core idea is that, when you have an OpenAPI specification of your Web service, it is trivial to use it for both validation and routing.

It actually consists of two projects (and I'm looking into making them more independent): the server component, which lets you set up your service using an OpenAPI spec and simply write a number of functions, each handling one operation; and the client component, which does the opposite by taking the spec and letting you call the service with simple constructs like client.operation_id().

[0] https://pyotr.readthedocs.io



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: