Skip to main content

A Python client SDK for the Nova hackathon

Project description

Nova SDK

Nova SDK is a client library for interacting with the NOVA hackathon hosted by ScottyLabs. It allows users to create messages containing text, images, and audio and process them for various outputs like text, images, or audio.

Installation

pip install nova_client_sdk

Basic Usage

# import nova_sdk
from nova_sdk import NovaClient, Message, TextToSpeech

# Initialize the NovaClient with a team ID and server url
nova = NovaClient(team_id='your_team_id', server_url="[SERVER_URL]")

# Create a message with text and an image
message = Message(
    text="Describe this image.",
    images=['path/to/image.jpg']
)

# Process the message to get text output
response = nova.process_message(message, output_modality='text')
print(response)

# Use TextToSpeech
tts = TextToSpeech(nova, provider='hume')
audio_content = tts.synthesize("Hello, this is a test.")
with open('output_audio.wav', 'wb') as f:
    f.write(audio_content)

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

nova_client_sdk-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

nova_client_sdk-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file nova_client_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: nova_client_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for nova_client_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ca083c2d4bbe14c9a2c12ae2cf58cb8fcca339e61f978b8b199c7a47532b1f6
MD5 5724c8dd37aa3f3cc3175142ed72990e
BLAKE2b-256 b0a04ec9903c544e0d3989a34f064bb4edcebd151a4c5c0d046c168931853a24

See more details on using hashes here.

File details

Details for the file nova_client_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nova_client_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee34c3c3e639cf7667d60cdd00dbb7279511a8fee686f112fb3432eb87f8df22
MD5 a33bd8e968c95e08ed4d9de7376d659a
BLAKE2b-256 99c1da42d48d0f325e66b1ecbcc0bcfd038c5e5c319b83b45542a599f7750da9

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