langchain-ilovevideoeditor
Render MP4 videos from your LangChain agents with the iLoveVideoEditor cloud rendering API.
The package exposes ILoveVideoEditorTool, a LangChain tool that takes a
VideoJSON specification, queues a
cloud render, and returns the finished video's download URL.
Installation
pip install -U langchain-ilovevideoeditor
Set your API key (get one from the dashboard):
export ILOVEVIDEOEDITOR_API_KEY="vf_live_..."
Usage
from langchain_ilovevideoeditor import ILoveVideoEditorTool
tool = ILoveVideoEditorTool()
result = tool.invoke({
"video_json": {
"name": "hello",
"layers": [
{
"type": "text",
"settings": {
"startTime": 0,
"duration": 3,
"text": "Hello from LangChain",
"fontSize": 64,
"color": "#ffffff",
},
}
],
}
})
# '{"jobId": "425ba18a-...", "status": "completed", "downloadUrl": "https://..."}'
Queue without waiting for the render to finish:
result = tool.invoke({
"video_json": video_json,
"wait_for_completion": False,
})
# '{"jobId": "425ba18a-...", "status": "queued"}'
With an agent
from langchain_ilovevideoeditor import ILoveVideoEditorTool
tools = [ILoveVideoEditorTool()]
# pass `tools` to your agent / model.bind_tools(...)
Configuration
| Option | Default | Description |
|---|---|---|
api_key |
env ILOVEVIDEOEDITOR_API_KEY |
API key (required) |
base_url |
env ILOVEVIDEOEDITOR_API_BASE or https://api.ilovevideoeditor.com |
API base URL |
max_wait_seconds |
300 |
Max time to poll for completion |
poll_interval_seconds |
2 |
Interval between status polls |
Development
uv sync --group test --group lint
uv run pytest tests/unit_tests
uv run ruff check langchain_ilovevideoeditor tests
Integration tests hit the real API and are skipped unless
ILOVEVIDEOEDITOR_API_KEY is set:
ILOVEVIDEOEDITOR_API_KEY=vf_live_... uv run pytest tests/integration_tests
License
MIT
Metadata
Release files for langchain-ilovevideoeditor 0.1.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 | |
|---|---|---|---|
| langchain_ilovevideoeditor-0.1.0.tar.gz | 96.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_ilovevideoeditor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.4 kB
Release files / langchain_ilovevideoeditor-0.1.0.tar.gz
| Download URL | langchain_ilovevideoeditor-0.1.0.tar.gz |
|---|---|
| Size | 96.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53c34d61d82b970dc5a544a1bcec7a0e55e4bb32ab16a580c0e11e0f56db837a
|
|
BLAKE2b-256 checksum How to use checksums |
636053f5d91f2725baa5a709c35b2eec09e5ed3a3fe9c605f8152264ce8b6089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / langchain_ilovevideoeditor-0.1.0-py3-none-any.whl
| Download URL | langchain_ilovevideoeditor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4944d764e6e197dad7314decab63c3c116f2f7b3a5bb23564d134c84c4414259
|
|
BLAKE2b-256 checksum How to use checksums |
8e880bd32dc326fb082e384af2fc0e9b563911658bed00010716833ef7c43561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|