Skip to main content

TJ-TPAuth 1.0.0

Sync

from tj_tpauth import TJTPAuth

tpauth = TJTPAuth(
    host='http://localhost:3000'
)

login_status = tpauth.login(
    username='username',
    password='password'
)

if not login_status.status:
    exit(0)

auth_status = tpauth.from_token(login_status.data.token)

if not login_status.status:
    exit(0)

print(auth_status.data)

Async

import asyncio

from tj_tpauth import TJTPAuth

tpauth = TJTPAuth(
    host='http://localhost:3000'
)


async def main():
    login_status = await tpauth.aio_login(
        username='username',
        password='password'
    )

    if not login_status.status:
        exit(0)

    auth_status = await tpauth.aio_from_token(login_status.data.token)

    if not login_status.status:
        exit(0)

    print(auth_status.data)


asyncio.run(main())

Metadata

Release files for tj-tpauth 1.0.1

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

Source distribution (sdist)

Source distribution for tj-tpauth 1.0.1
File Size Uploaded Provenance Actions
tj_tpauth-1.0.1.tar.gz 2.7 kB Without provenance Details for tj_tpauth-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tj-tpauth 1.0.1
File Interpreter ABI Platform Actions
tj_tpauth-1.0.1-py3-none-any.whl Python 3 none any Details for tj_tpauth-1.0.1-py3-none-any.whl

Total release size: 5.4 kB

Release files / tj_tpauth-1.0.1.tar.gz

Download URL tj_tpauth-1.0.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ad7547cc88a731d97a1eb5545046f48f15251bc61ffafaa9943dad2bb974cb3d
BLAKE2b-256 checksum
How to use checksums
63c1fdf950314194e331c11a57c33f468ebe52752adcde5d3c803c698fe1d0e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / tj_tpauth-1.0.1-py3-none-any.whl

Download URL tj_tpauth-1.0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c00740be035accd6528d76ebbf515d72f97a2399ae036a3611e88cc4f16f91d6
BLAKE2b-256 checksum
How to use checksums
123b25e68ba69b3b4a9e5f7858621a5dd25951cfa95992a021804b05030ed950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Security for tj-tpauth 1.0.1

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