lightreel
The API to answer any social media questions.
Tiny client + CLI for the Lightreel API. Ask Lightreel questions from your code or terminal.
Ask about TikTok and Instagram, find trends, creators, and more.
Zero dependencies (standard library only). Works as an import and as a CLI.
Install
pip install lightreel
# or run the CLI without installing:
pipx run lightreel "find me the top fitness hooks this week"
Use it in code
from lightreel import Lightreel
client = Lightreel(api_key="lr_live_xxx") # or set LIGHTREEL_API_KEY
# Plain question
res = client.chat(question="find me the top fitness hooks this week")
print(res["answer"]) # prose string
print(res["conversationId"])
# Continue the conversation
client.chat(question="give me 5 more", conversation_id=res["conversationId"])
# Structured output (max 5 fields) — "answer" comes back as a dict
out = client.chat(
question="find me the top fitness hooks this week",
response_fields={
"hooks": {"type": "array", "description": "the hook lines"},
"summary": {"type": "string", "description": "one-paragraph recap"},
},
)
print(out["answer"]["hooks"])
# History
client.list_chats()
client.get_chat(res["conversationId"])
Requests default to a 20-minute timeout because /v1/chat runs the agent live and can take a few minutes. Override with Lightreel(timeout=seconds).
Use it in the terminal
export LIGHTREEL_API_KEY=lr_live_xxx
lightreel "find me the top fitness hooks this week"
lightreel "give me 5 more" -c <conversationId>
lightreel "top fitness hooks" -f "hooks:array:the hook lines" -f "summary:string:one-paragraph recap"
lightreel list
lightreel get <conversationId>
| Flag | Meaning |
|---|---|
-k, --key |
API key (or LIGHTREEL_API_KEY) |
-c, --conversation |
continue an existing conversation |
-f, --field name:type:description |
request structured output (repeatable, max 5; type = string|array) |
--json |
print the raw JSON response |
Errors
Non-2xx responses raise LightreelError with .status and .type.
Metadata
Release files for lightreel 0.1.1
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 | Actions |
|---|---|---|---|---|
| lightreel-0.1.1.tar.gz | 6.1 kB | Without provenance | Details for lightreel-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lightreel-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for lightreel-0.1.1-py3-none-any.whl |
Total release size: 13.3 kB
Release files / lightreel-0.1.1.tar.gz
| Download URL | lightreel-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7ddb56cc6270ee53e1b0e9dc06688d2a5d79454331117eefe37be6981f3a57f0
|
|
BLAKE2b-256 checksum How to use checksums |
6cc24498ce12c803fd72986bcc9849940c2955b86700a125e164ee64f99c870e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / lightreel-0.1.1-py3-none-any.whl
| Download URL | lightreel-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
805eef428818f935e50161575caa0ca76f92eabe56f36f921eab9b1895b36aa9
|
|
BLAKE2b-256 checksum How to use checksums |
cf62dca7459d595f4ab18ceab93e8a0d436c2d3e3eedc39cca498fbe4b2055ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for lightreel 0.1.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.