Skip to main content

paint-tracker

Paint and stain shelf tracker with:

  • FastAPI API
  • SQLite auto-configured database (no setup required)
  • React + Vite frontend bundled into the Python package
  • Self-updating – checks PyPI for new versions on every start

🚀 One-click install on Raspberry Pi Zero 2 W

Run this single command on the Pi (requires Python 3.11+ and internet access):

bash <(curl -fsSL https://raw.githubusercontent.com/FlaccidFacade/paint-tracker/main/scripts/install_pi.sh)

The script will:

  1. Install paint-tracker from PyPI.
  2. Create and enable a systemd service that starts automatically on every boot.
  3. Open port 8000 in the firewall (if ufw is active).
  4. Print the local URL where the UI is reachable (e.g. http://raspberrypi.local:8000).

After installation, the tracker is accessible from any device on your network.


📦 Install from PyPI (any machine)

pip install paint-tracker
paint-tracker

On first launch Paint Tracker will:

  • Check PyPI for a newer version and prompt you to upgrade.
  • Auto-create the SQLite database at ~/.local/share/paint-tracker/paint_tracker.db.
  • Start the web server on http://0.0.0.0:8000.

CLI options

paint-tracker --help

  --host HOST            Bind host (default: 0.0.0.0)
  --port PORT            Bind port (default: 8000)
  --no-update-check      Skip the PyPI update check on startup

🔧 Development setup

Backend

cd backend
pip install -r requirements.txt
pip install -e ..          # install paint_tracker package in editable mode
uvicorn paint_tracker.main:app --reload

DATABASE_URL defaults to ~/.local/share/paint-tracker/paint_tracker.db. Override for PostgreSQL:

export DATABASE_URL='postgresql+psycopg://user:password@localhost:5432/paint_tracker'

Run tests:

cd backend
pytest

Frontend (standalone dev server)

cd frontend
npm install
npm run dev

Optional API override:

export VITE_API_BASE_URL='http://localhost:8000/api'

📤 Publishing to PyPI

Build the frontend, bundle it into the Python package, and publish in one step:

pip install build twine
bash scripts/build_and_publish.sh          # publish to PyPI
bash scripts/build_and_publish.sh --test   # publish to TestPyPI

Included behavior

  • Create paints with required room, shelf_level, shelf_depth
  • Room suggestions while typing; new room names are saved automatically
  • Search paints by room, color, and coordinates
  • Edit existing paints from the list (✏️ button)
  • Confirmation/decline controls use green check and red X buttons

Metadata

Release files for paint-tracker 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paint-tracker 0.1.0
File Size Uploaded Provenance Actions
paint_tracker-0.1.0.tar.gz 75.0 kB With provenance Details for paint_tracker-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paint-tracker 0.1.0
File Interpreter ABI Platform Actions
paint_tracker-0.1.0-py3-none-any.whl Python 3 none any Details for paint_tracker-0.1.0-py3-none-any.whl

Total release size: 150.8 kB

Release files / paint_tracker-0.1.0.tar.gz

Download URL paint_tracker-0.1.0.tar.gz
Size 75.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c747e196141451a933e1cbfef4549f41c9719afa7cc67fb863d1bac72031814a
BLAKE2b-256 checksum
How to use checksums
c52ec8bbe21941689dde498afa77e18f308022759ed3bb4aa3edd4fe243f438c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 11, 2026.

Transparency log

Release files / paint_tracker-0.1.0-py3-none-any.whl

Download URL paint_tracker-0.1.0-py3-none-any.whl
Size 75.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66bace186f53bcb9eb696d8e20a6a804073894b070a3bd8d54bd63c312e23a60
BLAKE2b-256 checksum
How to use checksums
cd88f08b9dbf17c6f5a8425f968f99ba7e36a402ace960db9f0579dddc17d901
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 11, 2026.

Transparency log

Security for paint-tracker 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.

Select from 2 files

Attestation for paint_tracker-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 May 11, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page