GithubHelp home page GithubHelp logo

kulkarnikaustubh / pythonvenvmerger Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 31 KB

Utility to link packages from different Python virtual environments to your current one

License: GNU General Public License v2.0

Shell 100.00%
python3 virtualenvironment venv

pythonvenvmerger's Introduction

Python Virtual Environment Merger

Utility to link packages from different Python virtual environments to your current one.

Requisites

  • Python 3+
  • Bash or Zsh

Usage

First, activate the virtual environment you want packages to be added to.
Then, as arguments, give the absolute paths of the environments whose packages you want in the current environment.

envmerger <absolute paths to virtual environments>

Once this is done, you are good to go! These packages will last as long as the shell instance is open. Once the shell is closed, or you open a new shell, your virtual environment will go back to accessing only its native packages.

NOTE: If packages clash, the version of said package from the external environment will be used and not the native package version.

To remove all packages from external environments, you can also do:

envmerger clean

Installation

First clone the repo:

git clone https://github.com/KulkarniKaustubh/PythonVenvMerger.git

Next change directory to the cloned repo and run the installation script:

cd PythonVenvMerger
./install.sh

The above commands can be used to update the already installed envmerger as well

Now you are ready to use envmerger!

Help Menu

To bring up the help menu:

envmerger -h

OR

envmerger --help

Uninstallation

To uninstall, go to the cloned repo and run the uninstallation script:

./uninstall.sh

TODO

  • Add the names of the venvs that are linked, to the shell prompt

pythonvenvmerger's People

Contributors

kulkarnikaustubh avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.