hug
connexion
Our great sponsors
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Revelo Payroll - Free Global Payroll designed for tech teams
- Sonar - Write Clean Python Code. Always.
- Onboard AI - Learn any GitHub repo in 59 seconds
hug | connexion | |
---|---|---|
1 | 19 | |
6,737 | 4,295 | |
0.1% | 0.5% | |
0.0 | 8.3 | |
3 months ago | about 1 month ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
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.
hug
connexion
-
Ask HN: Why is there no specification for Command Line Interfaces?
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!
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?
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
I'm here because Swagger-CodeGen created flask-Connexion boilerplate for python.
- Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 1 – Real Python
-
Does anybody know any good resources I could use to study ISP architecture?
Personally we just prov them using librouteros and flask-connexion/openapi.
-
what's the correct architecture to build rest api in flask?
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?
-
I've experience with Django and want to learn a microframework. Which one should I go with Flask or Fast API?
https://connexion.readthedocs.io/en/latest/ - check Connexion, it is a framework on top of flask with swagger etc.
https://connexion.readthedocs.io/en/latest/ check this :)
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
falcon - The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
django-rest-framework - Web APIs for Django. 🎸
eve - REST API framework designed for human beings
Dependency Injector - Dependency injection framework for Python
Blueprint/Boilerplate For Python Projects - Blueprint/Boilerplate For Python Projects
apistar - The Web API toolkit. 🛠
Flask - The Python micro framework for building web applications.
flask-apscheduler - Adds APScheduler support to Flask