Skip to main content

Just another virtual environment creator

Project description

# JAVEC Just another virtual environment creator

## Installation

Install with pip

python3 -m pip install javec

## Usage

### No arguments If you run main.py with no additional arguments:

javec

It will create virtual environment in current working directory with the same name as current working directory, but with dot in front (hidden file in Linux). To run the virtual environment run:

source ./.virenvFolder/bin/activate

### -a Running main.py with -a argument:

javec -a

In addition to creation of virtual environment it causes creation of script shell named “.activator.sh”. Now activation of virtual environment will require running following code:

source .activator.sh

### -g, –gitignore Running main.py with -g argument:

javec -g

In addition to creation of virtual environment it causes creation of .gitignore file. The .gitignore file is a copy of gitignore_example provided in the repository. It was taken from [this repository](https://github.com/github/gitignore).

### –swap-gitignore <path> It is possible to change the gitignore_example from this repository file with one you commonly use by using –swap-gitignore path:

javec –swap-gitignore /path/to/your/own/.gitignore

If used with -g argument the first action will be swapping gitignore_example and then creation of .gitignore in the current working directory.

### -i, –install <packages> Install given packages. This argument will simply call the following command:

/path/to/virtualenvironment/bin/python3 -m pip install <packages>

Moreover packages names will be added to requirements_javec.txt file. There is no need to previously activate the virtual environment but you have to call it from the parent directory(where JAVEC created the virtual environment)

### -r, -u, –remove, –uninstall <packages> Uninstall given packages. This will simply call the following command:

/path/to/virtualenvironment/bin/python3 -m pip uninstall -y <packages>

Moreover packages names will be removed from requirements_javec.txt file. There is no need to previously activate the virtual environment but you have to call it from the parent directory(where JAVEC created the virtual environment)

### –versionRequirements Create requirements.txt file with package version number. This calls following command:

/path/to/virtualenvironment/bin/python3 -m pip freeze

The output is then filtered with package names installed with this tool (from requirements_javec.txt). requirements.txt will contain only package names that you installed using JAVEC.

### –print-gitignore This argument will print the contents of current gitignore_example that is used to generate .gitignore file with -g command

javec –print-gitignore

## Have fun!

[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

javec-0.1.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

javec-0.1.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file javec-0.1.4.tar.gz.

File metadata

  • Download URL: javec-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for javec-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5cad034bb00441074dae28b37cab37d19243e6af0ad0ff9674a8a716f89529ff
MD5 ebbf0655718f96a824ff87778ef10b00
BLAKE2b-256 a0ddd5f4fe74bfb2edb925688a3aa258e04c3da017a90befb3f1e3d3cb2e5279

See more details on using hashes here.

File details

Details for the file javec-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: javec-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

File hashes

Hashes for javec-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 98c39a62e99b49f84bc545962aa0fc31ff4b8ba6378464e6fd4862dc3608f3c8
MD5 7b657d5dda676918d6a6c1a4cc472e0d
BLAKE2b-256 6d295a94a456c8a799a8c6dba625485f43bfe77dd93d48041c8e8e7a8258a686

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page