Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requests-llnw-auth-1.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

requests_llnw_auth-1.0.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page