I made a library to automatically generate a REST API client from Flask

[https://github.com/revalo/sharp](https://github.com/revalo/sharp)

I've found it pretty frustrating to write a backend route and repeat the same thing on the client and manually write all sorts of type validation.

With this, you write your backend with Flask and Sharp generates a JavaScript client automatically.

4 thoughts on “I made a library to automatically generate a REST API client from Flask”

  1. Nice way to learn about python and javascript, congrats.

    I’m just of the **strong** opinion using `@decorators` to document your py api is **NOT** pythonic.

    Reply
  2. This looks very cool. Having just built a Flask app/api with a lot of front of me JS this would have been an interesting way of going about it. I will have to try it on a personal project but looks promising. I like that it connects the development of the python and JS side of things a little more.

    Can the generated JS be imported into modules?

    Reply

Leave a Comment