Kerberos over HTTP Negotiate/SPNEGO support for urllib2
Project description
# urllib_kerberos
## Usage
### Python 2
```
import urllib2
import urllib_kerberos
handlers.append(urllib_kerberos.HTTPKerberosAuthHandler())
opener = urllib2.build_opener(*handlers)
urllib2.install_opener(opener)
request = urllib2.Request(url, data)
```
### Python 3
```
import urllib.request
import urllib_kerberos
handlers.append(urllib_kerberos.HTTPKerberosAuthHandler())
opener = urllib.request.build_opener(*handlers)
urllib.request.install_opener(opener)
request = urllib.request.Request(url, data)
```
## Credits
Tim Olsen was the original author of `urllib2_kerberos`
[library](https://bitbucket.org/tolsen/urllib2_kerberos)
which is the bulk of the content of the `urllib_kerberos`
module.
## Usage
### Python 2
```
import urllib2
import urllib_kerberos
handlers.append(urllib_kerberos.HTTPKerberosAuthHandler())
opener = urllib2.build_opener(*handlers)
urllib2.install_opener(opener)
request = urllib2.Request(url, data)
```
### Python 3
```
import urllib.request
import urllib_kerberos
handlers.append(urllib_kerberos.HTTPKerberosAuthHandler())
opener = urllib.request.build_opener(*handlers)
urllib.request.install_opener(opener)
request = urllib.request.Request(url, data)
```
## Credits
Tim Olsen was the original author of `urllib2_kerberos`
[library](https://bitbucket.org/tolsen/urllib2_kerberos)
which is the bulk of the content of the `urllib_kerberos`
module.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
urllib_kerberos-0.2.0.tar.gz
(3.8 kB
view details)
File details
Details for the file urllib_kerberos-0.2.0.tar.gz
.
File metadata
- Download URL: urllib_kerberos-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a70d57f54f0c2f5a6bc8a1e61f29b7cc96ae85a0b86dc6171ea3ba4223d30018
|
|
MD5 |
048117d662168068fed7fed96c9057cf
|
|
BLAKE2b-256 |
19dc08313a037dc059e18a84e9ad13918c5d514f1adac52d512a49b21fa8e993
|