Comments (7)
Sorry if I'm misreading something, but I think that commit bumps to prompt-toolkit v2 but this issue is about prompt-toolkit v3?
from http-prompt.
-
[****](Bec Quigley
from http-prompt.
I'd like to add a +1 to this request, as I ran into exactly this issue when trying to package http-prompt for Fedora, where we have prompt_toolkit version 3.
from http-prompt.
Done with 6943959.
from http-prompt.
Yeah, +1 – I can't use http-prompt on my laptop anymore, because the system version of prompt_toolkit is v3, and http-prompt doesn't work with that one:
ImportError: cannot import name 'AbortAction' from 'prompt_toolkit' (/usr/lib/python3.9/site-packages/prompt_toolkit/__init__.py)
In the meantime, it would be nice to have an easy way to start http-prompt via Python, like python -m http_prompt
or python -m http_prompt.cli
, because that makes running http-prompt from a virtualenv much easier. If you want to do this, find your cli.py
file and add two lines at the bottom:
if __name__ == "__main__":
cli()
from http-prompt.
bump
from http-prompt.
I didn't install in the system level, rather through pyenv, and I usually install ipython as part of adding a python version, but ipython and http-prompt can't be in the same venv or pyenv because of this dependency clash
So updating to v3 would really help
But since http-prompt does not involve python coding, I opted for using it as a tool and not another python package, so installing with pipx did the trick:
pip uninstall -y http-prompt
pip install -U pipx
pipx install http-prompt
from http-prompt.
Related Issues (20)
- Support Tab completion for files when in prompt mode?
- --verbose Doesn't show request headers
- Recursive mode & more detailed`ls` HOT 1
- change shortcut for autocomplete?
- Video Interview for v2.1.0 OpenAPI Support
- Preview request? HOT 2
- swagger yaml issue
- Bug: OpenAPI schemas give wrong completion when the root of the API is a path relative to the domain
- Not performing requests on Windows
- http-prompt producing different 'data' than httpie
- Visualize tree structure HOT 2
- Support for setting variables based on response data
- The command line param --auth is showed as url
- The command line param -v show the version but launch the cli HOT 1
- how to remove pager? HOT 2
- Investigate increasing Maintainer Productivity with Pull Requests Environments
- Cookies auto setting invalid.
- An error occurs during installation
- PyOpenSSLContext has no attribute get_ciphers 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 http-prompt.