-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows package #58
Comments
Scott Hanselman has a step by step guide on how to install it on windows |
@mercury2269 This is not the sort of thing I'm talking about here, people should get Httpie up and running without even having to install python. Many people aren't python people and installing pip on windows is a hassle nobody should go through, not even python developers. |
Someone on Twitter has also mentioned Chocolatey, which looks like a decent package manager for Windows. That should allow you to install HTTPie using this simple command:
|
But that would require the user to have it installed, wouldn't a standalone installer be better? Edit: I'll try to make a windows installer using py2exe and Inno Setup |
Another option for packaging httpie as a standalone package that includes Python is PyInstaller. I haven't used it myself, but the project is very active. You could probably even automate the process of generating a Windows package as part of httpie's CI using AppVeyor. |
I created a PowerShell script to install hpttpie and already pushed a PR, feel free to use this script to install on a windows machine. |
Still no stand-alone |
Yeah, installing httpie on a Windows machine without Internet access is a real pain, would also love a package like this. Unfortunately my personal skill aren't quite enought to create it myself yet... |
Just noticed that issue asking for Windows package was created in 2012, whereas we are in 2017 now. |
Would love to install it through Scoop with |
I'd be willing to create/maintain a package for Chocolatey. Let me know if this is still desired. |
I was able to successfully build a stand-alone These are the commands... Outside the Docker container:
You are now inside the Docker container:
You are now outside of the Docker container:
The resulting Could someone please confirm this procedure? Thanks. EDIT: A pre-built http.exe binary can be downloaded from here: https://github.com/jftuga/HTTPie-Windows Please read the Warnings section before using this. |
@jftuga, would you care to share your |
https://github.com/jftuga/HTTPie-Windows Please read the Warnings section before using this. |
@jftuga, works as expected, at least basic actions. Thank you, sir. |
Anyone checked the Scoop-Python bucket ? Its by the maintainer of nonportable bucket.
There is a |
FWIW, I came here looking for a Windows executable, don't want to install pip. Used the one linked above even though it isn't latest. |
Hello @jakubroztocil, As we discussed weeks ago, here is a PoC for a Windows installer attached and the procedure I used to generate it: https://drop.chapril.org/download/889aae1e4ee17fe9/#BBLdWchiazXCxNkma9lqQQ The link will expire in 5 days, or 20 DL. I can't attach it on Github as it's bigger than 20Mo. DependenciesGenerate the standalone executable
In the last step, nuitka will prompt you for downloading dependencies (an import resolver and a compiler), say yes, and wait for some time while it does its magic. This will result in a To make sure we won't confuse the users, I advice for renaming You can zip and provide this directory as a portable version of httpie, which is very useful to have on a USB stick. Generate an installer
The result is an installer that will serve a piece of httpie to your happy Windows machine. You'll find it as Where to go from there:
|
This is great. Thanks, @ksamuel! We’ll look into exploring this approach. 🧪 |
Note: there is also an unofficial choco build of HTTPie that we could automate and also use in this build. I wonder what's the usage of choco vs windows store for CLI tools on Win. Research needed. |
Updated the zip link, the last one expired but @jakubroztocil needed it: https://drop.chapril.org/download/3519a0235828b6d2/#Mwzt7QE4O1FnlDDIrUXjjg It's still gonna expire in 5 days :) |
A Scoop alternative would be great |
This is major problem for me as well. I am looking for an app like HTTPie, but portable exe. I need to debug reachability in clients LAN, but in production. Corporate environment. I definitelly won't install choco or python or pip ... you name it. I could use a single EXE, test it out and delete the EXE. I guess I will have to build my own using Electron: unizp, test, delete - that's it. No system-wide hassle. |
choco is kind of dead at this point, so winget (or scoop if winget is not palatable for some reason) would be nice for both cli and desktop. |
I think someone should use py2exe or a similar tool to make an msi package for httpie.
Installing python and pip is a major hassle for anyone who just wants to use httpie on windows, which doesn't come with python installed by default.
The text was updated successfully, but these errors were encountered: