Skip to main content

Launch all your programs and scripts with one command

Project description

LaunchEnv

v0.0.4

About

Command line application created in python to execute your programs or scripts in one command.
Launch your work/misc environment with just one command.
Programs and commands are stoerd in json launch file.

  • PATH for data storage is given in /launch/utils/utils.py

Installation

From PyPI

pip install launchenv
  • For linux
sudo pip3 install launchenv

From github

# Clone project
git clone https://github.com/a-tharva/LaunchEnv && cd LaunchEnv

# Installation
python3 setup.py install

# Run setup
launch

Use

>launch -build <environment_name>

>launch -a <environment_name>
Enter name of program to add this environment: foo
Enter path of program executable: "D:\foo\foo.exe"   or   Drag exe to window the path will appear

For script -
>launch -a <environment_name>
Enter name of program to add this environment: foo
Enter path of program executable: python "D:\foo\foo.py"   or   python Drag exe to window the path will appear

  script with output
  windows - 
    : start cmd /K python 'D:\foo\foo.py'
  linux - 
    : 

For advance use -
>launch -a <environment_name>
Enter name of program to add this environment: opera incognito
Enter path of program executable: "D:\foo\opera.exe" -incognito  or   Drag exe to window the path will appear -incognito

>launch -run <environment_name>

Usage

 _                           _     _____
| |    __ _ _   _ _ __   ___| |__ | ____|_ ____   __
| |   / _` | | | | '_ \ / __| '_ \|  _| | '_ \ \ / /
| |__| (_| | |_| | | | | (__| | | | |___| | | \ V /
|_____\__,_|\__,_|_| |_|\___|_| |_|_____|_| |_|\_/

usage: launch [-h] [-build] [-a] [-sh] [-t] [-e] [-remove] [-run] [-ls]
              [-purge]

Run environment

optional arguments:
  -h, --help           show this help message and exit
  -build , --build     Create new work environment/launch file
  -a , --add           Add program to existing launch file
  -sh , --show         Show all program in launch file
  -t , --time          Time in seconds between execution
  -e , --exclude       Run program except
  -remove , --remove   Remove program from given launch file
  -run , --run         Run environment
  -ls, --list          List all available launch file
  -purge , --purge     delete the work launch file

Development

Still working on this project.

  • Next version will ask path to store the launch data.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/Feature)
  3. Commit your Changes (git commit -m 'Add some Feature')
  4. Push to the Branch (git push origin feature/Feature)
  5. Open a Pull Request

License

Distributed under the MIT License. License

Change Log

0.0.1 (28/12/2021)

  • First Release

0.0.2 (26/1/2022)

  • Changed structure

0.0.3 ()

  • Added function for different os
  • Changed file path for launch files

0.0.4 ()

  • Added function for sleep time between execution
  • Addef function to exclude program at launch time

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

launchenv-0.0.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distributions

launchenv-0.0.4-py3.7.egg (14.7 kB view details)

Uploaded Source

launchenv-0.0.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file launchenv-0.0.4.tar.gz.

File metadata

  • Download URL: launchenv-0.0.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for launchenv-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9410ff99abedb3b2b269035f2356761208b0b9bae9a687332826a209aa65af01
MD5 74c3ab901f6cb037f1c84f5001a2dce8
BLAKE2b-256 ad95e00b42cb7f8e91f22bf535ed36df26c4fb04d34db02c895ca94bc7bf276b

See more details on using hashes here.

File details

Details for the file launchenv-0.0.4-py3.7.egg.

File metadata

  • Download URL: launchenv-0.0.4-py3.7.egg
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for launchenv-0.0.4-py3.7.egg
Algorithm Hash digest
SHA256 b4a3e9541d5e2988e82693002253303786f99965083fedb69339dee2dcabdc65
MD5 15809961a9826207018ecd10e155fc3d
BLAKE2b-256 d09e4bbea5da67dc45015c8ca48a6ba3eb1aeaf963348cc4d212b91f254b6bc0

See more details on using hashes here.

File details

Details for the file launchenv-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: launchenv-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for launchenv-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eadaaa03dc8ced7a7bbdef5b954ed8c90cad22eecdd2d64f3907c942ae7ed3fc
MD5 a968f04dd3443a0ca05eac172f5314a9
BLAKE2b-256 cd08943b0db83f8072444ed0899faf56349e7ea9e98ff7fb36722e1f52fa0d34

See more details on using hashes here.

Supported by

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