Skip to main content

exaone

An unofficial Python client for the EXAONE API Platform, with sync and async access to its endpoints.

Install

uv add exaone
# or
pip install exaone

Set your API key

The client reads EXAONE_API_KEY from the process environment. It does not load .env files itself.

# macOS / Linux
export EXAONE_API_KEY="your-api-key"
# Windows PowerShell
$env:EXAONE_API_KEY = "your-api-key"

Chat

import asyncio

from exaone import AsyncExaone, ChatCompletionRequest, ChatMessageRequest, Exaone

request = ChatCompletionRequest(
    messages=[ChatMessageRequest(role="user", content="Hi!")],
    reasoning_effort="low",
)


def sync_examples():
    with Exaone() as client:
        # Synchronous chat
        response = client.chat.create(request)
        print(response.choices[0].message.content)

        # Synchronous streaming
        for chunk in client.chat.stream(request):
            if chunk.choices:
                content = chunk.choices[0].delta.content
                if content:
                    print(content, end="", flush=True)
        print()


async def async_examples():
    async with AsyncExaone() as client:
        # Asynchronous chat
        response = await client.chat.create(request)
        print(response.choices[0].message.content)

        # Asynchronous streaming
        async for chunk in client.chat.stream(request):
            if chunk.choices:
                content = chunk.choices[0].delta.content
                if content:
                    print(content, end="", flush=True)
        print()


sync_examples()
asyncio.run(async_examples())

Tabular prediction

Pass a training CSV with the target column and a test CSV containing only the feature columns for prediction.

from exaone import ClassificationRequest, Exaone, RegressionRequest

classification_request = ClassificationRequest(
    target_columns=["churn"],
    output_type="probability",
)
regression_request = RegressionRequest(
    target_columns=["price"],
    output_type="point",
)

with Exaone() as client:
    # Classification
    classification = client.tabular.classify(
        "classification_train.csv",
        "classification_test.csv",
        classification_request,
    )
    print("Classes:", classification.data.classes)
    print("Probabilities:", classification.data.probabilities)

    # Regression
    regression = client.tabular.regress(
        "regression_train.csv",
        "regression_test.csv",
        regression_request,
    )
    print("Predictions:", regression.data.predictions)

Metadata

Release files for exaone 0.1.0

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

Source distribution (sdist)

Source distribution for exaone 0.1.0
File Size Uploaded Provenance Actions
exaone-0.1.0.tar.gz 8.6 kB Without provenance Details for exaone-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exaone 0.1.0
File Interpreter ABI Platform Actions
exaone-0.1.0-py3-none-any.whl Python 3 none any Details for exaone-0.1.0-py3-none-any.whl

Total release size: 20.9 kB

Release files / exaone-0.1.0.tar.gz

Download URL exaone-0.1.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ace03791da09a33304dd584c12fefb68ee5a3023786430fc3772a9954ab5a7cc
BLAKE2b-256 checksum
How to use checksums
254370b416d4935334c095dae554d6424398387d23011f19fcb5ad59e8ce41b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / exaone-0.1.0-py3-none-any.whl

Download URL exaone-0.1.0-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bade38cac182b71c4cc8d828b32854d503c721a430651095775922aae954643e
BLAKE2b-256 checksum
How to use checksums
db6a692bbbe08b0b1e6ec1abc303ef05a61c69a25c301e0df17c2a3359f53f64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for exaone 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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