httpie / httpie-ntlm Goto Github PK
View Code? Open in Web Editor NEWNTLM auth plugin for HTTPie
Home Page: https://httpie.org
License: Other
NTLM auth plugin for HTTPie
Home Page: https://httpie.org
License: Other
If you don't have requests-ntlm installed system-wide, always fails with "ModuleNotFoundError: No module named 'requests_ntlm'" since the plugin path (where requests-ntlm is installed) is not loaded when calling get_auth. This problem is fixed in the repo, but the PyPi package predates that.
I have updated the packaging to be a little slicker. In case its needed, I am willing to help with the maintenance of the snap package at least for the first few months.
name: httpie
base: core18\
by-1/by-2
version: git
summary: HTTPie - a CLI, cURL-like tool for humans.
description: |
HTTPie (pronounced aitch-tee-tee-pie) is a command line HTTP client.
Its goal is to make CLI interaction with web services as human-friendly as possible.
It provides a simple http command that allows for sending arbitrary HTTP requests
using a simple and natural syntax, and displays colorized output.
HTTPie can be used for testing, debugging, and generally interacting with HTTP servers.
grade: stable
confinement: strict
parts:
httpie:
plugin: python
source: .
override-prime: |
snapcraftctl prime
echo "Compiling pyc files..."
$SNAPCRAFT_PART_INSTALL/usr/bin/python3 -m compileall -q $SNAPCRAFT_PRIME
apps:
http:
command: http
plugs:
- home
- network
Originally posted by @om26er in httpie/cli#672 (comment)
After running pip install httpie-ntlm and running http --help i got the following:
Authentication:
--auth USER[:PASS], -a USER[:PASS]
If only the username is provided (-a username), HTTPie will prompt
for the password.
--auth-type {basic,digest}
The authentication mechanism to be used. Defaults to "basic".
"basic": Basic HTTP auth
"digest": Digest HTTP auth
Seems like i'm not able to see the ntlm option here.
Any thoughts?
This library relies on https://github.com/requests/requests-ntlm/ which relies on https://github.com/jborean93/ntlm-auth which is now deprecated. ntlm-auth provides examples and asks users to use https://github.com/jborean93/pyspnego instead.
HTTPie allows plugins to opt-in to loading credentials from .netrc. (httpie/cli#718) by setting netrc_parse = True in the plugin. I'd like to request that this plugin enable that feature, so that we can manage API credentials per-domain.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.