programasweights 0.2.2.dev1__py3-none-any.whl → 0.2.3__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.
- programasweights/__init__.py +2 -1
- {programasweights-0.2.2.dev1.dist-info → programasweights-0.2.3.dist-info}/METADATA +5 -1
- {programasweights-0.2.2.dev1.dist-info → programasweights-0.2.3.dist-info}/RECORD +6 -6
- {programasweights-0.2.2.dev1.dist-info → programasweights-0.2.3.dist-info}/WHEEL +0 -0
- {programasweights-0.2.2.dev1.dist-info → programasweights-0.2.3.dist-info}/entry_points.txt +0 -0
- {programasweights-0.2.2.dev1.dist-info → programasweights-0.2.3.dist-info}/licenses/LICENSE +0 -0
programasweights/__init__.py
CHANGED
|
@@ -21,8 +21,9 @@ API reference:
|
|
|
21
21
|
paw.api_url Server URL (default: https://programasweights.com)
|
|
22
22
|
paw.api_key API key (set via login() or PAW_API_KEY env var)
|
|
23
23
|
"""
|
|
24
|
+
from __future__ import annotations
|
|
24
25
|
|
|
25
|
-
__version__ = "0.2.
|
|
26
|
+
__version__ = "0.2.3"
|
|
26
27
|
|
|
27
28
|
from .config import get_api_url, get_api_key, set_api_key
|
|
28
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: programasweights
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: Compile natural language specifications into neural programs that run locally via llama.cpp.
|
|
5
5
|
Project-URL: Homepage, https://programasweights.com
|
|
6
6
|
Project-URL: Repository, https://github.com/programasweights/programasweights-python
|
|
@@ -58,6 +58,10 @@ program = paw.compile(
|
|
|
58
58
|
)
|
|
59
59
|
fn = paw.function(program.slug) # or paw.function(program.id)
|
|
60
60
|
fn("{name: 'Alice',}") # '{"name": "Alice"}'
|
|
61
|
+
|
|
62
|
+
# Or compile and load in one step
|
|
63
|
+
fn = paw.compile_and_load("Classify sentiment as positive or negative")
|
|
64
|
+
fn("I love this!") # "positive"
|
|
61
65
|
```
|
|
62
66
|
|
|
63
67
|
## Two Compilers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
programasweights/__init__.py,sha256=
|
|
1
|
+
programasweights/__init__.py,sha256=qJfqoW9xMkhawinAeToM6n-9lOTKLhVpmut2GXulMRU,7882
|
|
2
2
|
programasweights/artifacts.py,sha256=bSRZgYadAYyuH9aIW6P3VocExfGDGAHeDuj8vod5-Bo,1968
|
|
3
3
|
programasweights/cache.py,sha256=7L4D5juQLtARVT4aEqzy9N2Lz6xUv9uk7LBZMuJJFrY,3866
|
|
4
4
|
programasweights/cli.py,sha256=X0M3OddGvsBJXjcaKw0qebaU9koe8r30BHgj9Wbf5WM,6840
|
|
@@ -12,8 +12,8 @@ programasweights/compiler/dummy.py,sha256=PcLwijRNM4q2E9PNUcfCPf_y08QjsteVENR0TV
|
|
|
12
12
|
programasweights/runtime/__init__.py,sha256=S4jp7-eWAcMa0X417U7P6HkTL1j3v8ffQA-nneh9wY0,549
|
|
13
13
|
programasweights/runtime/interpreter.py,sha256=brYCtatSsu23lq87cuki4MViqZX6U32LBw7Z3USbQmA,19632
|
|
14
14
|
programasweights/runtime/interpreter_onnx.py,sha256=kzYKmwg_h0tVhoQlixJGKoHPVhcCK22AcHG59oeYX2Q,21559
|
|
15
|
-
programasweights-0.2.
|
|
16
|
-
programasweights-0.2.
|
|
17
|
-
programasweights-0.2.
|
|
18
|
-
programasweights-0.2.
|
|
19
|
-
programasweights-0.2.
|
|
15
|
+
programasweights-0.2.3.dist-info/METADATA,sha256=sver4SLaAHaEHrNocMFmnTeImym4_E3zq-Ft5TRLC9g,5913
|
|
16
|
+
programasweights-0.2.3.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
17
|
+
programasweights-0.2.3.dist-info/entry_points.txt,sha256=l4ZnfCPU0oMzhGB9T2Fv9AnDbSCMM70KUUJVtSvMJBc,50
|
|
18
|
+
programasweights-0.2.3.dist-info/licenses/LICENSE,sha256=6GRcDlVhbPMVgkKqBt0cgwyvtvFxpdp4s2vcYKST4r0,1073
|
|
19
|
+
programasweights-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|