Opennote Python SDK
Project description
Opennote Python SDK
This is the Python SDK for the Opennote API. Read the documentation here and see more examples.
Installation
pip install opennote
Usage
Videos
from opennote import OpennoteClient
client = OpennoteClient(api_key="your_api_key")
# Create a video
video = client.video.create(
model="picasso",
messages=[{"role": "user", "content": "Make a video about the Silk Road"}],
include_sources=True,
search_for="Silk Road History",
source_count=5,
upload_to_s3=True,
title="The Silk Road",
)
# Get the status of a video
status = client.video.status(video.video_id)
Journals
from opennote import OpennoteClient
client = OpennoteClient(api_key="your_api_key")
# List all journals
journals_response = client.journals.list()
# Get content of a specific journal
if journals_response.success:
journal_content = client.journals.content(journals_response.journals[0].id)
Examples
For more detailed examples, see the examples directory.
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
opennote-2.0.2.tar.gz
(6.6 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 opennote-2.0.2.tar.gz.
File metadata
- Download URL: opennote-2.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d81339f7bf06e41e0a94325b3d93bbc992894311f61e891b66448fa4327e9d
|
|
| MD5 |
22984577a24e26e6d0ff0ae8659b7961
|
|
| BLAKE2b-256 |
40d2d197eb2998db9b588baa69242d43f10f097916a325e047e62717f772912f
|
File details
Details for the file opennote-2.0.2-py3-none-any.whl.
File metadata
- Download URL: opennote-2.0.2-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11872ed05de3ac2cce753b4c4dd8d8b7a8cbfd90bb42ad363c2131f6201e91e5
|
|
| MD5 |
c4ec1f1d40bd77ecb68066817a2967dd
|
|
| BLAKE2b-256 |
0e13059f9f21a1d7aea5da9a9994ba37d94fa4874323c65d188385e8b57dda80
|