LLNW header-based auth plugin for Python Requests
Project description
requests-llnw-auth
This module provides an authentication plugin for Requests to generate the X-LLNW-Security-* request headers required by Limelight Networks APIs.
Getting Started
Firstly, install the package:
pip install requests-llnw-auth
Then in your Python script, create an LLNWAuth
object, using your Limelight Control username and API key, and pass it to a requests
function using the auth
keyword attribute.
import requests
from requests_llnw_auth import LLNWAuth
llnw_auth = LLNWAuth('username', 'api_key')
shortname = 'yourshortname'
res = requests.get(f'https://apis.llnw.com/config-api/v1/svcinst/delivery/shortname/{shortname}', auth=llnw_auth)
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
Built Distribution
Close
Hashes for requests_llnw_auth-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26866063dae7aae15c7d26af4a983d5d023f3a92d02d04b766a67cefa9fb988b |
|
MD5 | a59f6b66c69c84069553bf79341dd434 |
|
BLAKE2b-256 | e060f2b8a93aa60ef383c96a7ce0f26eb5afdfc0f2ece01abecedb82f9368c5c |