pixi-sync-environment
A pre-commit hook and CLI tool that generates conda environment.yml files from pixi projects using pixi workspace export conda-environment. Useful for maintaining compatibility with conda-based workflows and CI systems that don't support pixi.
The tool compares the generated environment with an existing environment.yml file (if present) and updates it only when changes are detected. In check mode, it reports differences without modifying files.
Installation
pip install pixi-sync-environment
CLI Usage
# Sync pixi environment to environment.yml
pixi_sync_environment pixi.toml
# Sync a specific pixi environment
pixi_sync_environment --environment dev pixi.toml
# Check mode (exits with code 1 if out of sync)
pixi_sync_environment --check pixi.toml
Options
positional arguments:
input_files Path to pixi.toml, pyproject.toml, environment.yml, or pixi.lock
options:
--environment-file FILE Output file name (default: environment.yml)
--environment ENV Pixi environment to export (default: default)
--name NAME Environment name in output file
--check Verify sync status without modifying files
Pre-commit Hook
# .pre-commit-config.yaml
repos:
- repo: https://github.com/binado/pixi-sync-environment
rev: v0.3.0
hooks:
- id: pixi-sync-environment
# args: [--environment, dev, --environment-file, environment-dev.yml]
For check-only validation (useful in CI):
repos:
- repo: https://github.com/binado/pixi-sync-environment
rev: v0.3.0
hooks:
- id: pixi-sync-check
License
MIT
Metadata
Release files for pixi-sync-environment 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pixi_sync_environment-0.3.1.tar.gz | 8.2 kB | Without provenance | Details for pixi_sync_environment-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixi_sync_environment-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for pixi_sync_environment-0.3.1-py3-none-any.whl |
Total release size: 19.4 kB
Release files / pixi_sync_environment-0.3.1.tar.gz
| Download URL | pixi_sync_environment-0.3.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5854fe82f66c938f755b2a4c1026127ced645f04538b3c16bb9047c06aef673
|
|
BLAKE2b-256 checksum How to use checksums |
30bd8d7856c588e5c01b85c24fa8746a9176dd92c8018ea07bd2fbe56bb2679b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pixi_sync_environment-0.3.1-py3-none-any.whl
| Download URL | pixi_sync_environment-0.3.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f8ae7bb9caf7a45961e6e64fc4c317a4a8a8fad3baab5026930c850a8813100f
|
|
BLAKE2b-256 checksum How to use checksums |
2829e1355c9af196a261b77c09bbd657043013da74fb54b01a22bf37831ab16d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pixi-sync-environment 0.3.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.