Skip to main content

NOVA Machine to Machine Client

The NOVA client allows to you interact with the NOVA Machine to Machine API to create chat completions and manage sessions.

Installation

pip install nova-client

Usage

from nova_client import NOVAClient

async def main():
    client = NOVAClient(api_key="...")

    session = await client.client_sessions.create_session(bot_id="bot-...")
    token = session.session_token
    # The session token can be shared with an end device (e.g. website, mobile app).

    # To create completions directly:
    stream = session.send_message("Tell me a joke!")

    async for event in stream:
        print("event:", event)

Cancellation

The NOVA Api supports interruptions of completions. To cancel a completion, you can cancel the asyncio task that is running the completion.

import asyncio
from nova_client import NOVAClient

async def run_completion():
    client = NOVAClient(api_key="...")
    session = await client.client_sessions.create_session(bot_id="bot-...")

    stream = session.send_message("Tell me a joke!")

    async for event in stream:
        print("event:", event)


async def main():
    task = asyncio.create_task(run_completion())
    await asyncio.sleep(5)
    task.cancel()
    await task

Metadata

Release files for nova-client 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nova-client 0.0.5
File Size Uploaded Provenance
nova_client-0.0.5.tar.gz 10.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nova-client 0.0.5
File Interpreter ABI Platform
nova_client-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 19.5 kB

Release files / nova_client-0.0.5.tar.gz

Download URL nova_client-0.0.5.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dac59705b51e85ef5f678ec65a19ae5da484e66ffb835ab8aa43d3ae1f846ed0
BLAKE2b-256 checksum
How to use checksums
da9bf0d7f410b4a7334ad6fa565d58cb242a0467caf8d3ef9d5d3a19885ba6c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / nova_client-0.0.5-py3-none-any.whl

Download URL nova_client-0.0.5-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d2be4c448d0a8b056ed38d804b63d9f96b1e7e2db9459210ff6b5a8ba854cfc
BLAKE2b-256 checksum
How to use checksums
9fd71a88dda35c1243d123f0f02db7c9a36083a17ce9641a2c28775f8ecc210a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Security for nova-client 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page