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.2.1.tar.gz (7.8 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.2.1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for opennote-2.2.1.tar.gz
Algorithm Hash digest
SHA256 cd842383eb49903edbf4309239a3a29601270354380d91378403bf6d7baef20e
MD5 e2917c1af70d36a7b121c8a4a61414fb
BLAKE2b-256 00faf2047fc4a24a891d74e1b4c956279f7de6eea31d89a99c1c8726a8b6c3eb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for opennote-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a11292706c7716dbf215db925212e14c2c78cb9086e0dc7b870ca106a932a1f
MD5 63b7dbefe9090b534d212065ab64c6ee
BLAKE2b-256 dd5776a10caf0c923d442fd7d61edfc2630738674f5c0d4ec1ba67d9e277eb8c

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