A Python client for the Video Jungle API
Project description
Video Jungle API Client
This is a Python client for the Video Jungle API. It provides a simple interface to interact with the Video Jungle API.
Installation
You can install the Video Jungle API client using pip:
pip install videojungle
Usage
Here's a simple example of how to use the Video Jungle API client:
from videojungle import ApiClient
import os
# Assumes you've set your API key as an environment variable
VJ_API_KEY = os.environ['VJ_API_KEY']
# Initialize API client
vj = ApiClient(token=VJ_API_KEY)
# Define your video generation task, along with variables to pass on generation
prompt = vj.prompts.generate(task="a horoscope reader who wants to leave the person excited about their future",
parameters=["zodiac sign", "lucky number", "lucky color"])
# Create a project to hold generated files, using our prompt we've generated
project = vj.projects.create(name="First Project",
description="My first project",
prompt_id=prompt["id"])
# Get a script for the generation process
script_id = project["script"]["id"]
# Generate a video from our created prompt with dynamic variables
video = project.generate(script_id=script_id,
project_id=project["id"],
parameters={"zodiac sign": "Aries",
"lucky number": "7",
"lucky color": "green"})
print(video)
This example lives in the examples/ folder.
License
This project is licensed under the 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
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 videojungle-0.1.2.tar.gz.
File metadata
- Download URL: videojungle-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d77a2d88abd4fbe623aec28c0e1d564dfe7e9a24daa7b5ab5e7848b1b2b745e
|
|
| MD5 |
1c6e36a01abae96dfb1b6f68838079c0
|
|
| BLAKE2b-256 |
d51cfd9a6ae190ab0674ca0293bd44e5069938a61355284b0bcc8780b0ad8046
|
File details
Details for the file videojungle-0.1.2-py3-none-any.whl.
File metadata
- Download URL: videojungle-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c8aec9fac43fbe0b95b98cae103b018d3994d0d5fd6c5cd1c95829f9e78d0c
|
|
| MD5 |
98bc4dc9b79d583500a31d1e76ce8da1
|
|
| BLAKE2b-256 |
0a5f58443b4fa5c8653953ffa7fc89184856413378da904e077f982fa5d40153
|