A CLI tool for creating disposable environments.

Related tags

CLI Tools dispenv
Overview

dispenv - Disposable Python Environments

⚠️ WIP

Need to make an environment to work on a GitHub issue? Want to try out a new package and not leave the clutter of a virtual environment behind? dispenv is here to save the day!

pip install git+https://github.com/pmbaumgartner/dispenv.git

To get started after install, type dispenv create in the parent folder of where you'd like your environment folder to go. Then, you'll be walked through a series of questions about your environment.

Example:

$ dispenv create

? What python version would you like to use? 3.8
? What type of virtual environment are you creating? (Use arrow keys)
 » conda
   docker (VSCode devcontainer)
? What should the folder be named? ba186b77-46bf-4506-9e8d-f9ba71377471
? What should the environment be named? ba186b77-46bf-4506-9e8d-f9ba71377471
? Paste link to a requirements.txt in a gist.  Optional https://gist.github.com/pmbaumgartner/af700cc2e009da40b1816cae66881e60

When you're done, dispenv cleanup will remove that folder and clean up any environment artifacts.

Features:

  • Supports conda and docker virtual environments
    • docker environments are setup to be run with VSCode as a devcontainer
  • When asked, if you paste a link to a GitHub Gist that contains a requirements.txt, dispenv will install those packages inside your environment after creation.
    • Requires the GitHub CLI to be installed.
    • Requires you to be authenticated through the GitHub CLI
  • dispenv cleanup will automatically delete the conda environment or shut down and remove the containers and images if it's a docker environment.

Recommendations

  • Since this is intended to be a global or system-wide tool, I recommend installing in your base environment (if you use conda) or using a tool like pipx.
You might also like...
Container images for portable development environments
Container images for portable development environments

Docker Dev Spin up a container to develop from anywhere! To run, just: docker run -ti aghost7/nodejs-dev:boron tmux new Alternatively, if on Linux: p

Dead simple CLI tool to try Python packages - It's never been easier! :package:
Dead simple CLI tool to try Python packages - It's never been easier! :package:

try - It's never been easier to try Python packages try is an easy-to-use cli tool to try out Python packages. Features Install specific package versi

Simple CLI tool to track your cryptocurrency portfolio in real time.
Simple CLI tool to track your cryptocurrency portfolio in real time.

Simple tool to track your crypto portfolio in realtime. It can be used to track any coin on the BNB network, even obscure coins that are not listed or trackable by major portfolio tracking applications.

GitFun - A Simplified Automated CLI tool for GIT😃

GitFun A Simplified Automated CLI tool for GIT, It's for Lazy Developers and Newbies 😜 Table of contents GitFun Installation Usage Development Contri

Hurry is a CLI tool to speed setting up MoniGoMani HyperStrategy & co. #freqtrade #hyperopting #trading #strategy

Hurry is a CLI tool to speed setting up MoniGoMani HyperStrategy & co. #freqtrade #hyperopting #trading #strategy

CPOST is a CLI tool to assist with the proper sizing of Clara Deploy pipelines
CPOST is a CLI tool to assist with the proper sizing of Clara Deploy pipelines

CPOST (Clara Pipeline Operator Sizing Tool) Tool to measure resource usage of Clara Platform pipeline operators Cpost is a tool that will help you run

CLI tool to develop StarkNet projects written in Cairo

⛵ Nile Navigate your StarkNet projects written in Cairo. Installation pip install cairo-nile Usage Install Cairo Use nile to install a given version o

A simple cli tool to commit Conventional Commits

convmoji A simple cli tool to commit Conventional Commits. Requirements Install pip install convmoji convmoji --help Examples A conventianal commit co

Owner
Peter Baumgartner
Data Scientist by day, sleeping by night
Peter Baumgartner
Sink is a CLI tool that allows users to synchronize their local folders to their Google Drives. It is similar to the Git CLI and allows fast and reliable syncs with the drive.

Sink is a CLI synchronisation tool that enables a user to synchronise local system files and folders with their Google Drives. It follows a git C

Yash Thakre 16 May 29, 2022
[WIP]An ani-cli like cli tool for movies and webseries

mov-cli A cli to browse and watch movies. Installation This project is a work in progress. However, you can try it out python git clone https://github

null 166 Dec 30, 2022
A CLI for creating styled-components for React projects quickly

new-component Ian Cleary (iancleary) Description Welcome! This is a CLI for creating styled-components for React projects quickly. Note: I've rewrote

Ian Cleary (he/him/his) 1 Feb 15, 2022
💻VIEN is a command-line tool for managing Python Virtual Environments.

vien VIEN is a command-line tool for managing Python Virtual Environments. It provides one-line shortcuts for: creating and deleting environments runn

Artёm IG 5 Mar 19, 2022
flora-dev-cli (fd-cli) is command line interface software to interact with flora blockchain.

Install git clone https://github.com/Flora-Network/fd-cli.git cd fd-cli python3 -m venv venv source venv/bin/activate pip install -e . --extra-index-u

null 14 Sep 11, 2022
AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

AWS Interactive CLI - Allows you to execute a complex AWS commands by chaining one or more other AWS CLI dependency

Rafael Torres 2 Dec 10, 2021
Python-Stock-Info-CLI: Get stock info through CLI by passing stock ticker.

Python-Stock-Info-CLI Get stock info through CLI by passing stock ticker. Installation Use the following command to install the required modules at on

Ayush Soni 1 Nov 5, 2021
Yts-cli-streamer - A CLI movie streaming client which works on yts.mx API written in python

YTSP It is a CLI movie streaming client which works on yts.mx API written in pyt

null 1 Feb 5, 2022
Lsp Plugin for working with Python virtual environments

py_lsp.nvim What is py_lsp? py_lsp.nvim is a neovim plugin that helps with using the lsp feature for python development. It tackles the problem about

Patrick Haller 55 Dec 27, 2022