Skip to content

shourovfoisal/python-bootstrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python VENV Bootstrapper Code

To run:

  1. Create a shell file at the root of your project. For example main.sh.
  2. Make it executable using
chmod +x main.sh
  1. Add a dependencies.txt file at the same level of the main.sh file. Write your dependencies in it. A sample is available in this repository.
  2. Add the following line to the beginning of the shell file
source <(curl -fsSL https://raw.githubusercontent.com/shourovfoisal/python-bootstrapper/refs/heads/main/main.sh)
  1. After the previous line, write your code that executes your python file. For example:
python3 script.py
  1. A venv will be created with the desired dependencies, and your code will be executed right after it.

About

A simple code chunk to initiate a python project with its depencencies

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published