Skip to main content

Better PyPI interoperability for the conda ecosystem.

Project description

conda-pypi

conda-pypi logo

Better PyPI interoperability for the conda ecosystem.

[!IMPORTANT] This project is still in early stages of development. Don't use it in production (yet). We do welcome feedback on what the expected behaviour should have been if something doesn't work!

Project Status

This is a community-maintained project under the conda organization.

Getting Help

What is this?

The conda-pypi plugin improves conda's integration with the PyPI ecosystem. The most important feature is the conda-pypi channel, hosted by Anaconda, which makes pure Python pacakges from PyPi available to users natively through conda install.

Using conda-pypi

conda-pypi is available in conda 26.5 or later. To update:

conda install --name base "conda>=26.5"

To opt in, enable the Rattler solver and add the conda-pypi channel:

conda config --set solver rattler
conda config --append channels conda-pypi

During the beta, the conda-pypi channel might not appear in the Anaconda.org web UI and some commands such as conda search can fail because they request classic repodata.json metadata. Use conda install or conda create --dry-run to check whether the solver can use the channel.

After configuring, you can use PyPI packages alongside conda packages in your normal conda workflows, without needing to convert PyPI's wheel files to conda files.

Advanced options

conda-pypi includes more advanced subcommand controls for working with PyPI packages. These options are recommended for users who want to experiment with conda and wheels and work with cutting-edge plugin features.

You can use the following commands with the conda pypi subcommand to do more with the conda-pypi plugin:

  • conda pypi install: Converts PyPI packages to .conda format for safer installation.
  • conda pypi install -e .: Converts a path to an editable .conda format package.
  • conda pypi convert: Convert PyPI packages to .conda format without installing them.
  • conda install from wheel channels (experimental): channels can serve pure Python wheels directly in repodata.json.
  • A warning when running conda create or conda install with pip in the environment.

Why?

Mixing conda and PyPI is often discouraged in the conda ecosystem. There are only a handful patterns that are safe to run. This tool aims to provide a safer way of keeping your conda environments functional while mixing it with PyPI dependencies. Refer to the documentation for more details.

Attribution

  • This project now incorporates conda-pupa by Daniel Holth, which provides the core PyPI-to-conda conversion functionality.
  • The conda-pypi platypus logo is by James Turner.

Contributing

Please refer to CONTRIBUTING.md.

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_pypi-0.10.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

conda_pypi-0.10.0-py3-none-any.whl (251.0 kB view details)

Uploaded Python 3

File details

Details for the file conda_pypi-0.10.0.tar.gz.

File metadata

  • Download URL: conda_pypi-0.10.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for conda_pypi-0.10.0.tar.gz
Algorithm Hash digest
SHA256 1f1637e9194b8874ac7304cefc04ea87d1c6f98a6e262307662e63fd489ad085
MD5 666fd51b6459a52b52034e848c0fa9a4
BLAKE2b-256 3e72fb805d0ca07b278779ffd427ebd15c9d7cea0787173d9518e8a24dc55854

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_pypi-0.10.0.tar.gz:

Publisher: pypi.yml on conda/conda-pypi

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_pypi-0.10.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for conda_pypi-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af65ae1ab297131bb4e063f3566867609e93eeaf54ac17935b58a5a3ec8a3389
MD5 04b1839ec43b2ee6ba765b2ac3dbdb1d
BLAKE2b-256 31c6e7c55fbd495b7b8d2a5afd1cb0b4652cadf26ee03c56e9bd393c3992ebab

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_pypi-0.10.0-py3-none-any.whl:

Publisher: pypi.yml on conda/conda-pypi

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