Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between prompt-toolkit and prompt_toolkit

Tags:

conda

I recently ran a conda list, and I find that I have two different packages called prompt-toolkit 3.0.4 and prompt_toolkit 3.0.4. I tried to google the difference between them, using essentially the exact wording of my question title, and all that came up was documentation on prompt_toolkit, which did not answer the question. I would like to understand the difference between these packages, so that I can understand why I need both, and when to use which?

like image 808
jason-hernandez-73 Avatar asked Oct 17 '25 13:10

jason-hernandez-73


1 Answers

prompt_toolkit is a meta-package and serves as an alias of prompt-toolkit. prompt_toolkit=3.0.4 has only one dependency prompt-toolkit=3.0.4 and does nothing apart from that. Therefore whenever you install prompt_toolkit, you will pull in prompt-toolkit with the same version (major.minor.patch).

You can see this by using conda search --info

conda search --info prompt_toolkit=3.0.4

Gives you

prompt_toolkit 3.0.4 0
----------------------
file name   : prompt_toolkit-3.0.4-0.conda
name        : prompt_toolkit
[...]
dependencies:
  - prompt-toolkit >=3.0.4,<3.0.5.0a0

For functionality you only need prompt-toolkit, but prompt_toolkit exists as a compatibility layer.

like image 76
cel Avatar answered Oct 19 '25 07:10

cel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!