kalibr 1.0.17__py3-none-any.whl → 1.0.20__py3-none-any.whl
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.
- kalibr/__init__.py +7 -0
- kalibr/__main__.py +672 -26
- kalibr/deployment.py +26 -0
- kalibr/kalibr.py +259 -0
- kalibr/kalibr_app.py +465 -34
- kalibr/schema_generators.py +212 -13
- kalibr/types.py +106 -0
- kalibr-1.0.20.data/data/examples/README.md +173 -0
- kalibr-1.0.20.data/data/examples/basic_kalibr_example.py +66 -0
- kalibr-1.0.20.data/data/examples/enhanced_kalibr_example.py +347 -0
- kalibr-1.0.20.dist-info/METADATA +302 -0
- kalibr-1.0.20.dist-info/RECORD +16 -0
- kalibr-1.0.17.dist-info/METADATA +0 -120
- kalibr-1.0.17.dist-info/RECORD +0 -10
- {kalibr-1.0.17.dist-info → kalibr-1.0.20.dist-info}/WHEEL +0 -0
- {kalibr-1.0.17.dist-info → kalibr-1.0.20.dist-info}/entry_points.txt +0 -0
- /kalibr-1.0.17.dist-info/licenses/LICENSE.txt → /kalibr-1.0.20.dist-info/licenses/LICENSE +0 -0
- {kalibr-1.0.17.dist-info → kalibr-1.0.20.dist-info}/top_level.txt +0 -0
kalibr-1.0.17.dist-info/METADATA
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: kalibr
|
|
3
|
-
Version: 1.0.17
|
|
4
|
-
Summary: Kalibr SDK — Integrate your SaaS with every major AI model using a single SDK.
|
|
5
|
-
Home-page: https://github.com/devon/kalibr-sdk
|
|
6
|
-
Author: Devon
|
|
7
|
-
Author-email: hello@kalibr.systems
|
|
8
|
-
License: MIT
|
|
9
|
-
Requires-Python: >=3.9
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE.txt
|
|
12
|
-
Requires-Dist: fastapi>=0.95.0
|
|
13
|
-
Requires-Dist: uvicorn>=0.22.0
|
|
14
|
-
Requires-Dist: typer>=0.9.0
|
|
15
|
-
Requires-Dist: pydantic>=2.0
|
|
16
|
-
Dynamic: author-email
|
|
17
|
-
Dynamic: home-page
|
|
18
|
-
Dynamic: license-file
|
|
19
|
-
Dynamic: requires-python
|
|
20
|
-
|
|
21
|
-
# Kalibr SDK
|
|
22
|
-
|
|
23
|
-
**Multi-Model AI Integration Framework**
|
|
24
|
-
|
|
25
|
-
Write once. Deploy anywhere. Connect to any AI model.
|
|
26
|
-
|
|
27
|
-
Kalibr lets developers expose any Python function as a model-compatible API — instantly usable by GPT, Claude, Gemini, and beyond.
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 🚀 Quick Start
|
|
32
|
-
|
|
33
|
-
### Install
|
|
34
|
-
```bash
|
|
35
|
-
pip install kalibr
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Run the included demo
|
|
39
|
-
```bash
|
|
40
|
-
kalibr-connect serve examples/demo_app.py
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Then open your browser to:
|
|
44
|
-
```
|
|
45
|
-
http://127.0.0.1:8000/docs
|
|
46
|
-
```
|
|
47
|
-
You’ll see automatically generated endpoints for your demo functions — all schema-normalized and model-ready.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## ⚙️ Core Features
|
|
52
|
-
|
|
53
|
-
✅ **Multi-Model Support** — Works with GPT Actions, Claude MCP, Gemini, and Copilot
|
|
54
|
-
✅ **Automatic Schema Generation** — Define once, serve everywhere
|
|
55
|
-
✅ **Fast Local Development** — Instantly test endpoints with `kalibr-connect serve`
|
|
56
|
-
✅ **Lightweight Runtime** — No dependencies beyond FastAPI + Uvicorn
|
|
57
|
-
|
|
58
|
-
🚧 *Coming Soon:*
|
|
59
|
-
• Auth & JWT user sessions
|
|
60
|
-
• Analytics & observability
|
|
61
|
-
• One-click deployment (Fly.io, AWS Lambda)
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
|
-
## 🧠 How It Works
|
|
66
|
-
|
|
67
|
-
Decorate your Python functions with `@app.register()`:
|
|
68
|
-
|
|
69
|
-
```python
|
|
70
|
-
from kalibr.kalibr_app import KalibrApp
|
|
71
|
-
|
|
72
|
-
app = KalibrApp()
|
|
73
|
-
|
|
74
|
-
@app.register()
|
|
75
|
-
def summarize(text: str) -> str:
|
|
76
|
-
"""Summarize text input."""
|
|
77
|
-
return text[:100] + "..."
|
|
78
|
-
|
|
79
|
-
@app.register()
|
|
80
|
-
def sentiment(text: str) -> dict:
|
|
81
|
-
"""Return a basic sentiment classification."""
|
|
82
|
-
return {"sentiment": "positive" if "love" in text.lower() else "neutral"}
|
|
83
|
-
|
|
84
|
-
kalibr_app = app.get_app()
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Then run:
|
|
88
|
-
```bash
|
|
89
|
-
kalibr-connect serve demo_app.py
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Your endpoints appear instantly at:
|
|
93
|
-
```
|
|
94
|
-
http://127.0.0.1:8000/docs
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
---
|
|
98
|
-
|
|
99
|
-
## 📁 Project Structure
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
kalibr/
|
|
103
|
-
├── __init__.py
|
|
104
|
-
├── __main__.py
|
|
105
|
-
├── kalibr_app.py
|
|
106
|
-
├── schema_generators.py
|
|
107
|
-
examples/
|
|
108
|
-
├── demo_app.py
|
|
109
|
-
└── enhanced_kalibr_example.py
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## 📘 Documentation
|
|
115
|
-
|
|
116
|
-
See [KALIBR_SDK_COMPLETE.md](KALIBR_SDK_COMPLETE.md) for full developer documentation.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
**Kalibr — Transform how you build AI-integrated applications.**
|
kalibr-1.0.17.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
kalibr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
kalibr/__main__.py,sha256=oSEVIA6G1F6DVJjq4hcV_cX1_RYJkIJjdC4yc0HzTpI,693
|
|
3
|
-
kalibr/kalibr_app.py,sha256=UX80reWShHXkHiDu8HgNAzoR3NBIE1YEiYWs1azahn4,1252
|
|
4
|
-
kalibr/schema_generators.py,sha256=1CFc0mCI0KVM48gEeGKK91I42WYyPYfEk2Yx2uZh478,286
|
|
5
|
-
kalibr-1.0.17.dist-info/licenses/LICENSE.txt,sha256=1WLJDkrueNpHCROy9zANrK2Ar2weqZ_z88hw90UKDoc,451
|
|
6
|
-
kalibr-1.0.17.dist-info/METADATA,sha256=cBJH3QYbOumvh0OKX-monN17-qIxSVYuH8o4yW85rUw,2632
|
|
7
|
-
kalibr-1.0.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
kalibr-1.0.17.dist-info/entry_points.txt,sha256=T-DOrFEZb0fZxA9H8sSCh-2zKxdjnmpzIRmm5TY_f6s,56
|
|
9
|
-
kalibr-1.0.17.dist-info/top_level.txt,sha256=OkloC5_IfpE4-QwI30aLIYbFZk_-ChABWF7aBGddy28,7
|
|
10
|
-
kalibr-1.0.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|