Skip to main content

httpie-nsof

Nsof OAuth 2 plugin for the HTTPie command line HTTP client.

Installation

$ python setup.py install

You should now see nsof under --auth-type in $ http --help output.

Usage

$ http --auth-type=nsof --auth='org/username:password' https://api.nsof.io/v1/users

You can also use HTTPie sessions:

# Create session
$ http --session=logged-in --auth-type=nsof --auth='org/username:password' https://api.nsof.io/v1/users

# Re-use auth
$ http --session=logged-in POST https://api.nsof.io/v1/users

You can set the default --auth-type=nsof option in the ~/.httpie/config.json file for convenience:

$ echo '{"default_options": ["--auth-type=nsof"]}' > ~/.httpie/config.json
$ http -a org/username:password https://api.nsof.io/v1/users

You can also set your org, username, password as default:

$ echo '{"default_options": ["--auth-type=nsof", "--auth=nsof/username:password"]}' > ~/.httpie/config.json
$ http https://api.nsof.io/v1/users

It’s possible to pass a different effective org using the env EORG:

$ EORG=nsof http https://api.nsof.io/v1/users

Metadata

Release files for httpie-nsof 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for httpie-nsof 0.1
File Size Uploaded
httpie-nsof-0.1.tar.gz 2.5 kB Details

Release files / httpie-nsof-0.1.tar.gz

Download URL httpie-nsof-0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8b61fded0bb1df90b28bc6466d50fdd9b14fedc90bbe9d0cf4dc6541879fb80b
BLAKE2b-256 checksum
How to use checksums
b247d627fad24872ff691d9c143b49bafa72f5987b3000098619687afeeda8bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

0.95

2 release files

0.9

2 release files

0.8

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

1 release file

0.3

1 release file

0.2

1 release file

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page