Skip to main content

Inspect and apply install-time cooldown (min-release-age / exclude-newer) for npm and uv.

Project description

pmsec (Python)

pmsec is a cross-platform CLI that inspects and applies install-time cooldown settings (e.g. npm min-release-age, uv exclude-newer) to mitigate supply-chain attacks where malicious packages are typically detected and removed within hours to days of publication.

Install

uvx pmsec check --min 7
uvx pmsec set 7
uvx pmsec unset

Supported tools

npm, pnpm, yarn 4+, bun, cargo (RFC #3801), mise, uv

Commands

Command Description
pmsec check [--min N] Read each tool's config; exit 1 if any tool is below N days or unset
pmsec set <DAYS> [--force] Write DAYS-day cooldown to every selected tool
pmsec unset Remove only the cooldown key from each config (other keys preserved)

Options: --tool npm,pnpm,yarn,bun,cargo,mise,uv, --json.

See the project README for the full table of keys, units, paths, and overrides.

License

MIT

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

pmsec-0.1.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

pmsec-0.1.2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file pmsec-0.1.2.tar.gz.

File metadata

  • Download URL: pmsec-0.1.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pmsec-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b0f7af4c0d613d75985e960c91f792cdcae52b16bf2413c4fb77dd93bd909829
MD5 0073c4332838910ea0c15be023f909c1
BLAKE2b-256 07a7fbe8344821e0fad9f79420d204251610c9b29a63dcc66ab2f85c826a41a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmsec-0.1.2.tar.gz:

Publisher: pmsec-release-pypi.yml on HikaruEgashira/pmsec

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

File details

Details for the file pmsec-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pmsec-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pmsec-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d02b3b2a4a93cc5797cd97aee1db7cc16802165cfd0e4032ec3024c5418dfb2f
MD5 15b8472a4deea0a33103b8e0c260d864
BLAKE2b-256 52961b43ad561e7fa4d5e8f279645e43b78db4c75272933a3878a2fc228371f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pmsec-0.1.2-py3-none-any.whl:

Publisher: pmsec-release-pypi.yml on HikaruEgashira/pmsec

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