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
- Host: GitHub
- URL: https://github.com/shourovfoisal/python-bootstrapper
- Owner: shourovfoisal
- Created: 2025-09-01T05:13:02.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T05:58:59.000Z (4 months ago)
- Last Synced: 2025-09-01T07:39:07.341Z (4 months ago)
- Topics: bootstrapper, dependency-installer, linux, python, shell-script
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.