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.
Metadata
Release files for opennote 2.3.3
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 |
|---|---|---|---|---|
| opennote-2.3.3.tar.gz | 15.0 kB | Without provenance | Details for opennote-2.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| opennote-2.3.3-py3-none-any.whl | Python 3 | none | any | Details for opennote-2.3.3-py3-none-any.whl |
Total release size: 34.6 kB
Release files / opennote-2.3.3.tar.gz
| Download URL | opennote-2.3.3.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
beae609d342bac9983a4a5d081108f07b866767aec8ed0d944252b405ea65b5a
|
|
BLAKE2b-256 checksum How to use checksums |
a08314ee251a2440791468bc6e8fceb76a176b6a1d8ecc47f6f4325d197beaf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Release files / opennote-2.3.3-py3-none-any.whl
| Download URL | opennote-2.3.3-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fbca3ec1d6945b4630be2ffdb7dae89e69b3e2f7e674371f55209475b21e39f
|
|
BLAKE2b-256 checksum How to use checksums |
c297f92d29cfffe784e2b78297411a2af2912644e0f685f9eb9f37d11ecac88e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.1
|
Security for opennote 2.3.3
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.