npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flowwright/plugin-python

v0.2.0

Published

FlowWright shared library — standard Python install/format/lint/typecheck/test/build/publish stages (uv/pip/poetry).

Readme

@flowwright/plugin-python

The batteries-included Python CI lifecycle, ready to drop in — typed, composable stage builders that carry you from install → format → lint (Ruff) → typecheck (mypy) → test (pytest) → build (packaging) → publish. It's a reusable shared library that's a normal npm package you can read and pin, and it speaks pip (default), uv, and poetry out of the box. Good defaults get you going; the optional stages (format/typecheck/build/publish) stay off until you want them.

Whole pipeline

import { pythonServicePipeline } from "@flowwright/plugin-python";

export default pythonServicePipeline({
  packageManager: "uv",
  typecheck: true,
});

Compose into your own

Wrap the stages in group("py", …) to namespace their ids so they don't collide with other shared libraries:

import { pipeline, group } from "@flowwright/core";
import { pythonStages } from "@flowwright/plugin-python";

export default pipeline({
  name: "billing",
  stages: [
    ...group("py", pythonStages({
      packageManager: "uv",
      format: true, // ruff format --check
      typecheck: true, // mypy
      build: true, // sdist + wheel → dist artifact
      publish: true, // uv publish, binds a PyPI token
    })),
  ],
});

Options

| Option | Default | Notes | |---|---|---| | packageManager | "pip" | pip (requirements.txt), uv (uv.lock), poetry (poetry.lock) | | cache | true | Caches the in-project .venv keyed by the lockfile (uv/poetry only; pip has none) | | install | true | false to skip, or a string for a custom command | | format | false | ruff format --check . | | lint | true | ruff check . | | typecheck | false | mypy . | | test | true | pytest. For coverage: test: "pytest --cov" | | build | false | python -m build / uv build / poetry build | | artifactPath | "dist" | build output uploaded as an artifact | | publish | — | adds a Publish stage; true or { credential? } |

Every stage toggle accepts true (default command), false (skip), or a string (a custom shell command). Tools run through the package manager's runner (uv run … / poetry run …; bare for pip). Stages carry explicit ids and are wired with needs: checks depend on install, build depends on the checks, and publish depends on build.

Publish auth

The Publish stage binds a PyPI-token credential (default id pypi-token) to the tool's token env var — TWINE_PASSWORD (pip/twine), UV_PUBLISH_TOKEN (uv), or POETRY_PYPI_TOKEN_PYPI (poetry). Credentials are resolved by the server/worker — the local flow run does not inject them.

Combinations that are rejected

An option this configuration cannot honor throws at plan time rather than silently doing nothing. Only an explicitly passed value counts.

| Passed | Why it throws | | --- | --- | | artifactPath with build off | nothing would be produced — and build defaults to false | | cache: true with install: false | there is nothing to cache | | cache: true with packageManager: "pip" | pip has no in-project venv to cache | | name to pythonStages() | only pythonServicePipeline() uses it |

pythonStages({ packageManager: "pip" }) is fine — cache defaults to true, and a default the config can't use is narrowed silently.