Some tool
Project description
Tiktok Signature
pip install tiktok-signature
Server
import asyncio
from playwright.async_api import async_playwright
from pydantic import BaseSettings
from tiktok_signature.server import make_server
class Settings(BaseSettings):
host: str
port: int
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
async def main():
settings = Settings()
async with async_playwright() as playwright:
server = await make_server(playwright=playwright, host=settings.host, port=settings.port)
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 use already ready
docker run --name=tiktok-signature --restart=always -p 8002:8002 -e port=8002 sheldygg/tiktok-signature
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(81.9 kB
view hashes)
Built Distribution
Close
Hashes for tiktok_signature-1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1768a3a9cefd2d4c9c062269b7ea6a685dfb15edd18ed68a5be883276f2a3c6b |
|
MD5 | 17be5a3b5f8458ffa52efb2ed42ddce3 |
|
BLAKE2b-256 | a332747ef7900d85631f0de66b5c322e631e582fe9f323d22e416d41e675e2a8 |