/ \__
( @\_____
/ O
/ (_____/
/_____/ U
Min Pin
Min Pin is a command-line tool that automatically adds minimum version pins to unpinned packages in conda-friendly YAML files, such as environment.yml or anaconda-project.yml.
Features
- Parses
conda listandpip listto retrieve installed package versions. - Updates YAML files by adding minimum version pins to unpinned packages.
- Handles both conda and pip dependencies.
- Preserves the original structure and comments of the YAML file.
Installation
pip install minpin
Usage
minpin ./environment.yml
Optionally, specify a conda list output file which you can create with conda list > conda_list.txt:
minpin anaconda-project.yml --conda-list conda_list.txt
Example
Input: original environment.yml
channels:
- conda-forge
dependencies:
- python=3.10
- numpy
- pandas>=1.3
- pip
- pip:
- requests
- flask
Output: Updated environment.yml
channels:
- conda-forge
dependencies:
- python=3.10
- numpy>=1.24.0 # auto min pinned 2024-11-18
- pandas>=1.3.3 # auto min pinned 2024-11-18
- pip
- pip:
- requests>=2.28.2 # auto min pinned 2024-11-18
- flask>=2.2.3 # auto min pinned 2024-11-18
Metadata
Release files for minpin 1.0.0
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 |
|---|---|---|---|---|
| minpin-1.0.0.tar.gz | 5.3 kB | Without provenance | Details for minpin-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| minpin-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for minpin-1.0.0-py3-none-any.whl |
Total release size: 10.1 kB
Release files / minpin-1.0.0.tar.gz
| Download URL | minpin-1.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2953982f5b2e8c957b72479082010910a83097106eff51b7803f29b25f039fac
|
|
BLAKE2b-256 checksum How to use checksums |
12f9ca7a7e6acd23d40e317e1a5a15afac211b007767392c76b1fd1dcb09ef33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / minpin-1.0.0-py3-none-any.whl
| Download URL | minpin-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec325a082253b60808a31167870ffd19fc98127173d9344423c3317973ea492b
|
|
BLAKE2b-256 checksum How to use checksums |
6d67b004b40afab7dfa0fae2be6375e1323de5410f999821c2e3d7504b043ec1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Security for minpin 1.0.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.
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.