Skip to main content

Resolve conda environment.yml files to fully pinned package lists with SHA256 hashes

Project description

conda-presto

A fast, dry-run conda solver exposed as both a CLI and an HTTP API. Given package specs or an environment file (environment.yml, pixi.toml, pyproject.toml, requirements.txt, conda-lock, pixi-lock, …), it resolves fully pinned packages for one or more platforms — without downloading or installing anything — and emits the result as native JSON or any conda exporter format (pixi.lock, conda-lock.yml, environment YAML, explicit file, …).

Highlights

  • Resolve inline specs or any environment file format
  • Full package metadata: sha256, md5, urls, sizes, depends
  • Cross-platform solving with automatic virtual package injection
  • Multi-platform parallel solves via ProcessPoolExecutor
  • Output as JSON or any conda exporter format (--format / ?format=)
  • Lockfile-to-lockfile transcode path that skips solving when possible
  • Review proposed environments with /preflight, /diff, and /explain
  • Content-addressed HTTP result cache with /r/<sha256> lookups and optional file or Redis backing
  • HTTP API with interactive docs (Scalar UI), compression, rate limiting
  • GitHub Action for CI pipelines (local CLI and hosted API modes)
  • Docker images for server and CLI deployment
  • Uses conda-rattler-solver for fast SAT solving

Quick start

pixi global install --git https://github.com/jezdez/conda-presto.git
conda presto -c conda-forge -p linux-64 python=3.12 numpy

Run a server

docker run --rm -p 8000:8000 ghcr.io/jezdez/conda-presto:latest
curl http://localhost:8000/health

Pin a versioned image tag for deployments. See the container configuration reference for server tuning and Redis result-cache setup.

Documentation

Full documentation is available at the conda-presto docs site:

Development

git clone https://github.com/jezdez/conda-presto.git
cd conda-presto
pixi install
pixi run lint        # ruff check
pixi run format      # ruff format
pixi run test        # pytest
pixi run bench       # pytest-benchmark
pixi run serve       # uvicorn with --reload
pixi run -e docs docs  # build documentation

License

BSD-3-Clause

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

conda_presto-0.6.0.tar.gz (155.0 kB view details)

Uploaded Source

Built Distribution

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

conda_presto-0.6.0-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file conda_presto-0.6.0.tar.gz.

File metadata

  • Download URL: conda_presto-0.6.0.tar.gz
  • Upload date:
  • Size: 155.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for conda_presto-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c5154d6f6a367cc074d5f8aaa1c994c205f0a14dcf81959419ca8bcbf7a99461
MD5 c8b9a7238df85952e002a35de817b72c
BLAKE2b-256 fd127f9aa5408736df35963950a275d8d3ad75e2302d0a72ee0b1821ccc4477a

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_presto-0.6.0.tar.gz:

Publisher: release.yml on jezdez/conda-presto

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

File details

Details for the file conda_presto-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: conda_presto-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 35.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for conda_presto-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14b35c63e4e5fb5103bee1abccd7f70c156aa05b0cbd7de34622eb27518a76b4
MD5 bcad37a89762f74573d6050aa964fe43
BLAKE2b-256 4b5a2a31f05ba85bdfe3c09000643d56a721bad976c38a3ecc1bf1ff040ab544

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_presto-0.6.0-py3-none-any.whl:

Publisher: release.yml on jezdez/conda-presto

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