Parking Radio tools
Tools that automate operating Parking Radio, an independent non-profit radio in Québec City.
They're commands of parkingradio, a command-line tool that acts on the site on behalf of an admin. The site itself
is in parkingradio/website.
Design
See docs/design for what the tool does: its conventions, and each of its commands.
Installing
With uv:
uv tool install parkingradio
parkingradio --help
uv tool upgrade parkingradio installs the latest version. uv tool install parkingradio==0.1.0 installs a given
version, e.g. to go back to the previous one. uv tool upgrade then stays on it: uv tool install parkingradio@latest
installs the latest version again. The releases list the versions.
Connecting to the site
The tool acts on the site whose address PARKINGRADIO_SITE gives, e.g. https://parking.radio for production, or
--site, before the command, e.g. parkingradio --site http://localhost:5173 auth login for a development server. It
has no default, so that it never acts on production by accident. Each site has its own connection.
It acts on the site as an admin, who connects it once, from their browser, on the computer it runs on:
parkingradio auth login
This opens the site's page where you allow "Parking Radio CLI" to act as you, once logged in as an admin. If the browser doesn't open, open the link that the command shows. The tool then keeps the connection's tokens in your system's credential store (the Windows Credential Manager, the macOS Keychain, or the Secret Service on Linux).
parkingradio auth status # whether the tool is connected, and whether the connection works
parkingradio auth logout # disconnects the tool, and deletes its tokens
The connection ends when it's disconnected from the site's Admins page, under "Vos applications connectées", or after 90
days without being used: run parkingradio auth login again.
Development
The tool is a Python package, parkingradio, in src/parkingradio, managed with uv, which installs the Python it needs
when it isn't there. Its dependencies are locked in uv.lock.
uv sync # creates .venv, with the tool and the development dependencies
uv run parkingradio --help # runs the tool from the checkout
uv run pytest # runs the tests
uv run ruff check # lints
uv run ruff format # formats
CI runs these checks: see .github/workflows/test.yml. The tests never reach a site, open a browser, or use the
system's credential store: they use fakes of them (see tests/conftest.py). To try the tool on a development server of
the site (see the site's README), use --site or PARKINGRADIO_SITE, as in Connecting to the
site.
Releasing
A release publishes the version in pyproject.toml to PyPI, from which
admins install the tool. Only release once what it relies on is deployed on the production site.
- Bump the version in a PR, e.g. with
uv version --bump minor, which also updatesuv.lock, and merge it. - Tag the merged commit with the version, and push the tag:
git switch main && git pull git tag v0.2.0 git push origin v0.2.0
- The tag runs
.github/workflows/release.yml, which checks and builds the release, then waits for a maintainer to approve publishing it, in the repository'spypienvironment. Once it's published, it creates the tag's GitHub Release, with notes generated from the PRs merged since the previous one.
Metadata
Release files for parkingradio 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| parkingradio-0.1.0.tar.gz | 10.0 kB | With provenance | Details for parkingradio-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| parkingradio-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for parkingradio-0.1.0-py3-none-any.whl |
Total release size: 22.8 kB
Release files / parkingradio-0.1.0.tar.gz
| Download URL | parkingradio-0.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9703edaadd5e51c30765444ca5d70c3ee3c99784bdc15beca668e8890bed4fa7
|
|
BLAKE2b-256 checksum How to use checksums |
4c68ba7de81add7a1cfd6e51f7bc31e9cabe2529ab66d747afab54e52d5a4533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / parkingradio-0.1.0-py3-none-any.whl
| Download URL | parkingradio-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
31e339f9a1403fd98e49b55f057c60af24f29ce7ffe852250c964f6cc355fe0e
|
|
BLAKE2b-256 checksum How to use checksums |
5a1ce58f5e60f8cfd1fdac3b42490d1009294178534dc261e750aba1acaf060c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for parkingradio 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for parkingradio-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.