| layout | page |
|---|---|
| title | 🇩🇪 Deutsch |
| permalink | /de/ |
| lang | de |
🇺🇸 English | 🇮🇳 हिंदी | 🇯🇵 日本語 | 🇨🇳 简体中文 | 🇪🇸 Español | 🇧🇷 Português (Brasil) | 🇰🇷 한국어 | 🇩🇪 Deutsch | 🇫🇷 Français
Eine standardisierte Python-Umgebung, erstellt mit Docker Compose.
- Reproduzierbarkeit: Abhängigkeiten sind im Container festgelegt
- Einfachheit: Ausführung nur mit docker compose-Befehlen
- Portabilität: Funktioniert unter Linux, macOS und Windows
- pip ready: Python-Pakete einfach installieren und verwalten
- JupyterLab support: (Optional) Notebooks im Container ausführen
- X11 forwarding: (Optional) GUI-basierte Python-Apps ausführen
# Clone this repository
git clone https://github.com/europanite/standard_python_environment.git
cd standard_python_environment
# Export host UID/GID
export HOST_UID=$(id -u)
export HOST_GID=$(id -g)
# Build and run
docker compose build
docker compose up -d
docker compose exec service bash# Clone this repository
git clone https://github.com/europanite/standard_python_environment.git
cd standard_python_environment
# Build and run
docker compose build
docker compose up -d
docker compose exec service bashJetzt befinden Sie sich im Python-Container 🎉
Wenn Sie JupyterLab verwenden, müssen Sie nur http://localhost:8888 aufrufen
# pytest
docker compose \
-f docker-compose.test.yml run \
--rm \
--entrypoint /bin/sh service_test \
-lc 'pytest'
# Lint
docker compose \
-f docker-compose.test.yml run \
--rm \
--entrypoint /bin/sh service_test \
-lc 'ruff check /app /tests'- Apache License 2.0
