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 Provenance Actions
plexauth-0.0.6.tar.gz 2.4 kB Without provenance Details for plexauth-0.0.6.tar.gz

Built distribution (wheel)

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

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

Security for plexauth 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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