Skip to main content

Core auto-reup logic for TikTok bots (DB + fetch + auto monitor + auto reup)

Reason this release was yanked:

bug

Project description

tiktok-autoreup-core

Core auto-reup logic for TikTok bots:

  • SQLite DB for tracked videos/channels
  • Fetch latest videos via yt-dlp
  • Auto-monitor loop
  • Auto reup pipeline (download -> render -> upload)

This package is designed to be embedded into a Telegram bot. It expects the host app to provide dependency callbacks (download/render/upload/caption).

Basic Usage

from tiktok_autoreup_core import AutoReupConfig, AutoReupDeps, AutoReupService

cfg = AutoReupConfig(
    db_path="auto_reup.db",
    output_dir=".",
    owner_id=123456789,
    default_hashtag="#example",
    render_res="1080x1920",
    render_fps=60,
)

deps = AutoReupDeps(
    load_user_data=load_user_data,
    account_cookie_path=account_cookie_path,
    download_video=download_video_ytdlp_subprocess,
    render_video=render_video_ffmpeg,
    upload_video=upload_video_to_tiktok,
    generate_caption=generate_caption,
    animated_progress=animated_progress,
)

svc = AutoReupService(cfg, deps)
svc.init_db()

Build Nuitka (Windows)

python -m pip install -U nuitka build
python -m nuitka --module tiktok_autoreup_core/core.py --output-dir build/nuitka
Copy-Item build/nuitka/core*.pyd tiktok_autoreup_core/ -Force
python -m build --wheel

Build Nuitka (Linux)

python -m pip install -U nuitka build
python -m nuitka --module tiktok_autoreup_core/core.py --output-dir build/nuitka
cp build/nuitka/core*.so tiktok_autoreup_core/
python -m build --wheel

Publish to PyPI

python -m pip install -U twine
python -m twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

tiktok_autoreup_core-0.1.0-cp314-cp314-win_amd64.whl (172.9 kB view details)

Uploaded CPython 3.14Windows x86-64

tiktok_autoreup_core-0.1.0-cp313-cp313-manylinux_2_42_aarch64.whl (383.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.42+ ARM64

File details

Details for the file tiktok_autoreup_core-0.1.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 83b818eb0077bb93a63eacd42f5a8ccf7dc4312ddf083a32584fbeb1c5e56c7c
MD5 ee60c8d589e55af901ed944e3ba2772f
BLAKE2b-256 e866a713154a0d3b793de048ec8bb64f0b512b9861e5c141c05879d68803a63a

See more details on using hashes here.

File details

Details for the file tiktok_autoreup_core-0.1.0-cp313-cp313-manylinux_2_42_aarch64.whl.

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.0-cp313-cp313-manylinux_2_42_aarch64.whl
Algorithm Hash digest
SHA256 63c8731e84c9b32232d114a0f993b2a335599c83fd742582ce97f458068f0865
MD5 6a96c3194fff6a7d9dc706016defab2e
BLAKE2b-256 3988fa0a67b464d0363d9617223fb7b7eeec849860738c0933a412fc6f456a5d

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