psp is a blazing fast command line utility to scaffold your Python project, written in Rust.
- โก๏ธ 1-100x faster compared to other scaffolding tools
- ๐ ๏ธ
pyproject.tomlsupport - ๐ค Python 3.14 compatibility
- ๐ Scaffolding file and folder structures for your Python project
- ๐๏ธ Unit-test and pytest support
- ๐งช Create a virtual environment
- ๐ง Automagically dependencies installation
- ๐ช Add build and deploy dependencies to distribute the package
- ๐ tox configuration supports and remotes CI like CircleCI, TravisCI, GitHub Actions and Gitlab CI/CD
- โจ๏ธ MkDocs and Sphinx documentation support
- ๐งฐ Initialize git repository and
gitignorefile - ๐ GitHub and Gitlab remote repository support
- ๐ Create
README,LICENSE,CONTRIBUTING,CODE_OF_CONDUCTandCHANGESfiles - ๐ณ Create
DockerfileandContainerfilefor your project - ๐ก Can use quick, simple and full argument for rapid configuration
- ๐พ Create
$HOME/.psp.envand$PWD/.envfiles with your customizations - ๐๏ธ Can use some
PSP_variables to control your defaults - ๐ฆ Support
pip,condaanduvpackage manager - ๐งฎ Support
hatch,maturinandpoetrybuilder - ๐ฟ Stop, pause and resume project creation when you want; see Resume
The result is:
$> tree dream/ --filelimit=19 -a
dream # Project folder
โโโ LICENSE.md # License file
โโโ pyproject.toml # Python package configuration file
โโโ README.md # Readme file
โโโ CHANGES.md # List of changes
โโโ .circleci # CI folder
โ โโโ config.yml # CI configuration file
โโโ CODE_OF_CONDUCT.md # Code of Conduct
โโโ CONTRIBUTING.md # Contributing guide lines
โโโ Containerfile # Standard container file for build image
โโโ Dockerfile # Docker container file for build image
โโโ Makefile # Makefile for command make; make help
โโโ requirements.txt # Dependencies list used by third programs
โโโ docs # Documentation folder: Sphinx/MKDocs
โ โโโ build
โ โโโ make.bat
โ โโโ Makefile
โ โโโ source
โ โโโ conf.py
โ โโโ index.rst
โ โโโ _static
โ โโโ _templates
โโโ .git # Git folder
โ โโโ branches
โ โโโ config
โ โโโ description
โ โโโ HEAD
โ โโโ hooks [14 entries exceeds filelimit, not opening dir]
โ โโโ info
โ โ โโโ exclude
โ โโโ objects
โ โ โโโ info
โ โ โโโ pack
โ โโโ refs
โ โโโ heads
โ โโโ tags
โโโ .github # Github issue and merge templates
โ โโโ ISSUE_TEMPLATE
โ โ โโโ bug.yml
โ โ โโโ config.yml
โ โ โโโ feature.yml
โ โโโ PULL_REQUEST_TEMPLATE
โ โโโ pull_request_template.md
โโโ .gitignore # Git ignore file
โโโ .psp.log # Update log (if enabled)
โโโ .dockerignore # Docker ignore file
โโโ .containerignore # Container ignore file
โโโ dream # Python package
โ โโโ __init__.py
โโโ tests # Tests package for modules
โ โโโ __init__.py
โ โโโ test_dream.py # Test module "test_<name_python_package>"
โโโ tox.ini # Tox configuration files
โโโ samples
โ โโโ dream_sample.py # Sample code of package "<name_python_package>_sample"
โโโ .venv # Virtual environment
โโโ bin [33 entries exceeds filelimit, not opening dir]
โโโ include
โ โโโ python3.14
โโโ lib
โ โโโ python3.14
โ โโโ site-packages [68 entries exceeds filelimit, not opening dir]
โโโ lib64 -> lib
โโโ pyvenv.cfg
29 directories, 44 filesAnd git status is:
$> git status
On branch main
No commits yet
...
$> git remote get-url origin
git@github.com:MatteoGuadrini/test.gitFor help message, type:
$> psp help
psp (Python Scaffolding Projects), version 0.7.0
usage: psp [shortcut]
ie: psp [help|quick|simple|full]
shortcut:
help: print this help message
quick: enables a rapid setup (few options included)
simple: enables a basic setup (only Python package)
full: enables a full setup (all options)
links:
repository: https://github.com/MatteoGuadrini/psp
documentation: https://psp.readthedocs.io/
variables:
["PSP_GIT","PSP_GIT_REMOTE","PSP_GIT_USER"]
environments:
Python version: 3.14Note
More details for shortcuts, variables and other things, available in official documentation: psp docs
psp is simple, fast, effective, declarative, and supports Python and the entire ecosystem of tools written for it. Rather than replacing it, psp seeks to integrate and provide a useful scaffold for the end user.
- cookiecutter: Templates are prescriptive by design. Cookiecutter enforces a particular project structure and conventions, which may not align with your or your organization's preferences. If a template's opinions don't match your needs, you're forced to either choose a different template or heavily modify an existing one. This can become tedious when you need something slightly different from what's available.
pspis dynamic; scaffold what you need. - PyScaffold: PyScaffold doesn't manage virtual environments directly. You have to manually create and activate a virtualenv or use external tools like
pipenv,poetry,conda, orpyenv. While PyScaffold documents integrations with these tools, it doesn't provide a unified interface for environment management likepspdo.
psp asks only what you need. By configuring a few environment variables, you can automate any project; in seconds, not hours.
psp has four mandatory prerequisetes installed on own machine:
gitpython3pipcurl(Linux/MacOS only)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python gitwinget install -e --id Git.Git
winget install -e --id Python.Python.3.14sudo apt install -y python3 python3-pip git curlsudo dnf install -y python3 python3-pip git curlsudo pacman -Qi python3 python3-pip git curlTo install with pip:
pip install psp-scaffoldTo install compiled file into your machine, download it:
For all users (required root access):
sudo -i
curl -L https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp_linux -o /usr/local/bin/psp
chmod +x /usr/local/bin/pspFor current user:
curl -L https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp_linux -o $HOME/.local/bin/psp
chmod +x $HOME/.local/bin/pspsudo su -
curl -L https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp_macos -o /usr/local/bin/psp
chmod +x /usr/local/bin/pspFor all users (required Administrator):
iwr -OutFile "C:\Windows\system32\psp.exe" "https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp_windows"For current user:
mkdir "$($Env:USERPROFILE)\bin"
[System.Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";$($Env:USERPROFILE)\bin","USER")
iwr -OutFile "$($Env:USERPROFILE)\bin\psp.exe" "https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp_windows"If you want to install OS package, follow instructions for your Operating System:
For Debian/Ubuntu:
curl -L https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp.deb -o psp.deb
sudo dpkg -i psp.debFor Fedora/Mageia/OpenSuse:
sudo rpm -i https://github.com/MatteoGuadrini/psp/releases/download/v0.7.0/psp.rpmInstead, if you compile this project as own, follow this steps:
git clone https://github.com/MatteoGuadrini/psp.git
cd psp && cargo build --release && sudo cp -v target/release/psp /usr/local/bin/psp && chmod +x /usr/local/bin/pspor build with script:
git clone https://github.com/MatteoGuadrini/psp.git
cd psp
# Build
./build_psp.sh
# Copy binary
sudo cp -v target/release/psp /usr/local/bin/psp && chmod +x /usr/local/bin/psp
# Install rpm
sudo rpm -i /tmp/psp_rpm/psp.rpm
# Instal deb
sudo dpkg -i /tmp/psp_deb/psp.debIf you want to use psp in a containerized environment, follow this:
# Clone...
git clone https://github.com/MatteoGuadrini/psp.git
# Build...
cd psp && docker build . -t psp:latest
# Run...
docker run -it --rm -v ~/python_projects:/psp:z localhost/psp:latestYou can use .env files and environment variables:
# .env file
docker run -it --rm -v ~/python_projects:/psp:z -v ~/python_projects/.env:/psp/.env localhost/psp:latest
# PSP_ environment variables
docker run -it --rm -v ~/python_projects:/psp:z -e "PSP_GIT=true" -e "PSP_PYVER=1.0.0" localhost/psp:latest-
windowsoperating system support - Container support for psp program
-
condaanduvsupport -
hatch,maturinandpoetrybuild support - updating/merging project
- Gitlab CI/CD and GitHub Actions
- templating files support
- templating custom files support
- universal installation script
- command line flags support
- YAML configuration file
psp is an open source project. Any contribution, It's welcome.
A great thanks.
For donations, press this
For me
For Telethon
The Telethon Foundation is a non-profit organization recognized by the Ministry of University and Scientific and Technological Research. They were born in 1990 to respond to the appeal of patients suffering from rare diseases. Come today, we are organized to dare to listen to them and answers, every day of the year.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest youโll be creating employment for local families and restoring wildlife habitats.
Thanks to Jim Blandy, Jason Orendorff and Nora Tindall for writing the Programming Rust book that make up my Rust foundation.
Thanks to Tim McNamara for writing the Rust in Action book.
Thanks to Zed IDE and for license of RustRover offered by JetBrains.
Special thanks go to my wife, who understood the hours of absence for this development. Thanks to my children, for the daily inspiration they give me and to make me realize, that life must be simple.
Thanks, Rust Community!

