nao-core 0.0.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ # Compiled server binary and frontend assets
2
+ nao_core/bin/
3
+
4
+ # Python cache
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ dist/
12
+ build/
13
+ *.egg-info/
14
+ *.egg
15
+
16
+ # Virtual environments
17
+ .venv/
18
+ venv/
19
+
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 nao Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
@@ -0,0 +1,130 @@
1
+ Metadata-Version: 2.4
2
+ Name: nao-core
3
+ Version: 0.0.10
4
+ Summary: nao Core is your analytics context builder with the best chat interface.
5
+ Project-URL: Homepage, https://getnao.io
6
+ Project-URL: Repository, https://github.com/naolabs/chat
7
+ Author: nao Labs
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Keywords: ai,analytics,chat
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: cyclopts>=4.4.4
23
+ Requires-Dist: ibis-framework[bigquery]>=9.0.0
24
+ Requires-Dist: openai>=1.0.0
25
+ Requires-Dist: pydantic>=2.10.0
26
+ Requires-Dist: pyyaml>=6.0.0
27
+ Requires-Dist: rich>=14.0.0
28
+ Description-Content-Type: text/markdown
29
+
30
+ # nao CLI
31
+
32
+ Command-line interface for nao chat.
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ pip install nao-core
38
+ ```
39
+
40
+ ## Usage
41
+
42
+ ```bash
43
+ nao --help
44
+ Usage: nao COMMAND
45
+
46
+ ╭─ Commands ────────────────────────────────────────────────────────────────╮
47
+ │ chat Start the nao chat UI. │
48
+ │ init Initialize a new nao project. │
49
+ │ --help (-h) Display this message and exit. │
50
+ │ --version Display application version. │
51
+ ╰───────────────────────────────────────────────────────────────────────────╯
52
+ ```
53
+
54
+ ### Initialize a new nao project
55
+
56
+ ```bash
57
+ nao init
58
+ ```
59
+
60
+ 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.
61
+
62
+ ### Start the nao chat UI
63
+
64
+ ```bash
65
+ nao chat
66
+ ```
67
+
68
+ This will start the nao chat UI. It will open the chat interface in your browser at `http://localhost:5005`.
69
+
70
+ ## Development
71
+
72
+ ### Building the package
73
+
74
+ ```bash
75
+ cd cli
76
+ python build.py --help
77
+ Usage: build.py [OPTIONS]
78
+
79
+ Build and package nao-core CLI.
80
+
81
+ ╭─ Commands ────────────────────────────────────────────────────────────────────────────────────────────────╮
82
+ │ --help (-h) Display this message and exit. │
83
+ │ --version Display application version. │
84
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
85
+ ╭─ Parameters ──────────────────────────────────────────────────────────────────────────────────────────────╮
86
+ │ --force -f --no-force Force rebuild the server binary [default: False] │
87
+ │ --skip-server -s --no-skip-server Skip server build, only build Python package [default: False] │
88
+ │ --bump Bump version before building (patch, minor, major) [choices: patch, │
89
+ │ minor, major] │
90
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
91
+ ```
92
+
93
+ This will:
94
+ 1. Build the frontend with Vite
95
+ 2. Compile the backend with Bun into a standalone binary
96
+ 3. Bundle everything into a Python wheel in `dist/`
97
+
98
+ Options:
99
+ - `--force` / `-f`: Force rebuild the server binary
100
+ - `--skip-server`: Skip server build, only build Python package
101
+ - `--bump`: Bump version before building (patch, minor, major)
102
+
103
+ ### Installing for development
104
+
105
+ ```bash
106
+ cd cli
107
+ pip install -e .
108
+ ```
109
+
110
+ ### Publishing to PyPI
111
+
112
+ ```bash
113
+ # Build first
114
+ python build.py
115
+
116
+ # Publish
117
+ uv publish dist/*
118
+ ```
119
+
120
+ ## Architecture
121
+
122
+ ```
123
+ nao chat (CLI command)
124
+ ↓ spawns
125
+ nao-chat-server (Bun-compiled binary)
126
+ ↓ serves
127
+ Backend API + Frontend Static Files
128
+
129
+ Browser at http://localhost:5005
130
+ ```
@@ -0,0 +1,101 @@
1
+ # nao CLI
2
+
3
+ Command-line interface for nao chat.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install nao-core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ nao --help
15
+ Usage: nao COMMAND
16
+
17
+ ╭─ Commands ────────────────────────────────────────────────────────────────╮
18
+ │ chat Start the nao chat UI. │
19
+ │ init Initialize a new nao project. │
20
+ │ --help (-h) Display this message and exit. │
21
+ │ --version Display application version. │
22
+ ╰───────────────────────────────────────────────────────────────────────────╯
23
+ ```
24
+
25
+ ### Initialize a new nao project
26
+
27
+ ```bash
28
+ nao init
29
+ ```
30
+
31
+ 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.
32
+
33
+ ### Start the nao chat UI
34
+
35
+ ```bash
36
+ nao chat
37
+ ```
38
+
39
+ This will start the nao chat UI. It will open the chat interface in your browser at `http://localhost:5005`.
40
+
41
+ ## Development
42
+
43
+ ### Building the package
44
+
45
+ ```bash
46
+ cd cli
47
+ python build.py --help
48
+ Usage: build.py [OPTIONS]
49
+
50
+ Build and package nao-core CLI.
51
+
52
+ ╭─ Commands ────────────────────────────────────────────────────────────────────────────────────────────────╮
53
+ │ --help (-h) Display this message and exit. │
54
+ │ --version Display application version. │
55
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
56
+ ╭─ Parameters ──────────────────────────────────────────────────────────────────────────────────────────────╮
57
+ │ --force -f --no-force Force rebuild the server binary [default: False] │
58
+ │ --skip-server -s --no-skip-server Skip server build, only build Python package [default: False] │
59
+ │ --bump Bump version before building (patch, minor, major) [choices: patch, │
60
+ │ minor, major] │
61
+ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
62
+ ```
63
+
64
+ This will:
65
+ 1. Build the frontend with Vite
66
+ 2. Compile the backend with Bun into a standalone binary
67
+ 3. Bundle everything into a Python wheel in `dist/`
68
+
69
+ Options:
70
+ - `--force` / `-f`: Force rebuild the server binary
71
+ - `--skip-server`: Skip server build, only build Python package
72
+ - `--bump`: Bump version before building (patch, minor, major)
73
+
74
+ ### Installing for development
75
+
76
+ ```bash
77
+ cd cli
78
+ pip install -e .
79
+ ```
80
+
81
+ ### Publishing to PyPI
82
+
83
+ ```bash
84
+ # Build first
85
+ python build.py
86
+
87
+ # Publish
88
+ uv publish dist/*
89
+ ```
90
+
91
+ ## Architecture
92
+
93
+ ```
94
+ nao chat (CLI command)
95
+ ↓ spawns
96
+ nao-chat-server (Bun-compiled binary)
97
+ ↓ serves
98
+ Backend API + Frontend Static Files
99
+
100
+ Browser at http://localhost:5005
101
+ ```
@@ -0,0 +1,2 @@
1
+ # nao Core CLI package
2
+ __version__ = "0.0.10"
File without changes