ngpt 2.8.0__tar.gz → 2.9.1__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.
- {ngpt-2.8.0 → ngpt-2.9.1}/PKG-INFO +69 -17
- {ngpt-2.8.0 → ngpt-2.9.1}/README.md +66 -13
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/README.md +12 -3
- ngpt-2.9.1/docs/api/cli.md +389 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/configuration.md +45 -1
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/examples/README.md +21 -0
- ngpt-2.9.1/docs/examples/cli_components.md +831 -0
- ngpt-2.9.1/docs/installation.md +261 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/usage/README.md +40 -2
- ngpt-2.9.1/docs/usage/cli_framework.md +527 -0
- ngpt-2.9.1/docs/usage/cli_usage.md +750 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/usage/library_usage.md +168 -0
- ngpt-2.9.1/ngpt/cli/__init__.py +3 -0
- ngpt-2.9.1/ngpt/cli/config_manager.py +71 -0
- ngpt-2.9.1/ngpt/cli/formatters.py +239 -0
- ngpt-2.9.1/ngpt/cli/interactive.py +275 -0
- ngpt-2.9.1/ngpt/cli/main.py +583 -0
- ngpt-2.9.1/ngpt/cli/modes/__init__.py +6 -0
- ngpt-2.9.1/ngpt/cli/modes/chat.py +72 -0
- ngpt-2.9.1/ngpt/cli/modes/code.py +97 -0
- ngpt-2.9.1/ngpt/cli/modes/shell.py +46 -0
- ngpt-2.9.1/ngpt/cli/modes/text.py +72 -0
- ngpt-2.9.1/ngpt/cli/renderers.py +258 -0
- ngpt-2.9.1/ngpt/cli/ui.py +155 -0
- ngpt-2.9.1/ngpt/cli.py +4 -0
- ngpt-2.9.1/ngpt/utils/__init__.py +1 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/pyproject.toml +3 -7
- {ngpt-2.8.0 → ngpt-2.9.1}/uv.lock +4 -9
- ngpt-2.8.0/docs/installation.md +0 -124
- ngpt-2.8.0/docs/usage/cli_usage.md +0 -486
- ngpt-2.8.0/ngpt/cli.py +0 -1748
- {ngpt-2.8.0 → ngpt-2.9.1}/.github/workflows/python-publish.yml +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/.gitignore +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/.python-version +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/COMMIT_GUIDELINES.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/CONTRIBUTING.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/LICENSE +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/CONTRIBUTING.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/LICENSE.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/_config.yml +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/api/README.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/api/client.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/api/config.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/assets/css/style.scss +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/examples/advanced.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/examples/basic.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/examples/integrations.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/overview.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/docs/usage/cli_config.md +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/ngpt/__init__.py +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/ngpt/cli_config.py +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/ngpt/client.py +0 -0
- {ngpt-2.8.0 → ngpt-2.9.1}/ngpt/config.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ngpt
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.9.1
|
4
4
|
Summary: A lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints.
|
5
5
|
Project-URL: Homepage, https://github.com/nazdridoy/ngpt
|
6
6
|
Project-URL: Repository, https://github.com/nazdridoy/ngpt
|
@@ -28,10 +28,9 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
28
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
29
29
|
Classifier: Topic :: Utilities
|
30
30
|
Requires-Python: >=3.8
|
31
|
+
Requires-Dist: prompt-toolkit>=3.0.0
|
31
32
|
Requires-Dist: requests>=2.31.0
|
32
|
-
|
33
|
-
Requires-Dist: prompt-toolkit>=3.0.0; extra == 'full'
|
34
|
-
Requires-Dist: rich>=10.0.0; extra == 'full'
|
33
|
+
Requires-Dist: rich>=10.0.0
|
35
34
|
Description-Content-Type: text/markdown
|
36
35
|
|
37
36
|
# nGPT
|
@@ -43,6 +42,9 @@ Description-Content-Type: text/markdown
|
|
43
42
|
|
44
43
|
A lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints.
|
45
44
|
|
45
|
+

