Python SDK for reelsfa.st. Today it covers help reels: the short screen recordings an app shows in its help center. One reel per (app, topic, locale), so pushing the same topic again replaces the video.
pip install "reelsfast-sdk-python @ git+https://github.com/pamfilico/reelsfast-sdk-python.git@v0.1.0"Generate it on reelsfa.st under your app → Developer, which mints the API key. Save it at the
repo root and keep it out of git. The SDK finds it from an explicit path, then $REELSFAST_RC,
then by walking up from the current directory.
api_url: https://api.reelsfa.st
api_key: reelsfast-key_... # the default key
apps:
myapp:
app_id: 6f0c... # or the app's slug
locales: [en, el]
reels_dir: reelsfast/myapp # flows in definitions/, recordings in artifacts/
help_json: frontends/core/public/help.json # where `help pull` writes it
# (or public_dir: … → <public_dir>/help.json)
otherapp:
app_id: 9a1b...
api_key: reelsfast-key_... # optional per-app keyAn rc with a single top-level app_id: (no apps: map) still works.
Folder form, for repos that keep each app's brand beside its config, and for multi-app monorepos.
It is committed except credentials:
.reelsfastrc/
config.yaml api_url + apps.<name>: app_id, locales, reels_dir, help_json,
design_system: [paths] # where this app's design system lives
credentials GITIGNORED, chmod 600 — api_key: … and/or apps: {<name>: {api_key: …}}
apps/<name>/ brand.json, knowledge.md, assets/ (what `reelsfast brand push` sends)
Paths resolve against the repo root. REELSFAST_API_KEY / REELSFAST_API_URL override both forms.
from reelsfast_sdk import HelpReelMeta, ReelsfastClient, write_help_json
client, app = ReelsfastClient.from_rc("myapp")
client.help_reels.push(app.app_id, "artifacts/run/recording.webm",
HelpReelMeta(topic_slug="myapp_add_item", title="Add an item", locale="en", order_index=10))
feed = client.help_reels.help_json(app.app_id, app.locales) # public, {locale: [items]}
write_help_json(feed, app.help_json)Each item has id, topic_slug, locale, title, body_markdown, order_index, video_url.
Demo videos (what the advert.cafe embed plays on "demo" — the app's default, or one made for an advert.cafe lead):
from reelsfast_sdk import DemoSlot
client.demos.upload(app.app_id, "demo-en-mobile.mp4", DemoSlot(kind="default", variant="main", locale="en", screen="mobile"))
client.demos.upload(app.app_id, "for-acme.mp4", DemoSlot(kind="lead", variant="v1", advertcafe_client_id=cid, advertcafe_lead_id=lid))
public = ReelsfastClient("https://api.reelsfa.st") # no key needed for these two
public.demos.catalog(app_id, client_id=cid, lead_id=lid) # {default: {variant: [locales]}, lead: {...}}
public.demos.resolve(app_id, client_id=cid, lead_id=lid, locale="el") # lead video, else the default demoBrand and library:
client.apps.update(app.app_id, brand={"name": "MyApp", "colors": {"primary": "#ff5f00"}}, knowledge="# MyApp …")
client.assets.upload("brand/wordmark.svg", key="myapp-wordmark", app_id=app.app_id) # SVG inline, raster → https urlErrors are typed: ReelsfastAuthError, ReelsfastNotFound, ReelsfastValidationError,
RcError, all subclasses of ReelsfastError.
The command line lives in reelsfast-cli.