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.0

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.0
File Size Uploaded Provenance Actions
tj_tpauth-1.0.0.tar.gz 2.4 kB Without provenance Details for tj_tpauth-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.0 kB

Release files / tj_tpauth-1.0.0.tar.gz

Download URL tj_tpauth-1.0.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
711d52763ef28cb770cd6bd2cf085755c83ab6cb7b2cac01d7d6da52bad36c1e
BLAKE2b-256 checksum
How to use checksums
accfef84d5a0822992b865f04c9731044b8ca96ca914e9e7719d56b9d43c86b0
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.0-py3-none-any.whl

Download URL tj_tpauth-1.0.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b90e7540f938b892b198ca4194fe10b097fca5baf848c91cccb453b040085e0
BLAKE2b-256 checksum
How to use checksums
46c0f2684a7874edc11604fc7a3357e05c6c866846be7e08cea6880743e64db8
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.0

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