|
46
|
+
|
47
|
+
|
46
48
|
## Table of Contents
|
47
49
|
- [Quick Start](#quick-start)
|
48
50
|
- [Features](#features)
|
@@ -52,6 +54,7 @@ A lightweight Python CLI and library for interacting with OpenAI-compatible APIs
|
|
52
54
|
- [Documentation](https://nazdridoy.github.io/ngpt/)
|
53
55
|
- [CLI Tool](#as-a-cli-tool)
|
54
56
|
- [Python Library](#as-a-library)
|
57
|
+
- [CLI Framework](#as-a-cli-framework)
|
55
58
|
- [Configuration](#configuration)
|
56
59
|
- [Command Line Options](#command-line-options)
|
57
60
|
- [CLI Configuration](#cli-configuration)
|
@@ -64,11 +67,14 @@ A lightweight Python CLI and library for interacting with OpenAI-compatible APIs
|
|
64
67
|
## Quick Start
|
65
68
|
|
66
69
|
```bash
|
67
|
-
# Install
|
70
|
+
# Install with pip
|
68
71
|
pip install ngpt
|
69
72
|
|
70
|
-
#
|
71
|
-
pip install
|
73
|
+
# Or install with uv (faster)
|
74
|
+
uv pip install ngpt
|
75
|
+
|
76
|
+
# Or install globally as a CLI tool (recommended)
|
77
|
+
uv tool install ngpt
|
72
78
|
|
73
79
|
# Chat with default settings
|
74
80
|
ngpt "Tell me about quantum computing"
|
@@ -114,8 +120,8 @@ For more examples and detailed usage, visit the [CLI Usage Guide](https://nazdri
|
|
114
120
|
|
115
121
|
## Features
|
116
122
|
|
117
|
-
- ✅ **
|
118
|
-
- 🪶 **Lightweight**: Minimal dependencies
|
123
|
+
- ✅ **Versatile**: Use as a CLI tool, Python library, or CLI framework for building custom tools
|
124
|
+
- 🪶 **Lightweight**: Minimal dependencies with everything you need included
|
119
125
|
- 🔄 **API Flexibility**: Works with OpenAI, Ollama, Groq, and any compatible endpoint
|
120
126
|
- 💬 **Interactive Chat**: Continuous conversation with memory in modern UI
|
121
127
|
- 📊 **Streaming Responses**: Real-time output for better user experience
|
@@ -128,6 +134,7 @@ For more examples and detailed usage, visit the [CLI Usage Guide](https://nazdri
|
|
128
134
|
- 📝 **Rich Multiline Editor**: Interactive multiline text input with syntax highlighting and intuitive controls
|
129
135
|
- 🎭 **System Prompts**: Customize model behavior with custom system prompts
|
130
136
|
- 📃 **Conversation Logging**: Save your conversations to text files for later reference
|
137
|
+
- 🧰 **CLI Components**: Reusable components for building custom AI-powered command-line tools
|
131
138
|
|
132
139
|
See the [Feature Overview](https://nazdridoy.github.io/ngpt/overview.html) for more details.
|
133
140
|
|
@@ -141,25 +148,25 @@ Key documentation sections:
|
|
141
148
|
- [Installation Guide](https://nazdridoy.github.io/ngpt/installation.html)
|
142
149
|
- [CLI Usage Guide](https://nazdridoy.github.io/ngpt/usage/cli_usage.html)
|
143
150
|
- [Library Usage Guide](https://nazdridoy.github.io/ngpt/usage/library_usage.html)
|
151
|
+
- [CLI Framework Guide](https://nazdridoy.github.io/ngpt/usage/cli_framework.html)
|
144
152
|
- [Configuration Guide](https://nazdridoy.github.io/ngpt/configuration.html)
|
145
153
|
- [Examples & Tutorials](https://nazdridoy.github.io/ngpt/examples/basic.html)
|
146
154
|
|
147
155
|
## Installation
|
148
156
|
|
149
157
|
```bash
|
150
|
-
#
|
158
|
+
# Installation with pip
|
151
159
|
pip install ngpt
|
152
160
|
|
153
|
-
#
|
154
|
-
pip install
|
161
|
+
# Or install with uv (faster installation)
|
162
|
+
uv pip install ngpt
|
163
|
+
|
164
|
+
# Or install globally as a CLI tool (recommended for command-line usage)
|
165
|
+
uv tool install ngpt
|
155
166
|
```
|
156
167
|
|
157
168
|
Requires Python 3.8 or newer.
|
158
169
|
|
159
|
-
The full installation includes:
|
160
|
-
- Enhanced markdown rendering with syntax highlighting
|
161
|
-
- Improved interactive input experience with multiline editing
|
162
|
-
|
163
170
|
For detailed installation instructions, see the [Installation Guide](https://nazdridoy.github.io/ngpt/installation.html).
|
164
171
|
|
165
172
|
## Usage
|
@@ -279,6 +286,49 @@ print(code)
|
|
279
286
|
|
280
287
|
For advanced usage patterns and integrations, check out the [Advanced Examples](https://nazdridoy.github.io/ngpt/examples/advanced.html).
|
281
288
|
|
289
|
+
### As a CLI Framework
|
290
|
+
|
291
|
+
nGPT can also be used as a framework to build your own AI-powered command-line tools. You can leverage nGPT's pre-built CLI components to quickly develop sophisticated CLI applications.
|
292
|
+
|
293
|
+
```python
|
294
|
+
from ngpt import NGPTClient, load_config
|
295
|
+
from ngpt.cli.main import interactive_chat_session
|
296
|
+
from ngpt.cli.renderers import prettify_markdown
|
297
|
+
from ngpt.cli.formatters import ColoredHelpFormatter
|
298
|
+
import argparse
|
299
|
+
|
300
|
+
# Create a custom CLI tool with colorized help
|
301
|
+
parser = argparse.ArgumentParser(
|
302
|
+
description="Specialized Code Assistant",
|
303
|
+
formatter_class=ColoredHelpFormatter
|
304
|
+
)
|
305
|
+
parser.add_argument("prompt", nargs="?", help="Code description")
|
306
|
+
parser.add_argument("--language", "-l", default="python", help="Programming language")
|
307
|
+
parser.add_argument("--interactive", "-i", action="store_true", help="Start interactive mode")
|
308
|
+
args = parser.parse_args()
|
309
|
+
|
310
|
+
# Initialize client
|
311
|
+
client = NGPTClient(**load_config())
|
312
|
+
|
313
|
+
# Use interactive session for conversation
|
314
|
+
if args.interactive:
|
315
|
+
system_prompt = f"You are an expert {args.language} developer. Provide clear, detailed answers."
|
316
|
+
interactive_chat_session(client=client, preprompt=system_prompt, prettify=True)
|
317
|
+
elif args.prompt:
|
318
|
+
# Generate and prettify code
|
319
|
+
code = client.generate_code(args.prompt, language=args.language)
|
320
|
+
print(prettify_markdown(f"```{args.language}\n{code}\n```"))
|
321
|
+
```
|
322
|
+
|
323
|
+
This allows you to build specialized AI tools like:
|
324
|
+
- Code generators for specific languages or frameworks
|
325
|
+
- Domain-specific assistants (SQL, legal, finance, etc.)
|
326
|
+
- Documentation generators
|
327
|
+
- Translation tools
|
328
|
+
- And much more
|
329
|
+
|
330
|
+
For detailed information about building CLI tools with nGPT, see the [CLI Framework Guide](https://nazdridoy.github.io/ngpt/usage/cli_framework.html) and explore the [CLI Component Examples](https://nazdridoy.github.io/ngpt/examples/cli_components.html).
|
331
|
+
|
282
332
|
## Configuration
|
283
333
|
|
284
334
|
### Command Line Options
|
@@ -305,13 +355,15 @@ You can configure the client using the following options:
|
|
305
355
|
| `--config` | Path to a custom configuration file or, when used without a value, enters interactive configuration mode |
|
306
356
|
| `--config-index` | Index of the configuration to use (default: 0) |
|
307
357
|
| `--provider` | Provider name to identify the configuration to use (alternative to --config-index) |
|
308
|
-
| `--remove` | Remove the configuration at the specified index (requires --config and --config-index) |
|
358
|
+
| `--remove` | Remove the configuration at the specified index (requires --config and --config-index or --provider) |
|
309
359
|
| `--show-config` | Show configuration details and exit |
|
310
360
|
| `--all` | Used with `--show-config` to display all configurations |
|
311
361
|
| `-i, --interactive` | Start an interactive chat session with stylish UI, conversation history, and special commands |
|
312
362
|
| `-s, --shell` | Generate and execute shell commands |
|
313
363
|
| `-c, --code` | Generate clean code output |
|
314
364
|
| `-t, --text` | Open interactive multiline editor for complex prompts |
|
365
|
+
| `--language` | Programming language to generate code in (for code mode, default: python) |
|
366
|
+
| `--cli-config` | Manage CLI configuration settings (set, get, unset, list, help) |
|
315
367
|
| `-v, --version` | Show version information |
|
316
368
|
|
317
369
|
For a complete reference of all available options, see the [CLI Usage Guide](https://nazdridoy.github.io/ngpt/usage/cli_usage.html).
|
@@ -7,6 +7,9 @@
|
|
7
7
|
|
8
8
|
A lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints.
|
9
9
|
|
10
|
+

|
11
|
+
|
12
|
+
|
10
13
|
## Table of Contents
|
11
14
|
- [Quick Start](#quick-start)
|
12
15
|
- [Features](#features)
|
@@ -16,6 +19,7 @@ A lightweight Python CLI and library for interacting with OpenAI-compatible APIs
|
|
16
19
|
- [Documentation](https://nazdridoy.github.io/ngpt/)
|
17
20
|
- [CLI Tool](#as-a-cli-tool)
|
18
21
|
- [Python Library](#as-a-library)
|
22
|
+
- [CLI Framework](#as-a-cli-framework)
|
19
23
|
- [Configuration](#configuration)
|
20
24
|
- [Command Line Options](#command-line-options)
|
21
25
|
- [CLI Configuration](#cli-configuration)
|
@@ -28,11 +32,14 @@ A lightweight Python CLI and library for interacting with OpenAI-compatible APIs
|
|
28
32
|
## Quick Start
|
29
33
|
|
30
34
|
```bash
|
31
|
-
# Install
|
35
|
+
# Install with pip
|
32
36
|
pip install ngpt
|
33
37
|
|
34
|
-
#
|
35
|
-
pip install
|
38
|
+
# Or install with uv (faster)
|
39
|
+
uv pip install ngpt
|
40
|
+
|
41
|
+
# Or install globally as a CLI tool (recommended)
|
42
|
+
uv tool install ngpt
|
36
43
|
|
37
44
|
# Chat with default settings
|
38
45
|
ngpt "Tell me about quantum computing"
|
@@ -78,8 +85,8 @@ For more examples and detailed usage, visit the [CLI Usage Guide](https://nazdri
|
|
78
85
|
|
79
86
|
## Features
|
80
87
|
|
81
|
-
- ✅ **
|
82
|
-
- 🪶 **Lightweight**: Minimal dependencies
|
88
|
+
- ✅ **Versatile**: Use as a CLI tool, Python library, or CLI framework for building custom tools
|
89
|
+
- 🪶 **Lightweight**: Minimal dependencies with everything you need included
|
83
90
|
- 🔄 **API Flexibility**: Works with OpenAI, Ollama, Groq, and any compatible endpoint
|
84
91
|
- 💬 **Interactive Chat**: Continuous conversation with memory in modern UI
|
85
92
|
- 📊 **Streaming Responses**: Real-time output for better user experience
|
@@ -92,6 +99,7 @@ For more examples and detailed usage, visit the [CLI Usage Guide](https://nazdri
|
|
92
99
|
- 📝 **Rich Multiline Editor**: Interactive multiline text input with syntax highlighting and intuitive controls
|
93
100
|
- 🎭 **System Prompts**: Customize model behavior with custom system prompts
|
94
101
|
- 📃 **Conversation Logging**: Save your conversations to text files for later reference
|
102
|
+
- 🧰 **CLI Components**: Reusable components for building custom AI-powered command-line tools
|
95
103
|
|
96
104
|
See the [Feature Overview](https://nazdridoy.github.io/ngpt/overview.html) for more details.
|
97
105
|
|
@@ -105,25 +113,25 @@ Key documentation sections:
|
|
105
113
|
- [Installation Guide](https://nazdridoy.github.io/ngpt/installation.html)
|
106
114
|
- [CLI Usage Guide](https://nazdridoy.github.io/ngpt/usage/cli_usage.html)
|
107
115
|
- [Library Usage Guide](https://nazdridoy.github.io/ngpt/usage/library_usage.html)
|
116
|
+
- [CLI Framework Guide](https://nazdridoy.github.io/ngpt/usage/cli_framework.html)
|
108
117
|
- [Configuration Guide](https://nazdridoy.github.io/ngpt/configuration.html)
|
109
118
|
- [Examples & Tutorials](https://nazdridoy.github.io/ngpt/examples/basic.html)
|
110
119
|
|
111
120
|
## Installation
|
112
121
|
|
113
122
|
```bash
|
114
|
-
#
|
123
|
+
# Installation with pip
|
115
124
|
pip install ngpt
|
116
125
|
|
117
|
-
#
|
118
|
-
pip install
|
126
|
+
# Or install with uv (faster installation)
|
127
|
+
uv pip install ngpt
|
128
|
+
|
129
|
+
# Or install globally as a CLI tool (recommended for command-line usage)
|
130
|
+
uv tool install ngpt
|
119
131
|
```
|
120
132
|
|
121
133
|
Requires Python 3.8 or newer.
|
122
134
|
|
123
|
-
The full installation includes:
|
124
|
-
- Enhanced markdown rendering with syntax highlighting
|
125
|
-
- Improved interactive input experience with multiline editing
|
126
|
-
|
127
135
|
For detailed installation instructions, see the [Installation Guide](https://nazdridoy.github.io/ngpt/installation.html).
|
128
136
|
|
129
137
|
## Usage
|
@@ -243,6 +251,49 @@ print(code)
|
|
243
251
|
|
244
252
|
For advanced usage patterns and integrations, check out the [Advanced Examples](https://nazdridoy.github.io/ngpt/examples/advanced.html).
|
245
253
|
|
254
|
+
### As a CLI Framework
|
255
|
+
|
256
|
+
nGPT can also be used as a framework to build your own AI-powered command-line tools. You can leverage nGPT's pre-built CLI components to quickly develop sophisticated CLI applications.
|
257
|
+
|
258
|
+
```python
|
259
|
+
from ngpt import NGPTClient, load_config
|
260
|
+
from ngpt.cli.main import interactive_chat_session
|
261
|
+
from ngpt.cli.renderers import prettify_markdown
|
262
|
+
from ngpt.cli.formatters import ColoredHelpFormatter
|
263
|
+
import argparse
|
264
|
+
|
265
|
+
# Create a custom CLI tool with colorized help
|
266
|
+
parser = argparse.ArgumentParser(
|
267
|
+
description="Specialized Code Assistant",
|
268
|
+
formatter_class=ColoredHelpFormatter
|
269
|
+
)
|
270
|
+
parser.add_argument("prompt", nargs="?", help="Code description")
|
271
|
+
parser.add_argument("--language", "-l", default="python", help="Programming language")
|
272
|
+
parser.add_argument("--interactive", "-i", action="store_true", help="Start interactive mode")
|
273
|
+
args = parser.parse_args()
|
274
|
+
|
275
|
+
# Initialize client
|
276
|
+
client = NGPTClient(**load_config())
|
277
|
+
|
278
|
+
# Use interactive session for conversation
|
279
|
+
if args.interactive:
|
280
|
+
system_prompt = f"You are an expert {args.language} developer. Provide clear, detailed answers."
|
281
|
+
interactive_chat_session(client=client, preprompt=system_prompt, prettify=True)
|
282
|
+
elif args.prompt:
|
283
|
+
# Generate and prettify code
|
284
|
+
code = client.generate_code(args.prompt, language=args.language)
|
285
|
+
print(prettify_markdown(f"```{args.language}\n{code}\n```"))
|
286
|
+
```
|
287
|
+
|
288
|
+
This allows you to build specialized AI tools like:
|
289
|
+
- Code generators for specific languages or frameworks
|
290
|
+
- Domain-specific assistants (SQL, legal, finance, etc.)
|
291
|
+
- Documentation generators
|
292
|
+
- Translation tools
|
293
|
+
- And much more
|
294
|
+
|
295
|
+
For detailed information about building CLI tools with nGPT, see the [CLI Framework Guide](https://nazdridoy.github.io/ngpt/usage/cli_framework.html) and explore the [CLI Component Examples](https://nazdridoy.github.io/ngpt/examples/cli_components.html).
|
296
|
+
|
246
297
|
## Configuration
|
247
298
|
|
248
299
|
### Command Line Options
|
@@ -269,13 +320,15 @@ You can configure the client using the following options:
|
|
269
320
|
| `--config` | Path to a custom configuration file or, when used without a value, enters interactive configuration mode |
|
270
321
|
| `--config-index` | Index of the configuration to use (default: 0) |
|
271
322
|
| `--provider` | Provider name to identify the configuration to use (alternative to --config-index) |
|
272
|
-
| `--remove` | Remove the configuration at the specified index (requires --config and --config-index) |
|
323
|
+
| `--remove` | Remove the configuration at the specified index (requires --config and --config-index or --provider) |
|
273
324
|
| `--show-config` | Show configuration details and exit |
|
274
325
|
| `--all` | Used with `--show-config` to display all configurations |
|
275
326
|
| `-i, --interactive` | Start an interactive chat session with stylish UI, conversation history, and special commands |
|
276
327
|
| `-s, --shell` | Generate and execute shell commands |
|
277
328
|
| `-c, --code` | Generate clean code output |
|
278
329
|
| `-t, --text` | Open interactive multiline editor for complex prompts |
|
330
|
+
| `--language` | Programming language to generate code in (for code mode, default: python) |
|
331
|
+
| `--cli-config` | Manage CLI configuration settings (set, get, unset, list, help) |
|
279
332
|
| `-v, --version` | Show version information |
|
280
333
|
|
281
334
|
For a complete reference of all available options, see the [CLI Usage Guide](https://nazdridoy.github.io/ngpt/usage/cli_usage.html).
|
@@ -1,21 +1,28 @@
|
|
1
1
|
# nGPT Documentation
|
2
2
|
|
3
|
-
Welcome to the documentation for nGPT, a lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints.
|
3
|
+
Welcome to the documentation for nGPT, a lightweight Python CLI and library for interacting with OpenAI-compatible APIs, supporting both official and self-hosted LLM endpoints. nGPT offers three main modes of use:
|
4
|
+
|
5
|
+
- A command-line interface (CLI) tool for quick AI interactions
|
6
|
+
- A Python library for integration into your applications
|
7
|
+
- A CLI framework for building your own AI-powered command-line tools
|
4
8
|
|
5
9
|
## Table of Contents
|
6
10
|
|
7
11
|
- [Overview](overview.md)
|
8
12
|
- [Installation](installation.md)
|
9
13
|
- [Usage](usage/README.md)
|
10
|
-
- [Library Usage](usage/library_usage.md)
|
11
14
|
- [CLI Usage](usage/cli_usage.md)
|
15
|
+
- [Library Usage](usage/library_usage.md)
|
16
|
+
- [CLI Framework](usage/cli_framework.md)
|
12
17
|
- [API Reference](api/README.md)
|
13
18
|
- [NGPTClient](api/client.md)
|
14
19
|
- [Configuration](api/config.md)
|
20
|
+
- [CLI Components](api/cli.md)
|
15
21
|
- [Examples](examples/README.md)
|
16
22
|
- [Basic Examples](examples/basic.md)
|
17
23
|
- [Advanced Examples](examples/advanced.md)
|
18
24
|
- [Custom Integrations](examples/integrations.md)
|
25
|
+
- [CLI Component Examples](examples/cli_components.md)
|
19
26
|
- [Configuration](configuration.md)
|
20
27
|
- [Contributing](CONTRIBUTING.md)
|
21
28
|
- [License](LICENSE.md)
|
@@ -24,4 +31,6 @@ Welcome to the documentation for nGPT, a lightweight Python CLI and library for
|
|
24
31
|
|
25
32
|
For a quick start, refer to the [Installation](installation.md) and [Usage](usage/README.md) guides.
|
26
33
|
|
27
|
-
If you're primarily interested in using nGPT as a library in your Python projects, head directly to the [Library Usage](usage/library_usage.md) guide.
|
34
|
+
If you're primarily interested in using nGPT as a library in your Python projects, head directly to the [Library Usage](usage/library_usage.md) guide.
|
35
|
+
|
36
|
+
For creating your own CLI tools using nGPT's components, check out the [CLI Framework](usage/cli_framework.md) guide and the [CLI Component Examples](examples/cli_components.md).
|