pypro is a simple python project maker script which uses poetry & pyenv to setup your own customizable dev environment.
- poetry - https://python-poetry.org/docs/
- pyenv - with the python version that you want to use
- Linux or Windows (with powershell) OS
Download the repository
git clone https://github.com/djplt/pypro.gitYou also need to add the scripts to your path
- Adding the script to your path
- Open "edit environment variables"
- Add the root of this repo to your "PATH" variable
- Setting the execution policy on the script
- Right click the file "pypro.ps1" and select properties
- On the General tab, under Security, click the Unblock checkbox.
- Click OK.
Restart your cmd window.
- Adding the script to your path Adding in your repo directory name
echo 'export PATH="$PATH:REPO_ROOT_DIRECTORY' >> ~/.bashrc- Setting the execution policy on the script
chmod +x ./pypro.shRestart your cmd window.
Navigate in your cmd prompt to where you want to build your python project
pyproThe script will then walk you through setting up your project
For libraries used in your code
poetry add numpyFor libraries used for developing your code (e.g linters)
poetry add --dev blackSee poetry for more info.
Open the created folder in VSCode.
Run Task (Terminal->Run Task) Run Jupyter to start a jupyter server to play around in your virtual environment
Open the terminal with Ctrl+' should open the terminal with your virtual environment
Ctrl+ to execute (either current file or whole module)
- Give option for user to setup python virtual environment without using pyenv