https://github.com/tf63/python3.12-playground
https://github.com/tf63/python3.12-playground
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tf63/python3.12-playground
- Owner: tf63
- Created: 2024-12-31T09:50:41.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T02:50:28.000Z (12 months ago)
- Last Synced: 2025-01-16T02:38:11.666Z (11 months ago)
- Language: Python
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uv template
This repository provides a template for managing Python environments and dependencies using [uv](https://docs.astral.sh/uv/getting-started/installation/).
## Setup
### Installing [uv](https://docs.astral.sh/uv/getting-started/installation/)
```shell
curl -LsSf https://astral.sh/uv/install.sh | sh
```
### Checking Available Python Versions with uv
```shell
uv python list --all-versions
```
### Specifying a Python Version (refer to `.python-version`)
```shell
uv python pin x.x.x
```
### Installing Python and Dependencies
```shell
uv sync
```
### Running a Python File
```shell
uv run src/sample/main.py
```
### Starting a REPL
```shell
python3
```
### Adding Dependencies
```shell
uv add
uv add --dev
```