Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

opennote-dev/api-sdk-python

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Opennote API Python SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.