Skip to main content

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


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.3.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opennote-2.3.0-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file opennote-2.3.0.tar.gz.

File metadata

  • Download URL: opennote-2.3.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for opennote-2.3.0.tar.gz
Algorithm Hash digest
SHA256 8d130b34bcfa89d65f00a9a6261e6ea773acc65cdcc6655a3f7837e5df98a663
MD5 96f51b7af7113132bc98f34c4dc737b4
BLAKE2b-256 aa0bc984e5ceca627057d432701c9ae14876de5a9977e52555b9f04e9b71b926

See more details on using hashes here.

File details

Details for the file opennote-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: opennote-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for opennote-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9000b907cb2050dcb62dbd8b0ab25502a86e0a26d02e37185d2f9895a338d3ac
MD5 6a6018596dfebfa778f1f0de0b5e8d16
BLAKE2b-256 2c4642988ca3ddb92d88ec6c87b701bbeba9c7676ae1027e9ed0b473d621fae5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page