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

@srobroek/pi-lang-python

v0.13.0

Published

Python skills: uv, ruff, mypy or pyright and pytest checks, testing, packaging, typing and pydantic, SQLAlchemy and Alembic, and profiling.

Readme

lang-python

Python skills: the lock, lint, type-check and test commands to run through the shell tool and in CI, how to report a step that could not run, pytest and Hypothesis idioms, package layout, typing and pydantic boundary models, SQLAlchemy and Alembic, and the profiler and benchmark tooling. Formatting is OpenCode's built-in formatter ("formatter": true); see docs/formatters.md.

Replaces the Python half of the former languages plugin, which ported the omp-plugins python plugin (its python_quality tool is not ported).

Install

Install the Pi package from npm:

pi install npm:@srobroek/pi-lang-python
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/lang-python/opencode'

Claude Code install the same skills from this repository's marketplace:

claude plugin install lang-python@harness-plugins

Skills

Only lang-python is listed to the model in OpenCode: it is a router whose body maps each situation to the skills below, which set opencode/autoinvoke: false and load by id. One listing entry instead of one per skill keeps the per-request skills listing short. Claude Code ignores that metadata, so there every skill is listed and triggers directly. The profiling skill is also reached through the quality plugin's quality-profiling skill.

The plugin registers these skills from skills/, unless a skill with the same id already exists:

  • lang-python: the router.
  • lang-python-libraries: compare library defaults before writing code for services, data, messaging, AWS, MCP, telemetry, CLI, testing and security.
  • lang-python-quality: lockfile checks, configured lint and format tools (Ruff defaults), mypy or pyright strict, and the configured test runner (pytest default), in that order; uv workspace narrowing and CI.
  • lang-python-testing: pytest fixtures, parametrize, monkeypatch, Hypothesis, coverage; references/practice.md has tool choices, bad tests with fixes, and defaults by use case.
  • lang-python-packaging: src layout, __init__ facades and __all__, import-linter, uv workspaces, PEP 735 dependency groups.
  • lang-python-types: mypy and pyright strict, typing idioms, pydantic v2 boundary models, datamodel-codegen.
  • lang-python-persistence: SQLAlchemy sessions and rowcount compare-and-set, Alembic autogenerate review, single-head CI check, in-memory SQLite with the real migrations.
  • lang-python-profiling: py-spy, profiling.sampling, scalene, memray, cProfile, pyperf. The method is the quality plugin's quality-profiling skill.