reeln-plugin-tiktok
A reeln-cli plugin for uploading rendered videos to TikTok.
Install
pip install reeln-plugin-tiktok
Or for development:
git clone https://github.com/StreamnDad/reeln-plugin-tiktok
cd reeln-plugin-tiktok
make dev-install
Configuration
Add the plugin to your reeln config:
{
"plugins": {
"enabled": ["tiktok"],
"settings": {
"tiktok": {
"upload_shorts": true,
"upload_videos": false,
"client_key": "awxxxxxxxxxxxxxxxx",
"client_secret_file": "/path/to/tiktok_client_secret.txt",
"privacy_level": "SELF_ONLY"
}
}
}
}
OAuth Setup
This plugin requires TikTok OAuth2 credentials. For the initial setup:
- Create a TikTok Developer App at developers.tiktok.com
- Add scopes:
video.upload(inbox/drafts) and optionallyvideo.publish(direct post) - Complete the OAuth2 authorization flow to obtain tokens
- Save the credentials to
~/Library/Application Support/reeln/data/tiktok/oauth.json:
{
"access_token": "act.xxx",
"refresh_token": "rft.xxx",
"expires_at": 1712345678.0,
"open_id": "xxx",
"scope": "video.upload,user.info.basic"
}
The plugin automatically refreshes expired tokens using the refresh token.
Config Options
| Option | Type | Default | Description |
|---|---|---|---|
upload_shorts |
bool | false |
Upload portrait renders (width < height) |
upload_videos |
bool | false |
Upload landscape/square renders |
direct_post |
bool | false |
Publish directly to feed (vs inbox/drafts) |
dry_run |
bool | false |
Log actions without calling TikTok API |
client_key |
str | required | TikTok app client key |
client_secret_file |
str | required | Path to client secret file |
credentials_cache |
str | auto | OAuth token cache path |
privacy_level |
str | SELF_ONLY |
PUBLIC_TO_EVERYONE, MUTUAL_FOLLOW_FRIENDS, FOLLOWER_OF_CREATOR, SELF_ONLY |
disable_duet |
bool | false |
Disable duets |
disable_comment |
bool | false |
Disable comments |
disable_stitch |
bool | false |
Disable stitch |
brand_content_toggle |
bool | false |
Paid partnership disclosure (branded content) |
brand_organic_toggle |
bool | false |
Your own brand disclosure |
caption_template |
str | "" |
Template with {home_team}, {away_team}, {date}, {venue}, {sport} |
video_cover_timestamp_ms |
int | 1000 |
Cover frame offset (ms) |
chunk_size_bytes |
int | 10485760 |
Upload chunk size (10 MB) |
upload_poll_interval_seconds |
int | 5 |
Status poll interval |
upload_poll_max_attempts |
int | 60 |
Max poll attempts |
Development
make dev-install # uv venv + editable install with dev deps
make test # pytest with 100% coverage
make lint # ruff check
make format # ruff format
make check # lint + mypy + test
License
AGPL-3.0-only
Metadata
Release files for reeln-plugin-tiktok 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| reeln_plugin_tiktok-0.4.0.tar.gz | 31.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reeln_plugin_tiktok-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.1 kB
Release files / reeln_plugin_tiktok-0.4.0.tar.gz
| Download URL | reeln_plugin_tiktok-0.4.0.tar.gz |
|---|---|
| Size | 31.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29b8d7ec77b23cc8af63f649d23441417f51dfd5e7cb2281cca0e1269165c131
|
|
BLAKE2b-256 checksum How to use checksums |
6e63ad580531b1c531c0bcf45e78db1df22b6c36b61dad243cd8334fa3419599
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logRelease files / reeln_plugin_tiktok-0.4.0-py3-none-any.whl
| Download URL | reeln_plugin_tiktok-0.4.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d144bbb84888e2ab15d50f2846a54f0e6ce9d8476865b40097237d21b8262aca
|
|
BLAKE2b-256 checksum How to use checksums |
9a02deba40109f06e09fb8c98dff431ced844f6c782ea673c9b7a2b00d4f3359
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logSecurity for reeln-plugin-tiktok 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for reeln_plugin_tiktok-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.