https://github.com/jellydn/modern-python-2024-demo
Modern development with Python in 2024
https://github.com/jellydn/modern-python-2024-demo
python ruff rye uv
Last synced: 6 months ago
JSON representation
Modern development with Python in 2024
- Host: GitHub
- URL: https://github.com/jellydn/modern-python-2024-demo
- Owner: jellydn
- License: mit
- Created: 2024-03-17T12:55:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T17:38:24.000Z (6 months ago)
- Last Synced: 2025-04-07T18:42:08.403Z (6 months ago)
- Topics: python, ruff, rye, uv
- Language: Python
- Homepage: https://modern-python-demo.fly.dev/docs
- Size: 33.2 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to modern-python-2024-demo 👋
This project is a demo for modern Python 2024 with FastAPI. The project also utilizes the rye, uv, and ruff packages for a hassle-free Python experience.[](https://rye-up.com)
[](https://github.com/astral-sh/ruff)[](https://www.youtube.com/watch?v=A8xdhC_0Hcc)
## Pre-requisites
- [astral-sh/rye: a Hassle-Free Python Experience](https://github.com/astral-sh/rye)
- [astral-sh/uv: An extremely fast Python package installer and resolver, written in Rust.](https://github.com/astral-sh/uv)
- [astral-sh/ruff: An extremely fast Python linter and code formatter, written in Rust.](https://github.com/astral-sh/ruff)## Install
```sh
rye sync
rye run basedpyright --createStub fastapi
```## Usage
```sh
rye run devserver
```[](https://gyazo.com/aece13aeaf4ab3b984ea04d3c3137113)
## Run tests
```sh
rye test
```## Format code
```sh
rye fmt
```[](https://gyazo.com/a8765a6625a1adc5287f108ae6f43214)
## Lint code
```sh
rye lint
```[](https://gyazo.com/2a87caee50e46ef96dbd4b940b0506f9)
## Docker
```sh
docker-compose up
```Refer [Docker](https://rye-up.com/guide/docker/) for more information.
## Deploy to Fly.io
```sh
fly launch
```## Resources
- [Introduction - Rye](https://rye-up.com/guide/)
- [Announcing Astral, the company behind Ruff](https://astral.sh/blog/announcing-astral-the-company-behind-ruff)
- [The Ruff Formatter: An extremely fast, Black-compatible Python formatter](https://astral.sh/blog/the-ruff-formatter)
- [uv: Python packaging in Rust](https://astral.sh/blog/uv)
- [DetachHead/basedpyright: pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server](https://github.com/DetachHead/basedpyright)
- [FastAPI](https://fastapi.tiangolo.com/)## Author
👤 **Huynh Duc Dung**
- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)## Show your support
Give a ⭐️ if this project helped you!
[](https://ko-fi.com/dunghd)
[](https://paypal.me/dunghd)
[](https://www.buymeacoffee.com/dunghd)