Skip to content

Quick Start

Project Setup

To create a new project use the init command

spm init my-project

The following structure will be created:

my-project/
├── .gitignore
├── pyproject.toml
├── README.md
└── src
    └── my_project
        └── __init__.py

Dependencies

Add

To add dependencies use the add command

spm add pandas

Add with Group

To add dependencies with group use the --group option

spm add -g dev mypy

Run Command

Warning

This will only work for binaries installed inside the virtualenv, like your project script

To run commands using pspm use the run command. This will automatically read your .env file

spm run my-project

Existing Project

For installing dependencies from a existing project use the sync command. This will install all the dependencies and the package itself

spm sync