uvicorn
mkcert
Our great sponsors
uvicorn | mkcert | |
---|---|---|
56 | 130 | |
7,785 | 45,618 | |
2.6% | - | |
8.8 | 0.0 | |
4 days ago | 1 day ago | |
Python | Go | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" 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.
uvicorn
-
LangChain, Python, and Heroku
This tells Heroku to run uvicorn, which is a web server implementation in Python.
-
Fun with Avatars: Crafting the core engine | Part. 1
FastAPI uses Uvicorn, an ASGI (Asynchronous Server Gateway Interface) web server implementation for Python.
-
Effortless API Documentation: Accelerating Development with FastAPI, Swagger, and ReDoc
Now, let’s run our FastAPI application using Uvicorn: uvicorn main:app --reload
-
FastHttp for Python (64k requests/s)
Uvicorn + Starlette 8k requests/s
-
Ask HN: Where to Host a FastAPI App
I switched to Hypercorn because Uvicorn currently supports HTTP/1.1 and WebSockets as mentioned at https://www.uvicorn.org
-
How to use Chroma to store and query vector embeddings
This will set up Chroma and run it as a server with uvicorn, making port 8000 accessible outside the net docker network. The command also mounts a persistent docker volume for Chroma's database, found at chroma/chroma from your project's root.
-
Unresolved Memory Management Issues in FastAPI/Starlette/Uvicorn/Python During High-Load Scenarios
There's an open discussion under the Uvicorn repository and we prepared a repository for Reproduction GitHub Repo
-
How to Dockerize and Deploy a Fast API Application to Kubernetes Cluster
FastAPI is a popular Python Web framework that developers use to create RESTful APIs. It is based on Pydantic and Python-type hints that assist in the serialization, deserialization, and validation of data. In this tutorial, we will use FastAPI to create a simple "Hello World" application. We test and run the application locally. FastAPI requires a ASGI server to run the application production such as Uvicorn.
- FastAPI 0.100.0:Release Notes
-
Unlocking Performance: A Guide to Async Support in Django
Uvicorn and Daphne are both ASGI server implementations that can be used with Django to serve your application using the ASGI protocol. Uvicorn is built on top of the uvloop library, which is a fast implementation of the event loop based on libuv, while Daphne is maintained as part of the Django Channels project and was designed to handle the unique requirements of Django applications that utilize asynchronous features, such as real-time updates, bidirectional communication, and long-lived connections.
mkcert
- Mkcert: Simple tool to make locally trusted dev certificates names you'd like
-
You Can't Follow Me
The author mentions difficulties with HTTPS and trying stuff locally.
I've had some success with mkcert [1] to easily create certificates trusted by browsers, I can suggest to look into this. You are your own root CA, I think it can work without an internet connection.
- SSL Certificates for Home Network
-
Simplifying Localhost HTTPS Setup with mkcert and stunnel
Solution: mkcert – Your Zero-Configuration HTTPS Enabler Meet mkcert, a user-friendly, zero-configuration tool designed for creating locally-trusted development certificates. Find it on its GitHub page and follow the instructions tailored for your operating system. For Mac users employing Homebrew, simply execute the following commands in your terminal:
-
10 reasons you should quit your HTTP client
Well, Certifi does not ship with your company's certificates! So requesting internal services may come with additional painful extra steps! Also for a local development environment that uses mkcert for example!
-
Show HN: Anchor – developer-friendly private CAs for internal TLS
My project, getlocalcert.net[1] may be the one you're thinking of.
Since I'm also building in this space, I'll give my perspective. Local certificate generation is complicated. If you spend the time, you can figure it out, but it's begging for a simpler solution. You can use tools like mkcert[2] for anything that's local to your machine. However, if you're already using ACME in production, maybe you'd prefer to use ACME locally? I think that's what Anchor offers, a unified approach.
There's a couple references in the Anchor blog about solving the distribution problem by building better tooling[3]. I'm eager to learn more, that's a tough nut to crack. My theory for getlocalcert is that the distribution problem is too difficult (for me) to solve, so I layer the tool on top of Let's Encrypt certificates instead. The end result for both tools is a trusted TLS certificate issued via ACME automation.
1. https://news.ycombinator.com/item?id=36674224
2. https://github.com/FiloSottile/mkcert
3. https://blog.anchor.dev/the-acme-gap-introducing-anchor-part...
-
Running one’s own root Certificate Authority in 2023
Looks like step-ca/step-cli [1] and mkcert [2] have been mentioned. Another related tool is XCA [3] - a gui tool to manage CAs and server/client TLS certificates. It takes off some of the tedium in using openssl cli directly. It also stores the certs and keys in an encrypted database. It doesn't solve the problem of getting the root CA certificate into the system store or of hosting the revocation list. I use XCA to create and store the root CA. Intermediate CAs signed with it are passed to other issuers like vault and step-issuer.
[1] https://smallstep.com/docs/step-ca/
-
Show HN: Local development with .local domains and HTTPS
We use mkcert for this, it works wonderfully.
-
Implementing TLS in Kubernetes
mkcert: This is used to obtain a trusted TLS certificate with a custom domain name for your development machine. You can install mkcert on your development machine following the official instructions.
-
Easy HTTPS for your private networks
I've been pretty frustrated with how private CAs are supported. Your private root CA can be maliciously used to MITM every domain on the Internet, even though you intend to use it for only a couple domain names. Most people forget to set Name Constraints when they create these and many helper tools lack support [1][2]. Worse, browser support for Name Constraints has been slow [3] and support isn't well tracked [4]. Public CAs give you certificate transparency and you can subscribe to events to detect mis-issuance. Some hosted private CAs like AWS's offer logs [5], but DIY setups don't.
Even still, there are a lot of folks happily using private CAs, they aren't the target audience for this initial release.
[1] https://github.com/FiloSottile/mkcert/issues/302
[2] https://github.com/cert-manager/cert-manager/issues/3655
[3] https://alexsci.com/blog/name-non-constraint/
[4] https://github.com/Netflix/bettertls/issues/19
[5] https://docs.aws.amazon.com/privateca/latest/userguide/secur...
What are some alternatives?
daphne - Django Channels HTTP/WebSocket server
minica - minica is a small, simple CA intended for use in situations where the CA operator also operates each host where a certificate will be used.
hypercorn
nginx-docker-ssl-proxy - A docker way to access localhost:8081 from https://local.dev
hypercorn - Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
certificates - 🛡️ A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH.
Flask - The Python micro framework for building web applications.
gosumemory - Cross-Platform memory reader for osu!
dash - Data Apps & Dashboards for Python. No JavaScript Required.
rustls - A modern TLS library in Rust
starlette - The little ASGI framework that shines. 🌟
WSL - Issues found on WSL