Skip to main content

Package and project manager for the PyReact ecosystem

Project description

PRPM

The package manager for the PyReact ecosystem.

CI PyPI Python License: MIT Docs

Create projects, install isolated dependencies, lock versions, and run scripts with a single tool.

Why PRPM?

PyReact projects are Python projects. PRPM builds on that ecosystem instead of creating an incompatible registry:

  • it uses the standard pyproject.toml as its manifest;
  • resolves packages from PyPI, including pyreact-framework;
  • automatically creates an isolated .venv;
  • generates a reproducible prpm.lock;
  • provides a familiar experience for npm users;
  • remains compatible with pip, build backends, and Python editors.

Installation

PRPM requires Python 3.9 or newer.

python -m pip install prpm

Install the development version directly from GitHub:

python -m pip install git+https://github.com/wanbnn/prpm.git

Set up a local development checkout:

git clone https://github.com/wanbnn/prpm.git
cd prpm
python -m pip install -e ".[dev]"

Quick start

Create and prepare a PyReact application:

prpm create my-app
cd my-app
prpm run dev

The command creates a complete SSR dashboard, installs pyreact-framework inside .venv, and writes the lockfile. The generated project includes a development server, interactive API, light and dark themes, static build, and tests.

For an existing project:

git clone https://github.com/wanbnn/agenticflow.git
cd agenticflow
prpm install
prpm exec agentic-flow

PRPM reads the dependencies already declared in [project].dependencies.

Commands

Command Description
prpm create <name> Create and install a PyReact application
prpm init [-y] Initialize a pyproject.toml
prpm install / prpm i Resolve, install, and update prpm.lock
prpm install --frozen Install exactly from the lockfile; ideal for CI
prpm add <package> Install and save a dependency
prpm add -D <package> Install and save a development dependency
prpm remove <package> Remove a dependency
prpm update [packages] Update all or selected dependencies
prpm list [--all] List direct or all dependencies
prpm run [script] List or run scripts
prpm exec <command> Run a binary inside .venv
prpm test Shortcut for the test script
prpm info <package> Query package metadata on PyPI
prpm lock [--check] Generate or validate the lockfile
prpm login / logout Store or remove a token from the keyring
prpm whoami Show the active credential and key
prpm key <action> Generate, show, or rotate the Ed25519 key
prpm pack Build, validate, and sign a wheel and sdist
prpm publish Package and publish to PyPI
prpm verify <target> Verify a local or published release
prpm doctor Show the environment status

Available aliases are i, rm, up, and ls.

Dependencies

Dependency specifiers follow Python standards:

prpm add httpx
prpm add "fastapi>=0.115,<1"
prpm add -D "pytest>=8"
prpm add "component @ git+https://github.com/user/component.git"

When no version is supplied, PRPM saves the minimum resolved version, such as httpx>=0.28.1.

Scripts

Declare scripts in the manifest:

[tool.prpm.scripts]
dev = "pyreact dev"
build = "pyreact build"
test = "python -m pytest"
serve = ["python", "-m", "my_app"]

Run them without manually activating .venv:

prpm run build
prpm test -q
prpm exec python --version

Manifest and lockfile

The manifest remains a valid pyproject.toml:

[project]
name = "my-app"
version = "0.1.0"
requires-python = ">=3.9"
dependencies = ["pyreact-framework>=1.0.5"]

[project.optional-dependencies]
dev = ["pytest>=8"]

Commit prpm.lock to version control. It records the exact version, source, and index-provided hashes for every package. In CI, use:

prpm install --frozen
prpm test

Frozen mode fails before installation if the manifest and lockfile differ.

Publishing packages

PRPM uses PyPI as its registry. Create a token at https://pypi.org/manage/account/token/ and sign in:

prpm login
prpm whoami

The token is entered without terminal echo and stored in the system keyring. It is never written to the project or passed on the command line. The first login also creates an Ed25519 identity:

prpm key show
prpm key rotate

Prepare and verify a release without publishing it:

prpm pack
prpm verify dist

The dist/ directory will contain the wheel, source distribution, prpm-manifest.json, and prpm-manifest.sig. The manifest records SHA-256 hashes, sizes, dependencies, and the public key; the signature authenticates that manifest.

Publish with:

prpm publish

PRPM rebuilds the artifacts, runs twine check, validates the signature, uploads the wheel and sdist, and compares remote hashes through the PyPI API. Use --no-build for an already packed release or --dry-run to validate the entire flow without uploading.

TestPyPI is also supported:

prpm login --repository testpypi
prpm publish --repository testpypi

For CI, provide PRPM_PYPI_TOKEN or PRPM_TESTPYPI_TOKEN as a secret environment variable. When no keyring is available, pack creates an ephemeral Ed25519 identity for that release.

Verify any published package:

prpm verify prpm
prpm verify "prpm==0.3.0"

Remote verification compares files with PyPI SHA-256 values and validates every wheel RECORD entry. PyPI remains the authority for maintainer and package-name ownership.

Development

python -m pip install -e ".[dev]"
python -m pytest
python -m prpm --help

See CONTRIBUTING.md for the contribution workflow and the complete documentation.

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prpm-0.3.0.post3028994274001.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prpm-0.3.0.post3028994274001-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file prpm-0.3.0.post3028994274001.tar.gz.

File metadata

  • Download URL: prpm-0.3.0.post3028994274001.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for prpm-0.3.0.post3028994274001.tar.gz
Algorithm Hash digest
SHA256 66980c0b74a5bb4dffc43bbabe61f61f16cf53be6aa26486ddabe8d8649b6352
MD5 9b484e7e5f1cf732c8b04d2e03a1dd9e
BLAKE2b-256 13b157c6bbe8a91546eb76baafe88b26bacbb9bd67311ee4a9a3367e26da8ad3

See more details on using hashes here.

Provenance

The following attestation bundles were made for prpm-0.3.0.post3028994274001.tar.gz:

Publisher: publish.yml on wanbnn/prpm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prpm-0.3.0.post3028994274001-py3-none-any.whl.

File metadata

File hashes

Hashes for prpm-0.3.0.post3028994274001-py3-none-any.whl
Algorithm Hash digest
SHA256 5732fd102b8f9622e8527fa86139ea13cfe68a63e4e1329045ed1bfe23af9292
MD5 1f7b791f6df893a5a9a0000de2097633
BLAKE2b-256 ea015f455a0311dedab2956a1eb8f0ec8c404dea07641f1151939fa6903a9ce7

See more details on using hashes here.

Provenance

The following attestation bundles were made for prpm-0.3.0.post3028994274001-py3-none-any.whl:

Publisher: publish.yml on wanbnn/prpm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page