Skip to main content

pixi-policy

PyPI Docs

Write down what your pixi environments are allowed to contain, and check it everywhere pixi runs. One file, pixi-policy.toml, committed beside pixi.toml and pixi.lock; one command, pixi policy, that reports every package, source, license or manifest setting the policy does not allow, with the reason and a fix hint, and exits non-zero so CI can stop the merge.

pixi policy init     # write a policy the workspace passes today
pixi policy          # check it (the same as `pixi policy check`)
pixi policy explain  # every rule; `pixi policy explain <RULE>` for one, with its keys and defaults
pixi policy lock     # pixi lock, then check the new lockfile before anything is installed
pixi policy doctor   # whether each upstream answers, what is cached, whether pixi.lock is current

It reads three files and needs no server and no database. The network is used only for a shared policy extended by URL, known vulnerabilities ([advisories]) and freshness ([freshness]), all cached, so a check runs offline once they are cached.

pixi policy facts writes what pixi.lock says about every environment as JSON, for organizations that keep their policy in OPA and Rego (an example).

What it checks

Family Checks that
sources conda packages come only from allowed channels, PyPI packages only from allowed indexes, and nothing from git, a direct URL or a local path unless allowed
bans no banned package, version range or build is in any environment
licenses every package can be used under the licenses the policy allows (SPDX allow, review and deny lists)
advisories no package has a known vulnerability at or above the policy's severity, known exploited or likely to be exploited (OSV, CISA KEV, EPSS)
freshness no conda package is too old a build, too many major versions behind its channel's newest, or from an archived conda-forge feedstock
hygiene no PyPI package is one a conda package in the same environment already provides
python every environment runs the policy's standard Python minor version (any patch release of it)
manifest pixi.toml gives no * specs, pins Python to a minor version, lists the required platforms and keeps new releases out for a cooldown (exclude-newer)
lock pixi.lock exists, locks every environment for every platform, and still satisfies the manifest
waivers every exception has a reason and an end date, and still matches something
# pixi-policy.toml
[sources]
allowed-channels = ["conda-forge"]
allowed-indexes = ["https://pypi.org/simple"]

[bans]
deny = [
  { name = "pycrypto", reason = "unmaintained", use-instead = "pycryptodome" },
  { name = "openssl", version = "<3", reason = "EOL" },
]

[licenses]
deny = ["GPL-3.0-*", "AGPL-*"]

[manifest]
required-platforms = ["linux-64", "osx-arm64", "win-64"]

[lock]

[[waivers]]
rule = "licenses.deny"
package = "readline"
reason = "dev only; LEGAL-1234"
expires = 2027-03-31

That policy, checked against one of the repository's example workspaces (an excerpt):

error[licenses.deny] ld_impl_linux-64 2.46.1: license GPL-3.0-only cannot be satisfied without a denied license
  --> pixi.lock: environment "default", linux-64
  = help: replace the package, or take the license off [licenses] deny

error[manifest.wildcard-spec] gh: is given as "*" in [dependencies]
  --> pixi.toml:11
  = help: give it a version range, for example the one `pixi add` writes

waived[licenses.deny] readline 8.3: license GPL-3.0-only cannot be satisfied without a denied license (pixi.lock: environment "default", linux-64); waiver: dev only; LEGAL-1234, expires 2027-03-31

4 errors, 0 warnings, 2 waived in 45 packages across 2 environment-platform pairs

Install

uv tool install pixi-policy     # or: pipx install pixi-policy, pip install pixi-policy

The wheel carries only the pixi-policy binary, for Linux (x86-64 and aarch64, glibc and musl), macOS and Windows. pixi runs any pixi-<name> executable on PATH as pixi <name>. Release archives with build provenance are on GitHub Releases.

In CI

The exit code is the verdict: 0 nothing failed, 1 a finding is an error, 2 an input could not be read. --format json writes a report with a published schema, and --format sarif one for GitHub code scanning:

- run: pixi run policy --format sarif --output policy.sarif
- uses: github/codeql-action/upload-sarif@v3
  if: always()
  with:
    sarif_file: policy.sarif

Documentation

https://aesir-oss.github.io/pixi-policy/: getting started, development and CI, every rule, every key, with its values and default, waivers and output formats.

