Skip to main content

Zero-friction Python environment orchestrator. Never activate again.

Project description

pylax logo

pylax

Zero-friction Python environment orchestrator.

Never activate. Never guess. Always be correct.


Buy Me A Coffee
Sponsor on GitHub

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.

  1. Initialize the dev environment:

    # You can even use pylax to develop pylax!
    python3 -m venv .venv
    .venv/bin/pip install -e .[test]
    
  2. Run tests:

    pytest
    

License

MIT © Nuhman PK

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylax-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylax-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for pylax-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3474fcbba3a7eddd401fd24fed22b558076851ce5a673497d247ed4e96b2f6e3
MD5 369ee686555ce01458e1c94c8b93f4f6
BLAKE2b-256 d4a53281ceb2e9d329cac244114544a2ce6b8db8db7f4d2257923c639344cfbe

See more details on using hashes here.

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

Hashes for pylax-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1064dfb3f76e087a39a272bd38d9f804c2cf190f54100205d5df0dd53c6ed56c
MD5 7bc9a627e87c23ccb7982fc00ff9afb5
BLAKE2b-256 3308e2366a30b836de3baba0b7772a1e4633e5f842e1cec498a8576cdb05b1e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page