{"repo":"hsaunders1904/pyautoenv","free":true,"listed":false,"github":"https://github.com/hsaunders1904/pyautoenv","clone":"git clone https://github.com/hsaunders1904/pyautoenv.git","description":"Automatically activate and deactivate Python environments as you move around the file system.","language":"Python","stars":77,"topics":["poetry","python3","venv-python","zsh-plugin","bash","fish","powershell"],"license":"GPL-3.0","category":"cli-tools","readme_excerpt":"pyautoenv Automatically activate and deactivate Python environments as you move around the file system. Description Heavily inspired by autoenv. pyautoenv activates a Poetry or venv Python environment when you cd into the directory that defines that environment (i.e., when a directory, or any of its parents, contains a poetry.lock file or a .venv/ directory). Environments are automatically deactivated when you leave the directory. Supports Python versions 3.9 and up. Install Follow the installation instructions for your favourite shell. Zsh Expand instructions If you're using oh-my-zsh, clone this repo into /.oh-my-zsh/plugins or ${ZSH CUSTOM}/plugins . Then add pyautoenv to the list of enabled plugins in your .zshrc : If you're not using oh-my-zsh , source the pyautoenv.plugin.zsh script. Add this to your .zshrc to activate the application permanently. Bash Expand instructions To enable the application in bash, source the bash script. Add this to your .bashrc to activate the application permanently. Note that this script will clobber the cd command. It is highly recommended to use a more modern shell, like ZSH or Fish, when using pyautoenv . Fish Expand instructions To enable the application in fish-shell, source the fish script. Add this to your config.fish file to activate the application permanently. PowerShell Expand instructions To enable the application in PowerShell, dot the .ps1 file. Add this to your profile to activate the application permanently. Options There are","default_branch":null,"files":null,"tree":[],"storefront":"/r/hsaunders1904","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hsaunders1904/pyautoenv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}