From Aesir Open Source Solutions, beside pixi-sbom. Apache-2.0. A community project, not affiliated with prefix.dev.

Metadata

Release files for pixi-policy 0.4.0

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

Built distributions (wheels)

Table of built distributions (wheels) for pixi-policy 0.4.0
File Actions
pixi_policy-0.4.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pixi_policy-0.4.0-py3-none-win_amd64.whl
pixi_policy-0.4.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for pixi_policy-0.4.0-py3-none-musllinux_1_2_x86_64.whl
pixi_policy-0.4.0-py3-none-musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64 Details for pixi_policy-0.4.0-py3-none-musllinux_1_2_aarch64.whl
pixi_policy-0.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for pixi_policy-0.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pixi_policy-0.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for pixi_policy-0.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
pixi_policy-0.4.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pixi_policy-0.4.0-py3-none-macosx_11_0_arm64.whl
pixi_policy-0.4.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pixi_policy-0.4.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 26.7 MB

Release files / pixi_policy-0.4.0-py3-none-win_amd64.whl

Download URL pixi_policy-0.4.0-py3-none-win_amd64.whl
Size 3.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
df7caa81cf1ce601e688af4a5328bd8e9467f8dec6fa8f9fed4b386d59488c54
BLAKE2b-256 checksum
How to use checksums
d6ffc687aa5d9cd3ca053bde8cfbb46126a2b7e5f2f1aa4b2c706c545954bd52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / pixi_policy-0.4.0-py3-none-musllinux_1_2_x86_64.whl

Download URL pixi_policy-0.4.0-py3-none-musllinux_1_2_x86_64.whl
Size 4.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a2695c5f90b60b24468e5a1df1d0f6e089839a994b0ff6b4142799bd690f1191
BLAKE2b-256 checksum
How to use checksums
926bdecf125be79a64eb48b68dbdb9a303f792a39611353ac9d0c431db34020f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / pixi_policy-0.4.0-py3-none-musllinux_1_2_aarch64.whl

Download URL pixi_policy-0.4.0-py3-none-musllinux_1_2_aarch64.whl
Size 3.8 MB
Tags Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1992820d8db9c8ed74a3b2f6efb241aaacdeb6a9ce9af58cd143fc6642216b21
BLAKE2b-256 checksum
How to use checksums
f6705f9e89a0fb5bc0ca877cbb64e27b44063a27f51a2b3fe91568e6d3452dc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / pixi_policy-0.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pixi_policy-0.4.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 4.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9931582b465a8261f7d9772a8c6e2e7a3bb2abd152d3c7e0b2841f8dbc8c19fa
BLAKE2b-256 checksum
How to use checksums
e0fcdb20c1468ce488b5d55736b2a9ed6749f2ae19aa4db9516d622004cc6f7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / pixi_policy-0.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL pixi_policy-0.4.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
303f35f70657f618e3eb6e1ddb6b6df1ea7f8aa551bd2b381287f180ab4e14f1
BLAKE2b-256 checksum
How to use checksums
ee2f7a533793843ccb56f88b000d9f01e473f16c822055fe526b2cb39c6b3e1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / pixi_policy-0.4.0-py3-none-macosx_11_0_arm64.whl

Download URL pixi_policy-0.4.0-py3-none-macosx_11_0_arm64.whl
Size 3.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4a82f66601942a42da19d5dd7ad39ac5cbcac5351eebedab4d2f2c490b932545
BLAKE2b-256 checksum
How to use checksums
651d80cdc65e890759dcf114ba9598759da9776034f70a8ffc5eeed232417e76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / pixi_policy-0.4.0-py3-none-macosx_10_12_x86_64.whl

Download URL pixi_policy-0.4.0-py3-none-macosx_10_12_x86_64.whl
Size 3.8 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
dc778e6a8e4489c59d9368f311c87836f92961219be6ddd7f6159d7fd21fa3d0
BLAKE2b-256 checksum
How to use checksums
8dc303dc20e161cda79a8edaaedfb94a7633e77a92c2f4927ef4429a40bf1994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Security for pixi-policy 0.4.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

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for pixi_policy-0.4.0-py3-none-win_amd64.whl

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 Nov 2, 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.

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