Skip to main content

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

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). Wheels produced by the build scripts are compiled-only and strip all .py files, so import from the submodule (see below).

Basic Usage

from tiktok_autoreup_core.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)

scripts\\build_nuitka.ps1

Build Nuitka (Linux)

scripts/build_nuitka.sh

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.4-cp314-cp314-win_amd64.whl (561.8 kB view details)

Uploaded CPython 3.14Windows x86-64

tiktok_autoreup_core-0.1.4-cp313-cp313-manylinux_2_42_aarch64.whl (731.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.42+ ARM64

File details

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

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7de876d2ded92954c53c3349aa17b4da5095751ca61f259d8409ff7913f5f54f
MD5 1ef206b3079f73e1eb956406e77c0adc
BLAKE2b-256 46c61086f3aae906160fcbb070eda3dbdaab21593e40d8ee92e76a6cf5bed840

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.4-cp313-cp313-manylinux_2_42_aarch64.whl
Algorithm Hash digest
SHA256 98f1ca6bcb1a4c048f09cab79104b1ffeb43b0e211b9968ef7e40b9a37fb85df
MD5 e8b8ae5c48e20df1ea8402a193509336
BLAKE2b-256 04cb63bc8a09e7a2ca20b758093a286d4b787ff83425fb5601767a7f62cfc021

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