An open API service indexing awesome lists of open source software.

https://github.com/shourovfoisal/python-bootstrapper

A simple code chunk to initiate a python project with its depencencies
https://github.com/shourovfoisal/python-bootstrapper

bootstrapper dependency-installer linux python shell-script

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## 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
```shell
chmod +x main.sh
```
3. 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.
4. Add the following line to the beginning of the shell file
```shell
source <(curl -fsSL https://raw.githubusercontent.com/shourovfoisal/python-bootstrapper/refs/heads/main/main.sh)
```
5. After the previous line, write your code that executes your python file. For example:
```shell
python3 script.py
```
6. A venv will be created with the desired dependencies, and your code will be executed right after it.