|22 days ago
|7 days ago
|GNU General Public License v3.0 or later
|Apache License 2.0
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.
Show HN: REST Alternative to GraphQL and tRPC
8 projects | news.ycombinator.com | 10 Oct 2023
> While REST APIs don't generally provide the same level of control to clients as GraphQL, many times this could be seen as a benefit especially in scenarios where strict control over data access and operations is crucial.
Rest is more secure, cacheable, and more performant on the server side as field resolution doesn't need to happen like it does with GraphQL. It is not more performant on the client side, and this is a trade-off, but I favor rest applications over GraphQL ones as a DevOps engineer. They are much easier to administer infrastructure-wise, I can cache the requests, etc.
Data at our company suggests that several small queries actually do better performance-wise than one large one. We switched to GraphQL a year and a half ago or so, but this piece of data seems to suggest that we might have been better off just sticking with REST. My suggestion to that effect was not met with optimism either on the client or server side. Apparently there are server-side benefits as well, allowing for more modular development or something like that.
I have used OpenAPI using connexion. It was hard to understand at first, but I really liked that the single source of truth was one schema. It also made it really easy to develop against the API because it came with a UI that showed the documentation for all the rest end points and even had test buttons.
Ask HN: Why is there no specification for Command Line Interfaces?
5 projects | news.ycombinator.com | 27 Feb 2023
What's the use case? I was thinking about this exact issue because my product ships several CLI tools, but I wasn't convinced it would be worth the effort.
An OpenAPI specification describes an HTTP interface, and I see it as useful because it makes it easier to write code in language-of-choice to generate HTTP requests (by generating client libraries from the OpenAPI spec).
For a CLI, the interface is the command-line. Usually people type these commands, or they end up in bash scripts, or sometimes they get called from programming language of choice by shelling out to the CLI. So I could see a use case for a CLI spec, which would make it easier to generate client libraries (which would shell out to the CLI)... but it seems a little niche.
Or maybe, as input to a documentation tool (like Swagger docs). I would imagine if you're using a CLI library like Python's Click, most of that data is already there. Click Parameters documentation: https://click.palletsprojects.com/en/8.1.x/parameters/
Or maybe, you could start from the spec and then generate code which enforces it. So any changes pass through the spec, which would make it easy to write code (server and client-side) / documentation / changelogs. Some projects like this: Guardrail (Scala) https://github.com/guardrail-dev/guardrail , and Connexion (Python) https://github.com/spec-first/connexion .
But without this ecosystem of tooling, documenting your CLI in a specification didn't really seem worth the effort. Of course, that's a bootstrapping problem.
Flask is Great!
3 projects | /r/flask | 4 Feb 2023
Connexion is a framework on top of Flask that automagically handles HTTP requests defined using OpenAPI/Swagger.
What is the best practice for mapping JSON requests to objects and back to JSON?
2 projects | /r/flask | 25 Jan 2023
I recommend you create a OpenAPI Specification and implement a python module that you expose via connexion or on the cli via click(for easy testing).
Flask-Powered APIs: Fast, Reliable, and Used by the World's Top Companies
2 projects | /r/flask | 15 Dec 2022
I'm here because Swagger-CodeGen created flask-Connexion boilerplate for python.
Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 1 – Real Python
3 projects | /r/Python | 15 Nov 2022
Does anybody know any good resources I could use to study ISP architecture?
2 projects | /r/networking | 12 Nov 2022
Personally we just prov them using librouteros and flask-connexion/openapi.
what's the correct architecture to build rest api in flask?
4 projects | /r/flask | 21 Oct 2022
The reason im using py sqla for mvc i look at flask-admin for api i look at connexion, here a tutorial if your interested.
What's best library for swagger + flask?
6 projects | /r/Python | 25 Sep 2022
I've experience with Django and want to learn a microframework. Which one should I go with Flask or Fast API?
4 projects | /r/Python | 6 Sep 2022
https://connexion.readthedocs.io/en/latest/ - check Connexion, it is a framework on top of flask with swagger etc.
What are some alternatives?
flask-restful - Simple framework for creating REST APIs
Flask RestPlus - Fully featured framework for fast, easy and documented API development with Flask
flasgger - Easy OpenAPI specs and Swagger UI for your Flask API
django-rest-framework - Web APIs for Django. 🎸
eve - REST API framework designed for human beings
falcon - The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
Dependency Injector - Dependency injection framework for Python
Flask - The Python micro framework for building web applications.
Tweepy - Twitter for Python!
Blueprint/Boilerplate For Python Projects - Blueprint/Boilerplate For Python Projects
hug - Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.
flask-apscheduler - Adds APScheduler support to Flask