Autoenv
zsh-autoenv
Our great sponsors
Autoenv | zsh-autoenv | |
---|---|---|
6 | 7 | |
5,549 | 674 | |
- | - | |
5.9 | 0.0 | |
8 days ago | about 2 months ago | |
Shell | Perl | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Autoenv
- Autoenv: Directory-Based Environments
-
How do people manage virtual environments so that they don't take up too much space?
the way I manage (2) is with a kind of DIY pipenv system i've come up with. i have a tool installed in my terminal called autoenv. when i navigate to a new directory, if there's a .env file in it, autoenv executes it. that's basically all autoenv does. I have a .env in my home folder that, among other things, activates my "master" venv. when I create a new project that I want to have its own venv, I just add a .env file to that folder to activate it. otherwise, the master venv is active whenever I roam around my filesystem, functionally serving as a default environment i reuse.
-
Introducing pyautoenv: Activate and deactive python environments as you move around the file system
Inspired by autoenv, pyautoenv hooks into the cd command in your shell and will automatically activate a poetry or venv Python environment if that environment is defined in the directory you're cd-ing into. Zsh, Bash, and PowerShell are supported.
-
After using Python for over 2 years I am still really confused about all of the installation stuff and virtual environments
There is an autoenv tool you can use to automatically activate a python virtualenv when you cd into a directory but itβs a little annoying to set up https://github.com/hyperupcall/autoenv
-
Repeatedly typing export FLASK_ENV=development and export FLASK_APP=hello.py before running flask
But IMO the best solution by far is to use autoenv. There is autoenv for bash and autoenv for zsh.
- How to activate an environment forever?
zsh-autoenv
-
Managing project-specific configurations
Another one that I like: https://github.com/Tarrasch/zsh-autoenv
-
You can't use pip on Ubuntu 23.04 anymore
Can I ask if you're using zsh-autoenv or rtx or something else to achieve that?
-
Introducing pyautoenv: Activate and deactive python environments as you move around the file system
For some of my projects I use zsh-autoenv for this.
-
Automatically running commands when you enter or leave a directory
I think zsh-autoenv does a great job handling this, as you describe:
-
Repeatedly typing export FLASK_ENV=development and export FLASK_APP=hello.py before running flask
But IMO the best solution by far is to use autoenv. There is autoenv for bash and autoenv for zsh.
-
What are really usefull ZSH plug-ins?
zsh-autoenv
-
Zsh Plugins Commit TOP
autoenv π₯ - If a directory contains a .env file, it will automatically be executed when you cd into it.
What are some alternatives?
Pipenv - Python Development Workflow for Humans.
ohmyzsh - π A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
Poetry - Python packaging and dependency management made easy
awesome-zsh-plugins - A collection of ZSH frameworks, plugins, themes and tutorials.
pyenv - Simple Python version management
fish-shell - The user-friendly command line shell.
rez - An integrated package configuration, build and deployment system for software
zsh-autosuggestions - Fish-like autosuggestions for zsh
virtualenvwrapper
pyautoenv - Automatically activate and deactivate Python environments as you move around the file system.
virtualenv - Virtual Python Environment builder
ranger - A VIM-inspired filemanager for the console