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.1.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.1-py3-none-any.whl (248.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conda_pypi-0.10.1.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.1.tar.gz
Algorithm Hash digest
SHA256 179eac4ae82abe8441637df4e0b58aea6a09a56e02aaee9d167d4b2fd19793b3
MD5 c288646d11aea3376d3c33c08a6920e4
BLAKE2b-256 910cbd5c160fa5fb6d8f6379428d561aa652df6276321e395f8eac8c85bbce5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_pypi-0.10.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: conda_pypi-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 248.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b32d4cb95df26296fc9152eeeb59af46ab1d1737e87528ac9225a53bc70c1fd
MD5 32d0b3878487c7609ba2cebb4c60a275
BLAKE2b-256 6b96b823afeaf41f569b7065811c1db6189998049b7ed092cf7a2432404312f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_pypi-0.10.1-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