Skip to main content

Yet another Python environment manager.

Project description

yen

The easiest Python environment manager. Create virtual environments for any Python version, without needing Python pre-installed.

Installation

Get the tool by running the following command:

  • MacOS / Linux:

    curl -L yen.tushar.lol/install.sh | sh
    
  • Windows:

    curl -L yen.tushar.lol/install.bat | cmd
    

or if you prefer, get it by pip or pipx:

pip install yen
pipx run yen create -p 3.12

Usage

$ yen list
Available Pythons:
3.12.1
3.11.7
3.10.13
3.9.18
3.8.18

$ yen create venv -p 3.12
Downloading 3.12.1 ━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 17.4/17.4 MB • 12.4 MB/s • 0:00:00
Created venv with Python 3.12.1 ✨

$ source venv/bin/activate

(venv) $ python --version
Python 3.12.1

By default the python-installation will be done in ~/.yen_pythons. You can change this location by setting a different path using the environment variable YEN_PYTHONS_PATH.

Local Development / Testing

  • Create and activate a virtual environment
  • Run pip install -r requirements-dev.txt to do an editable install
  • Run pytest to run tests

Type Checking

Run mypy .

Create and upload a package to PyPI

Make sure to bump the version in setup.cfg.

Then run the following commands:

rm -rf build dist
python setup.py sdist bdist_wheel

Then upload it to PyPI using twine:

twine upload dist/*

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

yen-0.4.1.post1.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

yen-0.4.1.post1-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

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