SDK for creating videos programmatically using JSON2Video API
Project description
JSON2Video Python SDK
Python SDK for creating videos programmatically using JSON2Video API.
Installation
pip install json2video
Quick Start
from json2video import Movie, Scene
# Create a new movie
movie = Movie()
movie.set_api_key("YOUR-API-KEY") # Get your API key at https://json2video.com/get-api-key/
# Set movie properties
movie.set("width", 1920)
movie.set("height", 1080)
# Create a scene
scene = Scene()
scene.set("duration", 5)
scene.set("background-color", "#000000")
# Add elements to the scene
scene.add_element({
"type": "text",
"text": "Hello World!",
"style": {
"fontSize": 64,
"color": "#FFFFFF"
}
})
# Add scene to movie
movie.add_scene(scene)
# Render the movie
response = movie.render()
# Wait for the movie to finish rendering
result = movie.wait_to_finish()
print(result)
Documentation
For full documentation, visit JSON2Video Documentation.
Requirements
- Python 3.8 or higher
requestslibrary
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json2video-2.0.0.tar.gz
(4.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file json2video-2.0.0.tar.gz.
File metadata
- Download URL: json2video-2.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d8c3352db72ac6be67d8e15ffcff1616cd3af0dfb219816b07871029bcc0a4b
|
|
| MD5 |
9ef86d1718efbb17f4c20ec36ded0038
|
|
| BLAKE2b-256 |
1960b73ebfe17c3771ecaf580d16cd0fdae3484694e7c2cd19c932b95b87b235
|
File details
Details for the file json2video-2.0.0-py3-none-any.whl.
File metadata
- Download URL: json2video-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f81c0e4bc5d802c351b9c6450b6a5439e413b3eedeccdefd719078e63fbd178d
|
|
| MD5 |
15a98a9eda6d82aa0faa622ac2c92546
|
|
| BLAKE2b-256 |
d4814d67bcfe5dff0e890585e14aecae1cff4e377cb1e6501ddfbe7192517333
|