Skip to main content

reelspan

The official Python client for the Reelspan API. Publish one video, photo set or text post to TikTok, YouTube, Instagram, Facebook, X, Threads, LinkedIn, Pinterest, Bluesky, Reddit, Google Business, Telegram, Discord, Slack, Mastodon, Dev.to, Hashnode, WordPress and more, schedule it, and read how it did.

  • Standard library only. Python 3.10+, fully typed.
  • Retries network errors, 429s and 5xx answers with backoff, honouring Retry-After.
  • Every post carries an Idempotency-Key, so a retried post is never published twice.
  • Large files go straight to storage in parts, read from disk piece by piece, with progress and per-part retries.
pip install reelspan

Quick start

from reelspan import Reelspan

reelspan = Reelspan()  # reads REELSPAN_API_KEY

post = reelspan.posts.video(
    user="my-brand",  # a profile's username
    platforms=["tiktok", "youtube", "instagram"],
    video="launch.mp4",  # a path, (name, bytes), or a public https URL
    title="Launch day",
)
for platform, result in post["results"].items():
    print(platform, result.get("url") if result["success"] else result.get("error"))

Posting

# photos or a carousel, in order, with alt text
reelspan.posts.photos("my-brand", ["instagram", "pinterest"], ["front.jpg", "back.jpg"], "New colours", alt_texts=["Front", "Back"], extra={"pinterest_board_id": "123"})

# text: long posts become threads on X and Bluesky
reelspan.posts.text("my-brand", ["x", "bluesky", "threads", "linkedin"], "We shipped it.")

# a PDF to LinkedIn as a swipeable document
reelspan.posts.document("my-brand", "q3-report.pdf", "Q3 report")

# schedule, queue or repeat
reelspan.posts.video("my-brand", ["tiktok"], "clip.mp4", scheduled_date="2026-12-01T09:00:00Z")
reelspan.posts.video("my-brand", ["tiktok"], "clip.mp4", add_to_queue=True)
reelspan.posts.text("my-brand", ["x"], "Weekly tip", scheduled_date=when, repeat_every="week", repeat_times=6)

# network settings go in extra
reelspan.posts.video("my-brand", ["reddit", "tiktok"], "clip.mp4", "Clip", extra={"reddit_subreddit": "videos", "privacy_level": "PUBLIC_TO_EVERYONE"})

Pass run_async=True to get a request_id at once, then:

request_id = reelspan.posts.video("my-brand", ["youtube"], "long.mp4", run_async=True)["request_id"]
done = reelspan.posts.wait(request_id)  # polls until every network has finished
reelspan.posts.retry(request_id)  # sends the failed networks again

Large files

Files from 90 MB go up in parts on their own. To upload once and reuse:

media = reelspan.media.upload("film.mp4", kind="video", on_progress=lambda sent, total: print(f"{sent * 100 // total}%"))
reelspan.posts.video("my-brand", ["youtube"], video_media_id=media["media_id"], title="The film")

Profiles and accounts

reelspan.profiles.create("client-a", "Client A")

# networks that sign in with OAuth: send your customer to a hosted, branded page
link = reelspan.connect.link("client-a", logo_image="https://…", redirect_url="https://you.com/done")["access_url"]

# networks that use credentials: connect them straight from your code
reelspan.accounts.connect("client-a", "discord", webhook_url="https://discord.com/api/webhooks/…")
reelspan.accounts.connect("client-a", "mastodon", instance_url="mastodon.social", access_token="…")

reelspan.accounts.disconnect("client-a", "discord")

History, analytics and scheduling

for row in reelspan.posts.all(platform="tiktok", status="failed"):
    print(row)
reelspan.analytics.account("my-brand")
reelspan.analytics.best_times("my-brand", timezone="Asia/Karachi")
reelspan.scheduled.list(profile_username="my-brand")
reelspan.scheduled.cancel(job_id, with_later_repeats=True)

Also: queue, library, approvals, ai (captions from a video or your text), pinterest.create_board, webhooks (account and per-profile), and request(method, path) for anything else.

Webhooks

from reelspan import verify_webhook

@app.post("/reelspan")
def hook(request):
    ok = verify_webhook(request.body, request.headers.get("X-Reelspan-Signature"), request.headers.get("X-Reelspan-Timestamp"), SECRET)
    if not ok:
        return Response(status=401)
    ...

Errors

from reelspan import ReelspanError, ReelspanConnectionError

try:
    reelspan.posts.text("my-brand", ["x"], "Hi")
except ReelspanError as e:
    print(e.status, e.code, e, e.retry_after)
except ReelspanConnectionError as e:
    print("no answer:", e)

Options

Reelspan(
    api_key="rs_live_…",  # or REELSPAN_API_KEY
    base_url="https://api.reelspan.com",
    timeout=120,  # seconds per attempt
    max_retries=2,
    headers={"X-My-App": "scheduler"},
)

Use a test key (rs_test_…) to try everything without publishing. reelspan.rate_limit holds the limit the API reported last. Full reference: reelspan.com/docs.

MIT licensed.

Metadata

Release files for reelspan 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reelspan 1.0.2
File Size Uploaded Provenance Actions
reelspan-1.0.2.tar.gz 18.3 kB With provenance Details for reelspan-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reelspan 1.0.2
File Interpreter ABI Platform Actions
reelspan-1.0.2-py3-none-any.whl Python 3 none any Details for reelspan-1.0.2-py3-none-any.whl

Total release size: 32.8 kB

Release files / reelspan-1.0.2.tar.gz

Download URL reelspan-1.0.2.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8c209598538ba78843a8fbb6b2bc7b3568394c86f804eb745cefa1783b16e076
BLAKE2b-256 checksum
How to use checksums
b257d34e9aab48ade8b9115d42508674d46f7c4a6bfa4a4d90d8a5ccabfccc74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Release files / reelspan-1.0.2-py3-none-any.whl

Download URL reelspan-1.0.2-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
deca7cdf3d3186c593a0e9ab349df570b8e64f8522a79d3fcb32a713d9d9ef3f
BLAKE2b-256 checksum
How to use checksums
6bd7dd58180dc4c15f5786f0ef9eba275aa9d0c6aabf0b1393a5c7145f14450d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Security for reelspan 1.0.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for reelspan-1.0.2.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 Nov 11, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page