python-venv-requests
/python-venv-requests
Tworzy izolowane środowisko wirtualne Python dla projektu, instaluje przypiętą wersję requests i zapisuje requirements.txt.
- Autor
- Gemi-Team ↗
- Repozytorium
- video-to-skill ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 08.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 08.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Tworzy izolowane środowisko wirtualne Python dla projektu, instaluje przypiętą wersję requests i zapisuje requirements.txt.
Wyzwalacze z opisu
Oryginalny opis (EN)
Creates an isolated Python virtual environment for a project, installs a pinned version of requests in it and records the dependencies in requirements.txt. Use when the user wants to "create a venv", "isolate a Python project's dependencies", "install requests cleanly" or "generate a requirements.txt".
Jak działa
- Prerequisites
- Steps
- Variants
- Troubleshooting
- Source
Podgląd SKILL.md
--- name: python-venv-requests description: Creates an isolated Python virtual environment for a project, installs a pinned version of requests in it and records the dependencies in requirements.txt. Use when the user wants to "create a venv", "isolate a Python project's dependencies", "install requests cleanly" or "generate a requirements.txt". --- # Python virtual environment + pinned requests > Verification: 6/6 steps executed successfully on 2026-11-08 (Linux, Python 3.13) in a throwaway folder. > Not verified: Windows (different activation command, see Variants). At the end: an isolated `.venv/` folder, `requests` 2.32.3 installed in it, and a `requirements.txt` that recreates the environment identically. ## Prerequisites - Python 3 available as `python3` [t=0:08] - Terminal open at the project root (`~/project` in the video) [t=0:05] ## Steps ### 1. Create the virtual environment ```bash python3 -m venv .venv ``` ✔ Success: no error message, a `.venv/` folder exists. [t=0:08] ### 2. Activate it ```bash source .venv/bin/activate ``` ✔ Success: the prompt starts with `(.venv)`. [t=0:19] ### 3. Install a pinned version of requests ```bash pip install requests==2.32.3 ``` The exact version comes from the screen: the narration says "request, version 2.32", the screen shows `requests==2.32.3` [t=0:23]. ✔ Success: the last line contains `Successfully installed … requests-2.32.3`, with the certifi, charset-normalizer, idna, urllib3 dependencies. [t=0:23] ### 4. Check the install ```bash python -c "import requests; print(requests.__version__)" ``` ✔ Success: prints `2.32.3`. [t=0:31] ### 5. Freeze the dependencies ```bash pip freeze > requirements.txt ``` [t=0:36] ### 6. Check the file ```bash grep requests requirements.txt ``` ✔ Success: prints `requests==2.32.3`. [t=0:45] ## Variants - ➕ added: on Windows (PowerShell), activation is `.venv\Scripts\Activate.ps1` (source: https://docs.python.org/3/library/venv.html). - ➕ added: recreate the environment elsewhere → `python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt` (same source). - Another requests version: replace `2.32.3` in step 3; the video only covers this one. ## Troubleshooting - `(.venv)` does not appear → step 2 was run with `sh` instead of `bash`/`zsh`: use `. .venv/bin/activate`. (➕ added, same source) - ➕ added: add `.venv/` to `.gitignore` so the environment is not versioned. ## Source - Video: "Python: virtual environment" — test video generated by `tests/make_test_video.py` - Transcript: provided subtitles (.srt) - Extracted on 2026-11-08 with video-to-skill
Wersje
W bazie nie ma innych skilli o nazwie python-venv-requests.
Migawka bazy z 13.11.2026 · wersja paczki 65576a1c031f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100venv-manager
Tworzy, zarządza i waliduje wirtualne środowiska Pythona, zapewniając izolację projektów i zarządzanie zależnościami. - 100uv
Instaluje pakiety Pythona, tworzy środowiska wirtualne, blokuje zależności i zarządza wersjami Pythona jednym szybkim narzędziem zastępującym pip, poetry, pyenv i virtualenv, w tym uvx i skrypty z inline dependencies. - 100dev-setup
Instaluje, weryfikuje i naprawia lokalne środowisko OpenMetadata na macOS i Linuksie: Java 21, Maven, Node 22, Yarn, Python, ANTLR, Docker, venv, modele i hooki pre-commit. - 100uv-python-project-setup
Tworzy, naprawia i waliduje konfigurację projektu Pythona z uv: inicjalizacja aplikacji i bibliotek, zależności, środowiska wirtualne i workflow gotowe do CI. - 95koopa-python
Wyjaśnia problemy wirtualnych środowisk Pythona po przeniesieniu katalogu projektu i pokazuje, jak poprawnie aktywować venv w direnv. - 100python-best-practices
Podaje dobre praktyki przy czytaniu i pisaniu plików Python, w tym pyproject.toml i requirements.txt.