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():
playwright = await async_playwright().start()
settings = Settings()
try:
server = await make_server(playwright=playwright, host=settings.host, port=settings.port)
await server.start()
await asyncio.Event().wait()
finally:
await playwright.stop()
asyncio.run(main())
As package
import asyncio
from tiktok_signature import Signer
from playwright.async_api import async_playwright
async def main():
playwright = await async_playwright().start()
try:
signer = Signer(playwright=playwright)
await signer.init()
await signer.sign("url")
finally:
await playwright.stop()
asyncio.run(main())
Docker
Soon...
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.1.tar.gz
(81.7 kB
view hashes)
Built Distribution
Close
Hashes for tiktok_signature-1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 179de683aaaa4b6542c191b533f97b16ce7b5924ad7e65d03dadf189967eb76c |
|
MD5 | 9b033026f4d30f16cb1b7a970f96b797 |
|
BLAKE2b-256 | 317da75127af5e4fa614a3aa8c61610dede85655f19ea7bead263308cb5c63cf |