Comments (6)
Dependency tree-----
PyInquirer-1.0.3
| +-prompt-toolkit(version range:==1.0.14)
| | +-six(version range:>=1.9.0)
| | +-wcwidth(version range:*)
| +-pygments(version range:>=2.2.0)
| | +-coverage(version range:*)
| | +-nose(version range:*)
| | +-pyflakes(version range:*)
| | +-pylint(version range:*)
| | +-tox(version range:*)
| +-regex(version range:>=2016.11.21)
_**Direct downstream project:**_
mqtt-sentinel-0.8.2
| +-click(version range:==7.0)
| +-colorama(version range:==0.4.1)
| +-paho-mqtt(version range:==1.4.0)
| +-prompt-toolkit(version range:==1.0.14)
| | +-six(version range:>=1.9.0)
| | +-wcwidth(version range:*)
| +-pyinquirer(version range:==1.0.3)
| | +-prompt-toolkit(version range:==1.0.14)
| | | +-six(version range:>=1.9.0)
| | | +-wcwidth(version range:*)
| | +-pygments(version range:>=2.2.0)
| | | +-coverage(version range:*)
| | | +-nose(version range:*)
| | | +-pyflakes(version range:*)
| | | +-pylint(version range:*)
| | | +-tox(version range:*)
| | +-regex(version range:>=2016.11.21)
| +-requests(version range:==2.21.0)
| | +-certifi(version range:>=2017.4.17)
| | +-chardet(version range:<3.1.0,>=3.0.2)
| | +-idna(version range:>=2.5,<2.9)
| | +-urllib3(version range:>=1.21.1,<1.25)
infraless-0.0.6a0
| +-astroid(version range:==2.2.5)
| +-cement(version range:==3.0.4)
| +-colorama(version range:==0.4.1)
| +-colorlog(version range:==4.0.2)
| +-entrypoints(version range:==0.3)
| +-flake8(version range:==3.7.7)
| +-isort(version range:==4.3.20)
| | +-backports-functools-lru-cache(version range:*)
| | +-futures(version range:*)
| +-jinja2(version range:==2.10.1)
| | +-markupsafe(version range:>=0.23)
| +-lazy-object-proxy(version range:==1.4.1)
| +-markupsafe(version range:==1.1.1)
| +-mccabe(version range:==0.6.1)
| +-pprint(version range:==0.1)
| +-prompt-toolkit(version range:==1.0.14)
| | +-six(version range:>=1.9.0)
| | +-wcwidth(version range:*)
| +-pycodestyle(version range:==2.5.0)
| +-pyfiglet(version range:==0.8.post1)
| +-pyflakes(version range:==2.1.1)
| +-pygments(version range:==2.4.2)
| | +-coverage(version range:*)
| | +-nose(version range:*)
| | +-pyflakes(version range:*)
| | +-pylint(version range:*)
| | +-tox(version range:*)
| +-pyinquirer(version range:==1.0.3)
| | +-prompt-toolkit(version range:==1.0.14)
| | | +-six(version range:>=1.9.0)
| | | +-wcwidth(version range:*)
| | +-pygments(version range:>=2.2.0)
| | | +-coverage(version range:*)
| | | +-nose(version range:*)
| | | +-pyflakes(version range:*)
| | | +-pylint(version range:*)
| | | +-tox(version range:*)
| | +-regex(version range:>=2016.11.21)
| +-pylint(version range:==2.3.1)
| +-pyyaml(version range:==5.1.1)
| +-regex(version range:==2019.6.5)
| +-six(version range:==1.12.0)
| +-termcolor(version range:==1.1.0)
| +-typed-ast(version range:==1.4.0)
| +-wcwidth(version range:==0.1.7)
| +-wrapt(version range:==1.11.1)
| +-yapf(version range:==0.27.0)
protomate-0.4.8
| +-colorama(version range:==0.4.1)
| +-loguru(version range:==0.3.1)
| | +-colorama(version range:>=0.3.4)
| | +-win32-setctime(version range:>=1.0.0)
| +-prompt-toolkit(version range:==2.0.9)
| | +-six(version range:>=1.9.0)
| | +-wcwidth(version range:*)
| +-pyfiglet(version range:==0.8.post1)
| +-pygithub(version range:==1.43.7)
| +-questionary(version range:==1.1.1)
| | +-prompt-toolkit(version range:<3,>=2.0)
| | | +-six(version range:>=1.9.0)
| | | +-wcwidth(version range:*)
| +-termcolor(version range:==1.1.0)
from pyinquirer.
Yeah, this is kind of annoying, ipython installation update prompt-toolkit and now it's impossible to use pyinquirer. I should use a virtual environment but this is a very tight constraint and should be relaxed.
from pyinquirer.
👍
Actually that's what will make me not use this lib. I started but I can't work with this old prompt-toolkit
that is not compatible with up-to-date ipython
(among other things)
I tried to upgrade it and make a contribution but it's not 100% straightforward and I can't seem to run the tests in the repo. Most fail in the "fake PTY". So I'm not at all at ease to even try and touch it.
My solution for the moment has been to "steal" the 2-3 elements (list and confirm) that I needed, upgrade them and use the code directly.
I'm not publishing a contribution because I have no idea if it works in the general case you are planning for. I just know it works in my specific one :(
from pyinquirer.
@gbataille another option would be to use https://github.com/tmbo/questionary - pretty much the same but support for promt toolkit 2 and 3.
from pyinquirer.
@tmbo thanks! I'll have a look. In the meantime I took the code here, upgrade it (at least to my need) and added a filter search in the list control by typing a prefix on the keyboard.
You can see the code here https://github.com/gbataille/password-organizer/blob/master/password_organizer/cli_menu/prompts/listmenu.py
And you can see the filtering in action there
https://asciinema.org/a/AyujEPdjcDmSPoOK26pTozCiO
from pyinquirer.
This has been fixed now.
from pyinquirer.
Related Issues (20)
- AssertionError when using example
- MAC Terminal Support HOT 1
- Multiline Messages
- Crash on clic HOT 2
- ImportError: cannot import name 'Mapping' from 'collections' (C:\Python310\lib\collections\__init__.py) HOT 7
- Tests are failing on a clean fork HOT 1
- PageSize is not working
- My HOT 1
- Applying style to a prompt throws an error HOT 3
- List input with prompt multiple lines long moves down a line every time cursor moves
- Request: Upgrade code for compatibility with prompt_toolkit 3.0.29
- Typo in 'input.py' HOT 2
- Separator colour isn't applied for 'list' types.
- Add support for Python version 3.10 HOT 4
- prompt.prompt should be prompt(questions, style=custom_style_2)
- Request: add option for "select all"/"unselect all" to checkbox question type HOT 1
- ImportError: cannot import name 'Mapping' from 'collections' error when importing PyInquirer | HAS SOLUTION HOT 7
- prompt_toolkit version for pyinquirer not compatible with ipython HOT 2
- Accessing the variable input
- ModuleNotFoundError: PyInquirer Not Detected in Virtual Environment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinquirer.