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
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tiktok_autoreup_core-0.1.4-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: tiktok_autoreup_core-0.1.4-cp314-cp314-win_amd64.whl
- Upload date:
- Size: 561.8 kB
- Tags: CPython 3.14, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7de876d2ded92954c53c3349aa17b4da5095751ca61f259d8409ff7913f5f54f
|
|
| MD5 |
1ef206b3079f73e1eb956406e77c0adc
|
|
| BLAKE2b-256 |
46c61086f3aae906160fcbb070eda3dbdaab21593e40d8ee92e76a6cf5bed840
|
File details
Details for the file tiktok_autoreup_core-0.1.4-cp313-cp313-manylinux_2_42_aarch64.whl.
File metadata
- Download URL: tiktok_autoreup_core-0.1.4-cp313-cp313-manylinux_2_42_aarch64.whl
- Upload date:
- Size: 731.3 kB
- Tags: CPython 3.13, manylinux: glibc 2.42+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98f1ca6bcb1a4c048f09cab79104b1ffeb43b0e211b9968ef7e40b9a37fb85df
|
|
| MD5 |
e8b8ae5c48e20df1ea8402a193509336
|
|
| BLAKE2b-256 |
04cb63bc8a09e7a2ca20b758093a286d4b787ff83425fb5601767a7f62cfc021
|