Skip to main content

python-plexauth

Handles the authorization flow to obtain tokens from Plex.tv via external redirection.

Example usage:

import asyncio
from plexauth import PlexAuth

PAYLOAD = {
    'X-Plex-Product': 'Test Product',
    'X-Plex-Version': '0.0.1',
    'X-Plex-Device': 'Test Device',
    'X-Plex-Platform': 'Test Platform',
    'X-Plex-Device-Name': 'Test Device Name',
    'X-Plex-Device-Vendor': 'Test Vendor',
    'X-Plex-Model': 'Test Model',
    'X-Plex-Client-Platform': 'Test Client Platform'
}

async def main():
    async with PlexAuth(PAYLOAD) as plexauth:
        await plexauth.initiate_auth()
        print("Complete auth at URL: {}".format(plexauth.auth_url()))
        token = await plexauth.token()

    if token:
        print("Token: {}".format(token))
    else:
        print("No token returned.")

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Metadata

Release files for plexauth 0.0.6

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

Source distribution (sdist)

Source distribution for plexauth 0.0.6
File Size Uploaded
plexauth-0.0.6.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plexauth 0.0.6
File Interpreter ABI Platform
plexauth-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / plexauth-0.0.6.tar.gz

Download URL plexauth-0.0.6.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d53580d9d147c0d741f3d4de8d6b181ac7f77b3106d12f2684ae8529bc553c35
BLAKE2b-256 checksum
How to use checksums
df876d97e15a8c0124b4e3c46b07d902e6d1f732148aafb0ff3871bfef61ad6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

Release files / plexauth-0.0.6-py3-none-any.whl

Download URL plexauth-0.0.6-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c07022c681f5e3b684be82494839493e9c4a2b3b3f33133bdae1b4d066b3d4e3
BLAKE2b-256 checksum
How to use checksums
065d652dbaaaa7f8d24b84de4a55d6ce19dc3121518d025b06b621802ae28aec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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