llm-cage 0.0.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.
- llm_cage-0.0.1/LICENSE +21 -0
- llm_cage-0.0.1/PKG-INFO +39 -0
- llm_cage-0.0.1/README.md +20 -0
- llm_cage-0.0.1/pyproject.toml +32 -0
- llm_cage-0.0.1/setup.cfg +4 -0
- llm_cage-0.0.1/src/cage/__init__.py +10 -0
- llm_cage-0.0.1/src/llm_cage.egg-info/PKG-INFO +39 -0
- llm_cage-0.0.1/src/llm_cage.egg-info/SOURCES.txt +8 -0
- llm_cage-0.0.1/src/llm_cage.egg-info/dependency_links.txt +1 -0
- llm_cage-0.0.1/src/llm_cage.egg-info/top_level.txt +1 -0
llm_cage-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Pasindu
|
|
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.
|
llm_cage-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llm-cage
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Cage: run local-LLM components in a network-isolated OS process, hardware access intact, with a friction-free call interface back to the rest of your app.
|
|
5
|
+
Author: Pasindu
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: llm,sandbox,isolation,security,local-llm,agent,process-isolation
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: Topic :: Security
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# Cage (`llm-cage`)
|
|
21
|
+
|
|
22
|
+
**Status: placeholder release — reserving the name while the project is designed. Not yet functional.**
|
|
23
|
+
|
|
24
|
+
Cage runs a local-LLM component of your application inside a separate OS process with network access denied by default (loopback allowed, for talking to a local model server), while keeping local hardware acceleration (GPU/Metal/CUDA) intact and giving you a friction-free way to call into it from the rest of your app:
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from cage import Cell
|
|
28
|
+
|
|
29
|
+
cell = Cell()
|
|
30
|
+
|
|
31
|
+
@cell.expose
|
|
32
|
+
def ask_local_llm(prompt: str) -> str:
|
|
33
|
+
import ollama
|
|
34
|
+
return ollama.chat(model="llama3", messages=[{"role": "user", "content": prompt}])["message"]["content"]
|
|
35
|
+
|
|
36
|
+
answer = ask_local_llm("what's 2+2?") # runs inside the network-restricted process
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Design details are being worked out as a public RFC series before implementation starts. This release exists solely to reserve the package name.
|
llm_cage-0.0.1/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Cage (`llm-cage`)
|
|
2
|
+
|
|
3
|
+
**Status: placeholder release — reserving the name while the project is designed. Not yet functional.**
|
|
4
|
+
|
|
5
|
+
Cage runs a local-LLM component of your application inside a separate OS process with network access denied by default (loopback allowed, for talking to a local model server), while keeping local hardware acceleration (GPU/Metal/CUDA) intact and giving you a friction-free way to call into it from the rest of your app:
|
|
6
|
+
|
|
7
|
+
```python
|
|
8
|
+
from cage import Cell
|
|
9
|
+
|
|
10
|
+
cell = Cell()
|
|
11
|
+
|
|
12
|
+
@cell.expose
|
|
13
|
+
def ask_local_llm(prompt: str) -> str:
|
|
14
|
+
import ollama
|
|
15
|
+
return ollama.chat(model="llama3", messages=[{"role": "user", "content": prompt}])["message"]["content"]
|
|
16
|
+
|
|
17
|
+
answer = ask_local_llm("what's 2+2?") # runs inside the network-restricted process
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Design details are being worked out as a public RFC series before implementation starts. This release exists solely to reserve the package name.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "llm-cage"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Cage: run local-LLM components in a network-isolated OS process, hardware access intact, with a friction-free call interface back to the rest of your app."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "MIT" }
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Pasindu" }
|
|
14
|
+
]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 1 - Planning",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
21
|
+
"Topic :: Security",
|
|
22
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
23
|
+
]
|
|
24
|
+
keywords = ["llm", "sandbox", "isolation", "security", "local-llm", "agent", "process-isolation"]
|
|
25
|
+
|
|
26
|
+
[tool.setuptools.packages.find]
|
|
27
|
+
where = ["src"]
|
|
28
|
+
|
|
29
|
+
# TODO: add once the GitHub repo exists
|
|
30
|
+
# [project.urls]
|
|
31
|
+
# Homepage = "https://github.com/<org-or-user>/llm-cage"
|
|
32
|
+
# Repository = "https://github.com/<org-or-user>/llm-cage"
|
llm_cage-0.0.1/setup.cfg
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Cage (llm-cage) - run local-LLM components in a network-isolated OS process,
|
|
3
|
+
with hardware access intact and a friction-free call interface back to the
|
|
4
|
+
rest of your application.
|
|
5
|
+
|
|
6
|
+
This is a placeholder release reserving the package name while the project
|
|
7
|
+
is designed via a public RFC series. Not yet functional.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
__version__ = "0.0.1"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llm-cage
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Cage: run local-LLM components in a network-isolated OS process, hardware access intact, with a friction-free call interface back to the rest of your app.
|
|
5
|
+
Author: Pasindu
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: llm,sandbox,isolation,security,local-llm,agent,process-isolation
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
+
Classifier: Topic :: Security
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
License-File: LICENSE
|
|
18
|
+
Dynamic: license-file
|
|
19
|
+
|
|
20
|
+
# Cage (`llm-cage`)
|
|
21
|
+
|
|
22
|
+
**Status: placeholder release — reserving the name while the project is designed. Not yet functional.**
|
|
23
|
+
|
|
24
|
+
Cage runs a local-LLM component of your application inside a separate OS process with network access denied by default (loopback allowed, for talking to a local model server), while keeping local hardware acceleration (GPU/Metal/CUDA) intact and giving you a friction-free way to call into it from the rest of your app:
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
from cage import Cell
|
|
28
|
+
|
|
29
|
+
cell = Cell()
|
|
30
|
+
|
|
31
|
+
@cell.expose
|
|
32
|
+
def ask_local_llm(prompt: str) -> str:
|
|
33
|
+
import ollama
|
|
34
|
+
return ollama.chat(model="llama3", messages=[{"role": "user", "content": prompt}])["message"]["content"]
|
|
35
|
+
|
|
36
|
+
answer = ask_local_llm("what's 2+2?") # runs inside the network-restricted process
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Design details are being worked out as a public RFC series before implementation starts. This release exists solely to reserve the package name.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cage
|