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.1.2.tar.gz (7.1 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.1.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for opennote-2.1.2.tar.gz
Algorithm Hash digest
SHA256 4da18b0d939192a94e98503d21fe41fc05c3aea7205ffd7ccf4f6beab5490a4f
MD5 f0475ba5d5fbff474dd5c05d503da963
BLAKE2b-256 18f6323318cfe29d50462ee15c176230464bc6c0e1e7346ecbc28a3c7be82d24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opennote-2.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 503b9ad881f07e505c828f571ea7eb84154429bc5c5b8160ecb044a5f9352b56
MD5 4ff5caada33a474a34be8934ffe55cd2
BLAKE2b-256 10a0c3d0cafc6a8cea3336e3011fdcfe4b146db6a71749aaaac341c2729a88b2

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