fastapi-crudrouter
kopf
Our great sponsors
fastapi-crudrouter | kopf | |
---|---|---|
4 | 6 | |
1,302 | 1,951 | |
- | - | |
0.0 | 7.8 | |
6 months ago | 15 days ago | |
Python | Python | |
MIT License | MIT License |
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.
fastapi-crudrouter
-
why when I search for Python jobs I find alot! but when I search for Django (the most used Python framework ) I get few compared to spring or nodejs ?
FastAPI does have an equivalent. Something like this? https://github.com/awtkns/fastapi-crudrouter
- FastAPI CRUD Router
-
FUNCTOOLS CHANGED MY LIFE
I can't show any pics cuz of uk NDA and all that. I can tell you the gist of it though. FastAPI is already pretty good at the abstraction part. Our middleware had a lot of rerouting and it was basically just a bunch of redundant functions. I just used this cool ass package https://fastapi-crudrouter.awtkns.com/ and used the partial function from functools to generate endpoints for every scenario/db tables.
-
FastAPI framework, high perf, easy to learn, fast to code, ready for production
Thanks, that's a really helpful example.
Where I think this could be taken to the next level of reusability is in modularising the front-end into API-specific components. For example, the login behaviour could depend on FastAPI-Users, with a sibling frontend library containing components that implement the same login flow. Adding user behaviour is then a matter of using the same third-party library on the front and back end.
This approach could be extended to other components such as an admin panel (perhaps using https://github.com/awtkns/fastapi-crudrouter), or a blogging component.
kopf
- A Kubernetes Operator in Rust
- I wrote a kubernetes operator for โlocustโ, should I open source it
-
Automate All the Boring Kubernetes Operations with Python
If you're looking for more examples beyond what was shown and referenced above, I recommend exploring other popular tools that make use Python Kubernetes client, such kopf - the library for creating Kubernetes operators. I also find it very useful to take a look at tests of the library itself, as it showcases its intended usage such this client test suite.
-
is it possible to have components of a specific namespace run on specific nodes ?
Depending on how you want to configure your selecting logic, it can be solved by mutating admission webhooks for the pods. For example, in Kopf, the simplest approach would be:
-
Kopf 1.31 now supports admission webhooks. Feedback is welcome!
Hello. Kopf (a framework to write Kubernetes operators in Python) 1.31 is released and has finally got admission webhooks โ https://github.com/nolar/kopf/releases/tag/1.31.0. I would appreciate some feedback from experienced operator developers on how easy or hard it is to write webhooks now, and what is missing and makes it inconvenient. The docs: https://kopf.readthedocs.io/en/stable/admission/ For a brief preview, it looks like this:
-
lightkube 0.6.0 - python kubernetes client
Correct, using generic resources with Client.watch should work. In general to create more complex operators I would recommend to check out kopf.
What are some alternatives?
starlite - Light, Flexible and Extensible ASGI API framework | Effortlessly Build Performant APIs [Moved to: https://github.com/litestar-org/litestar]
awx-operator - An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. ๐ค
Flask-AppBuilder - Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/
fastapi - FastAPI framework, high performance, easy to learn, fast to code, ready for production
fastapi-users - Ready-to-use and customizable users management for FastAPI
Celery-Kubernetes-Operator - An operator to manage celery clusters on Kubernetes (Work in Progress)
mangum - AWS Lambda support for ASGI applications
flyte - Scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks.
Dask - Parallel computing with task scheduling
pykorm - A python ๐ kubernetes โธ๏ธ ORM ๐. Very useful when writing operators for your CRDs with Kopf.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Dependency Injector - Dependency injection framework for Python