Coder Social home page Coder Social logo

kwameboame / envpath Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 13 KB

Envpath is a command line utility for saving and retrieving your development environments and paths.

License: MIT License

Python 100.00%
envpath envname python batch virtualenv command-line-tool command-line cmd python-script

envpath's Introduction

Envpath

Envpath is a command line utility for saving and retrieving your development environments and paths.

Features

  • Save your development environment and path
  • Open saved environments and their paths from any directory

Installation

Install this package with pip install envpath

Usage

This tool has only been tested on Windows.

There are currently only two commands available.

1) Saving an env

If you want to save a virtual environment, make sure you are in the working directory of that project and run the following command (replace envname with the name of your environment):

envpath --save envname

You can use -s instead of --save

After running this command, a batch file is saved (envname.bat) with the following command in it @echo off \ncmd /k "cd {path} && workon {env}"

2) Opening an env

To open a previously saved environment, just run the following command from any directory or path (replace envname with the name of your environment):

envpath --open envname

Here too, you can also use -o instead of --open

This command runs the matching batch file (envname.bat). It replaces cd path/to/project/directory && workon EnvName

Requirements & Dependencies

This package depends on the following python packages and will install them if you don't already have them installed:

  • virtualenv - Virtual Python Environment builder
  • Argparse - Already included in the python standard library from python >= 3.2

Just like these packages, Envpath is also open source software.

Development

Want to contribute code to this repo? You are welcome to do so.

Contact the Author

Reach me via: Email - Click to send mail Twitter @untamedthinking

License

MIT

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.