Metadata-Version: 2.5
Name: projlabs
Version: 0.2.0
Summary: Set up ProjLabs projects on your computer, run their checks and keep your progress in sync.
License: Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# projlabs

The ProjLabs command-line tool. It sets a project up on your computer, starts its lab, checks that your computer
can run it, runs a step's checks and saves the result to your progress on ProjLabs.

It needs Python 3.10 or newer and nothing else; the labs need Docker Desktop.

## Install

```sh
pipx install projlabs          # or: uv tool install projlabs
```

From this repository: `pipx install ./cli`.

## Use

```sh
projlabs login                       # opens the website: approve the code shown, no password typed here
projlabs start python-data-foundations
cd projlab-python-data-foundations
projlabs check                       # after each step
```

| Command | What it does |
|---|---|
| `projlabs login` / `logout` / `whoami` | Sign in through the website, forget the sign-in, show who you are |
| `projlabs start SLUG [--dir PATH] [--no-up]` | Start the project, download its files and checks, start the lab, show the first step |
| `projlabs doctor` | Check Docker, memory, disk, ports and sign-in, with a one-line fix for each problem |
| `projlabs check [STEP] [--all]` | Run the checks (in the lab when it runs) and save the result to your progress |
| `projlabs submit [STEP]` | Upload this folder to ProjLabs and have the step checked there; prints the results |
| `projlabs up` / `down` / `status` | Start or stop the lab, or show it and where you are in the project |
| `projlabs hint [STEP] [--solution]` | The next rung of the step's help ladder in the terminal; the full solution only when asked |
| `projlabs steps` / `open [STEP]` | List the steps, open a step's page in your browser |
| `projlabs update` | Download the checks again after the project gets a new version |

A check you run here counts like ticking "I see the expected result" on the step page. It never counts as
verified: that takes ProjLabs running the checks itself on the code in your repository.

Your sign-in is kept in `~/.config/projlabs/config.json` (on Windows, `%APPDATA%\projlabs`), readable only by you.
Remove a computer's access on the website under Account > Signed-in computers. `PROJLABS_API_URL` points the
tool at another ProjLabs server.
