llm-api-scope 0.2.0__tar.gz → 0.3.0__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.
- llm_api_scope-0.3.0/PKG-INFO +86 -0
- llm_api_scope-0.2.0/llm_api_scope.egg-info/PKG-INFO → llm_api_scope-0.3.0/README.md +13 -14
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/cli.py +2 -0
- llm_api_scope-0.3.0/apiscope/commands/note/__init__.py +2 -0
- llm_api_scope-0.3.0/apiscope/commands/note/commands.py +688 -0
- llm_api_scope-0.3.0/apiscope/commands/note/constants.py +191 -0
- llm_api_scope-0.3.0/apiscope/commands/note/core.py +133 -0
- llm_api_scope-0.3.0/apiscope/commands/note/utils.py +57 -0
- llm_api_scope-0.3.0/apiscope/core/clustering.py +199 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/core/output.py +10 -0
- llm_api_scope-0.3.0/apiscope/core/trie.py +59 -0
- llm_api_scope-0.3.0/llm_api_scope.egg-info/PKG-INFO +86 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/llm_api_scope.egg-info/SOURCES.txt +7 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/pyproject.toml +20 -5
- llm_api_scope-0.2.0/PKG-INFO +0 -40
- llm_api_scope-0.2.0/README.md +0 -26
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/LICENSE +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/__init__.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/commands/__init__.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/commands/describe.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/commands/init.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/commands/list.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/commands/search.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/core/__init__.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/core/config.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/apiscope/core/parser.py +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/llm_api_scope.egg-info/dependency_links.txt +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/llm_api_scope.egg-info/entry_points.txt +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/llm_api_scope.egg-info/requires.txt +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/llm_api_scope.egg-info/top_level.txt +0 -0
- {llm_api_scope-0.2.0 → llm_api_scope-0.3.0}/setup.cfg +0 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llm-api-scope
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Command-line tool for LLMs to quickly search and understand OpenAPI endpoints
|
|
5
|
+
Author-email: D7x7z49 <85430783+D7x7z49@users.noreply.github.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 D7x7z49
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/D7x7z49/llm-api-scope
|
|
29
|
+
Project-URL: Repository, https://github.com/D7x7z49/llm-api-scope.git
|
|
30
|
+
Project-URL: Issues, https://github.com/D7x7z49/llm-api-scope/issues
|
|
31
|
+
Keywords: openapi,api,cli,llm,swagger,endpoint,search
|
|
32
|
+
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
34
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
35
|
+
Classifier: Operating System :: OS Independent
|
|
36
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
37
|
+
Classifier: Topic :: Utilities
|
|
38
|
+
Classifier: Development Status :: 3 - Alpha
|
|
39
|
+
Classifier: Intended Audience :: Developers
|
|
40
|
+
Requires-Python: <4.0,>=3.12
|
|
41
|
+
Description-Content-Type: text/markdown
|
|
42
|
+
License-File: LICENSE
|
|
43
|
+
Requires-Dist: click>=8.3.1
|
|
44
|
+
Requires-Dist: openapi-core>=0.22.0
|
|
45
|
+
Requires-Dist: httpx>=0.28.1
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
# LLM API Scope (apiscope)
|
|
49
|
+
|
|
50
|
+
A command-line tool designed for Large Language Models (LLMs) and developers to index, search, and query structured API documentation (e.g., OpenAPI specifications). It assists LLMs in obtaining API information quickly and accurately within automated workflows.
|
|
51
|
+
|
|
52
|
+
## Installation
|
|
53
|
+
|
|
54
|
+
apiscope is a command-line tool, not a Python library. For isolated installation without affecting your system Python, we recommend using pipx:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# don't use pip
|
|
58
|
+
pipx install llm-api-scope
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Command Usage
|
|
62
|
+
|
|
63
|
+
### `apiscope init`
|
|
64
|
+
Initialize the project by creating a configuration file (`apiscope.ini`) and cache directory (`.apiscope/cache/`). It automatically adds `.apiscope/` to your project's `.gitignore`.
|
|
65
|
+
|
|
66
|
+
### `apiscope list`
|
|
67
|
+
List all configured API specifications by displaying the `<name> = <source>` pairs from the configuration file.
|
|
68
|
+
|
|
69
|
+
### `apiscope search <name> <keywords> [--force]`
|
|
70
|
+
Search within a specific API specification (`<name>`) for endpoints matching the given keywords. Returns the total count and displays up to 10 matching `<path>:<method>` identifiers.
|
|
71
|
+
|
|
72
|
+
### `apiscope describe <name> <path:method> [--force]`
|
|
73
|
+
Generate and output a concise Markdown guide for using the specified endpoint (`<path:method>`) from the API specification (`<name>`). The guide includes essential calling information such as parameters, request body, and response structure.
|
|
74
|
+
|
|
75
|
+
### `apiscope note`
|
|
76
|
+
Manage reflective notes for agent reasoning and knowledge capture. This command provides a structured notebook system with six cognitive note types: Observation (OBS), Reasoning (REA), Action (ACT), Reflection (REF), Question (QUE), and Inspiration (INS).
|
|
77
|
+
|
|
78
|
+
Available subcommands:
|
|
79
|
+
- `auth`: Establish and manage agent identity authentication through three philosophical dimensions (Name, Role, Story). Required before creating notes to ensure the agent has a defined sense of self.
|
|
80
|
+
- `write`: Create a new note with specified author and type (uses two-phase write mechanism)
|
|
81
|
+
- `read`: Display notes for a specific author with pagination and size limits
|
|
82
|
+
- `add`: Append annotations (REFERENCE, NOTE, or TIP) to existing notes
|
|
83
|
+
- `stats`: Analyze note-taking patterns, temporal concentration, and thinking segments
|
|
84
|
+
- `readme`: Display comprehensive documentation about the note system
|
|
85
|
+
|
|
86
|
+
Notes are stored in `.apiscope/notes/` with automatic organization by author and timestamp. The system supports pattern recognition for classical thinking sequences like Empirical Induction, Hypothetico-Deductive reasoning, and Experimental Science. For complete documentation, run `apiscope note readme`.
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: llm-api-scope
|
|
3
|
-
Version: 0.2.0
|
|
4
|
-
Summary: Default template for PDM package
|
|
5
|
-
Author-email: D7x7z49 <85430783+D7x7z49@users.noreply.github.com>
|
|
6
|
-
License: MIT
|
|
7
|
-
Requires-Python: <4.0,>=3.12
|
|
8
|
-
Description-Content-Type: text/markdown
|
|
9
|
-
License-File: LICENSE
|
|
10
|
-
Requires-Dist: click>=8.3.1
|
|
11
|
-
Requires-Dist: openapi-core>=0.22.0
|
|
12
|
-
Requires-Dist: httpx>=0.28.1
|
|
13
|
-
Dynamic: license-file
|
|
14
|
-
|
|
15
1
|
# LLM API Scope (apiscope)
|
|
16
2
|
|
|
17
3
|
A command-line tool designed for Large Language Models (LLMs) and developers to index, search, and query structured API documentation (e.g., OpenAPI specifications). It assists LLMs in obtaining API information quickly and accurately within automated workflows.
|
|
@@ -38,3 +24,16 @@ Search within a specific API specification (`<name>`) for endpoints matching the
|
|
|
38
24
|
|
|
39
25
|
### `apiscope describe <name> <path:method> [--force]`
|
|
40
26
|
Generate and output a concise Markdown guide for using the specified endpoint (`<path:method>`) from the API specification (`<name>`). The guide includes essential calling information such as parameters, request body, and response structure.
|
|
27
|
+
|
|
28
|
+
### `apiscope note`
|
|
29
|
+
Manage reflective notes for agent reasoning and knowledge capture. This command provides a structured notebook system with six cognitive note types: Observation (OBS), Reasoning (REA), Action (ACT), Reflection (REF), Question (QUE), and Inspiration (INS).
|
|
30
|
+
|
|
31
|
+
Available subcommands:
|
|
32
|
+
- `auth`: Establish and manage agent identity authentication through three philosophical dimensions (Name, Role, Story). Required before creating notes to ensure the agent has a defined sense of self.
|
|
33
|
+
- `write`: Create a new note with specified author and type (uses two-phase write mechanism)
|
|
34
|
+
- `read`: Display notes for a specific author with pagination and size limits
|
|
35
|
+
- `add`: Append annotations (REFERENCE, NOTE, or TIP) to existing notes
|
|
36
|
+
- `stats`: Analyze note-taking patterns, temporal concentration, and thinking segments
|
|
37
|
+
- `readme`: Display comprehensive documentation about the note system
|
|
38
|
+
|
|
39
|
+
Notes are stored in `.apiscope/notes/` with automatic organization by author and timestamp. The system supports pattern recognition for classical thinking sequences like Empirical Induction, Hypothetico-Deductive reasoning, and Experimental Science. For complete documentation, run `apiscope note readme`.
|
|
@@ -6,6 +6,7 @@ from .commands.init import init_command
|
|
|
6
6
|
from .commands.list import list_command
|
|
7
7
|
from .commands.search import search_command
|
|
8
8
|
from .commands.describe import describe_command
|
|
9
|
+
from .commands.note import note_command
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
@click.group()
|
|
@@ -30,6 +31,7 @@ cli.add_command(init_command, name="init")
|
|
|
30
31
|
cli.add_command(list_command, name="list")
|
|
31
32
|
cli.add_command(search_command, name="search")
|
|
32
33
|
cli.add_command(describe_command, name="describe")
|
|
34
|
+
cli.add_command(note_command, name="note")
|
|
33
35
|
|
|
34
36
|
if __name__ == "__main__":
|
|
35
37
|
cli()
|