rweb VS openapi-python-client

Compare rweb vs openapi-python-client and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
rweb openapi-python-client
5 6
347 1,075
- 3.1%
0.0 9.0
12 days ago 4 days ago
Rust Python
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rweb

Posts with mentions or reviews of rweb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-23.
  • Is there a Flask like library for Rust?
    3 projects | /r/rust | 23 Jun 2021
    rweb is pretty simple. it's based on warp, but with rocket-like #[get("/product/{id}")] which is like Flask's @app.route("/product/").
  • A web framework I desperately wish there was a Rust equivalent for: FastAPI
    6 projects | /r/rust | 7 Mar 2021
    I wrote a PR this weekend to give FastAPI like UX to rweb! https://github.com/kdy1/rweb/pull/56
  • Replacing FastAPI with Rust: Part 3 - Trying Actix
    8 projects | dev.to | 12 Jan 2021
    This crate has an implementation for the Handler trait which I used to model my own Handler trait for an actix-web Service. Using my own struct which implemented that trait suddenly made the "this is not Send" error messages simple enough to decipher. I was able to get the thing to actually compile, but it required using a few unwrap()s on errors which were not Send. I could probably go back and figure out how to wrap or map those errors to something simpler to make my implementation less fragile, but I was already annoyed enough at this implementation that I was headed toward rweb anyway.
  • Replacing FastAPI with Rust: Part 2 - Research
    7 projects | dev.to | 1 Jan 2021
    All of that is to say rweb is a possible solution, but not a likely one. The product seems great, and if the code functions as well as the brief examples indicate, this is the best option from a code perspective (oops, spoilers!). Given my concerns about the community, I would have to be comfortable forking and maintaining my own version of this framework in the event that I need changes and can't wait months for a PR to be reviewed. Even if that's not the case, I'll certainly have to write much more complete documentation for my teammates to be able to use this project effectively. I'm not mortally opposed to any of that, but I'd rather avoid it if I can.

openapi-python-client

Posts with mentions or reviews of openapi-python-client. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-15.
  • GraphQL is for Backend Engineers
    1 project | dev.to | 5 Feb 2024
    On the backend, developers either need to manually document the entire API or rely on auto-generation tools that don’t fully meet their needs. Consumers face the same choice, write code by hand or workaround the bugs in their SDK generator (stated, lovingly, as the maintainer of an OpenAPI client generator). On top of this, these solutions result in inconsistent understandings of the API. Reproducing errors becomes time-consuming and frustrating, which feels like a battle instead of a collaboration. What we need is a shared language to describe how the API works—one that doesn’t add unnecessary layers of abstraction or manual work.
  • Microsoft Kiota: CLI for generating an API client to call OpenAPI-described API
    1 project | news.ycombinator.com | 11 Apr 2023
    Has anyone tried Kiota, specifically the Python support? How does it compare to https://github.com/openapi-generators/openapi-python-client ?
  • Python toolkits
    38 projects | /r/Python | 15 Jul 2022
    I think we use these - https://github.com/openapi-generators/openapi-python-client
  • YAML: It's Time to Move On
    29 projects | news.ycombinator.com | 14 Nov 2021
    Thanks for the link, but not necessarily.

    How WSDL and the code generation around it worked, was that you'd have a specification of the web API (much like OpenAPI attempts to do), which you could feed into any number of code generators, to get output code which has no coupling to the actual generator at runtime, whereas Pyotr is geared more towards validation and goes into the opposite direction: https://pyotr.readthedocs.io/en/latest/client/

    The best analogy that i can think of is how you can also do schema first application development - you do your SQL migrations (ideally in an automated way as well) and then just run a command locally to generate all of the data access classes and/or models for your database tables within your application. That way, you save your time for 80% of the boring and repetitive stuff while minimizing the risks of human error and inconsistencies, while nothing preventing you from altering the generated code if you have specific needs (outside of needing to make it non overrideable, for example, a child class of a generated class). Of course, there's no reason why this can't be applied to server code either - write the spec first and generate stubs for endpoints that you'll just fill out.

    Similarly there shouldn't be a need for a special client to generate stubs for OpenAPI, the closest that Python in particular has for now is this https://github.com/openapi-generators/openapi-python-client

    However, for some reason, model driven development never really took off, outside of niche frameworks, like JHipster: https://www.jhipster.tech/

    Furthermore, for whatever reason formal specs for REST APIs also never really got popular and aren't regarded as the standard, which to me seems silly: every bit of client code that you write will need a specific version to work against, which should be formalized.

  • Replacing FastAPI with Rust: Part 2 - Research
    7 projects | dev.to | 1 Jan 2021
    Tallying up the results, we get 7/8 "MUST" requirements met. I think that Paperclip + actix-web seems like the most promising candidate. I'm really not opposed to writing the OpenAPI v3 construction myself as I've worked with the structure a fair bit in my openapi-python-client project (shameless plug).
  • Replacing FastAPI with Rust: Part 1 - Intro
    3 projects | dev.to | 29 Dec 2020
    Automatic documentation via OpenAPI, which lets you do things like generate Python code that knows how to talk to your API.

What are some alternatives?

When comparing rweb and openapi-python-client you can also consider the following projects:

rust-fastapi-experiments

sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.

juniper - GraphQL server library for Rust

starlark - Starlark Language

okapi - OpenAPI (AKA Swagger) document generation for Rust projects

paperclip - WIP OpenAPI tooling for Rust. [Moved to: https://github.com/paperclip-rs/paperclip]

dropshot - expose REST APIs from a Rust program

actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

warp - A super-easy, composable, web server framework for warp speeds.

graphql-playground - 🎮 GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)

yaml-reference-parser