Zero-friction Python environment orchestrator. Never activate again.
Project description
pylax
Zero-friction Python environment orchestrator.
Never activate. Never guess. Always be correct.
pylax removes the need for source .venv/bin/activate by directly dispatching commands to your project's virtual environment.
The Core Idea
Most Python projects start with:
python -m venv .venv
source .venv/bin/activate # <-- The friction point
pip install -r requirements.txt
With pylax, you just do:
pylax init
pylax run app.py
pylax effectively runs .venv/bin/python app.py. It is not a shell tool; it is a dispatcher.
Installation
pip install pylax
Or for global safety (recommended):
pipx install pylax
Usage
Initialize a Project
Creates .venv, upgrades pip, and installs requirements.txt (if present).
cd myproject
pylax init
Run a Script
Runs the script using the project's virtual environment.
pylax run app.py
Equivalent to: .venv/bin/python app.py
Run a Command
Run any executable from the venv (like pip, black, pytest).
pylax run pip list
pylax run pytest
Spawn a Shell (Optional)
If you really need a shell where python and pip map to the venv versions:
pylax shell
Structure
Pylax enforces a standard, clean structure:
- Virtual environments are always named
.venv. - It relies on standard
requirements.txt. - It works on macOS, Linux, and Windows.
Development & Testing
Running Tests
We use pytest for testing.
-
Initialize the dev environment:
# You can even use pylax to develop pylax! python3 -m venv .venv .venv/bin/pip install -e .[test]
-
Run tests:
pytest
License
MIT © Nuhman PK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylax-0.1.0.tar.gz.
File metadata
- Download URL: pylax-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3474fcbba3a7eddd401fd24fed22b558076851ce5a673497d247ed4e96b2f6e3
|
|
| MD5 |
369ee686555ce01458e1c94c8b93f4f6
|
|
| BLAKE2b-256 |
d4a53281ceb2e9d329cac244114544a2ce6b8db8db7f4d2257923c639344cfbe
|
File details
Details for the file pylax-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pylax-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1064dfb3f76e087a39a272bd38d9f804c2cf190f54100205d5df0dd53c6ed56c
|
|
| MD5 |
7bc9a627e87c23ccb7982fc00ff9afb5
|
|
| BLAKE2b-256 |
3308e2366a30b836de3baba0b7772a1e4633e5f842e1cec498a8576cdb05b1e2
|