Skip to main content

nao Core is your analytics context builder with the best chat interface.

Project description

nao CLI

Command-line interface for nao chat.

Installation

pip install nao-core

Usage

nao --help
Usage: nao COMMAND

╭─ Commands ────────────────────────────────────────────────────────────────╮
│ chat         Start the nao chat UI.                                       │
│ init         Initialize a new nao project.                                │
│ --help (-h)  Display this message and exit.                               │
│ --version    Display application version.                                 │
╰───────────────────────────────────────────────────────────────────────────╯

Initialize a new nao project

nao init

This will create a new nao project in the current directory. It will prompt you for a project name and ask you if you want to set up an LLM configuration.

Start the nao chat UI

nao chat

This will start the nao chat UI. It will open the chat interface in your browser at http://localhost:5005.

Development

Building the package

cd cli
python build.py --help
Usage: build.py [OPTIONS]

Build and package nao-core CLI.

╭─ Commands ────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help (-h)  Display this message and exit.                                                               │
│ --version    Display application version.                                                                 │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ──────────────────────────────────────────────────────────────────────────────────────────────╮
│ --force -f --no-force              Force rebuild the server binary [default: False]                       │
│ --skip-server -s --no-skip-server  Skip server build, only build Python package [default: False]          │
│ --bump                             Bump version before building (patch, minor, major) [choices: patch,    │
│                                    minor, major]                                                          │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯

This will:

  1. Build the frontend with Vite
  2. Compile the backend with Bun into a standalone binary
  3. Bundle everything into a Python wheel in dist/

Options:

  • --force / -f: Force rebuild the server binary
  • --skip-server: Skip server build, only build Python package
  • --bump: Bump version before building (patch, minor, major)

Installing for development

cd cli
pip install -e .

Publishing to PyPI

# Build first
python build.py

# Publish
uv publish dist/*

Architecture

nao chat (CLI command)
    ↓ spawns
nao-chat-server (Bun-compiled binary)
    ↓ serves
Backend API + Frontend Static Files
    ↓
Browser at http://localhost:5005

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

nao_core-0.0.15.tar.gz (23.2 MB view details)

Uploaded Source

Built Distribution

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

nao_core-0.0.15-py3-none-any.whl (23.2 MB view details)

Uploaded Python 3

File details

Details for the file nao_core-0.0.15.tar.gz.

File metadata

  • Download URL: nao_core-0.0.15.tar.gz
  • Upload date:
  • Size: 23.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for nao_core-0.0.15.tar.gz
Algorithm Hash digest
SHA256 bba0edabac34b01e2df701cb81438bb916c3efc52423fef3afcdb4384483fbb9
MD5 12c4294ab7b6812f5f54bef2b9ba35a9
BLAKE2b-256 b8145c9ff0dfc4a97eddd7c80fae942e13f3e77ac5f32271f85449d656bf9127

See more details on using hashes here.

File details

Details for the file nao_core-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: nao_core-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 23.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for nao_core-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 73e3ade9e6eff7e3d5d204952582d100e2fd8c95fee8af7a38be2c9495e029c5
MD5 4c7ed1d1a0808a38f47a884be0f4069f
BLAKE2b-256 c5b32951f00e89ee947f7b6bfb67f630cb4d07665a77ab9b08bc577609dd9ba2

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