Skip to main content

Some tool

Project description

PyPi Package Version Downloads

Server

import asyncio

from playwright.async_api import async_playwright
from tiktok_signature.server import make_server


async def main():
    async with async_playwright() as playwright:
        server = await make_server(playwright=playwright, host="127.0.0.1", port=8002)
        await server.start()
        await asyncio.Event().wait()

asyncio.run(main())

As package

import asyncio

from tiktok_signature import Signer
from playwright.async_api import async_playwright


async def main():
    async with async_playwright() as playwright:
        signer = Signer(playwright=playwright)
        await signer.init()
        await signer.sign("url")

asyncio.run(main())

Docker

You can build image yourself

docker build . -t tiktok-signature

Or start with the second command and use the ready image

docker run --name=tiktok-signature --restart=always -p 8002:8002 -e port=8002 sheldygg/tiktok-signature

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

tiktok_signature-1.3.tar.gz (82.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiktok_signature-1.3-py2.py3-none-any.whl (81.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tiktok_signature-1.3.tar.gz.

File metadata

  • Download URL: tiktok_signature-1.3.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.24.1

File hashes

Hashes for tiktok_signature-1.3.tar.gz
Algorithm Hash digest
SHA256 8d14057d67d0f2be813a24e26657b8637640f4fcc95e789674069c86d0d462a5
MD5 e3a2a80d4ce68c0d890a0c32a3a7bdcf
BLAKE2b-256 6bcc56b1e8e5555edffe812ff8ac3ab5d9dc9c3f10e575e910609156e61fc8a7

See more details on using hashes here.

File details

Details for the file tiktok_signature-1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tiktok_signature-1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0cf3ae3a9be6be641d7c3f898af82805211dd25d0107796e69a0206451548e56
MD5 96e45412b34939944763e6c82e8ab969
BLAKE2b-256 b9d24223f53132d72c2d4b7e2b2847166011cd0e8686676bb0774e066fd40a5f

See more details on using hashes here.

Supported by

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