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

Uploaded CPython 3.14Windows x86-64

tiktok_autoreup_core-0.1.1-cp313-cp313-manylinux_2_42_aarch64.whl (244.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.42+ ARM64

File details

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

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5bf37a5d5da9fb87bcceaf98b1e9b866cf2e9ec75176b905798cd4009e1263a0
MD5 b455380c4408d399a0635cb2bceeb5c4
BLAKE2b-256 c946adb42a46706bd6576b0f33fea11bdfc1dddc27d0d6c934c3d90b00374a30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tiktok_autoreup_core-0.1.1-cp313-cp313-manylinux_2_42_aarch64.whl
Algorithm Hash digest
SHA256 0783365f374990b7235841e5e350b468cdee0989a9c7976ee897ff691eea9e17
MD5 7a04d5c99ffe80b9c7dc27ccb6511b27
BLAKE2b-256 4289ee2cab3f8657b563a7ebef5ba820bb9c6d4887548ff671708d0007a41278

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