fxn 0.0.40__py3-none-any.whl → 0.0.42__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.
- fxn/__init__.py +3 -1
- fxn/beta/__init__.py +6 -0
- fxn/beta/client.py +16 -0
- fxn/beta/prediction.py +16 -0
- fxn/beta/remote.py +207 -0
- fxn/c/__init__.py +7 -10
- fxn/c/configuration.py +114 -56
- fxn/c/fxnc.py +42 -22
- fxn/c/map.py +60 -30
- fxn/c/prediction.py +72 -33
- fxn/c/predictor.py +55 -27
- fxn/c/stream.py +33 -15
- fxn/c/value.py +215 -42
- fxn/cli/__init__.py +14 -12
- fxn/cli/auth.py +1 -1
- fxn/cli/misc.py +1 -1
- fxn/cli/{predict.py → predictions.py} +33 -36
- fxn/cli/predictors.py +3 -51
- fxn/client.py +58 -0
- fxn/compile/__init__.py +7 -0
- fxn/compile/compile.py +80 -0
- fxn/compile/sandbox.py +177 -0
- fxn/compile/signature.py +183 -0
- fxn/function.py +10 -6
- fxn/lib/__init__.py +1 -1
- fxn/lib/linux/arm64/libFunction.so +0 -0
- fxn/lib/linux/x86_64/libFunction.so +0 -0
- fxn/lib/macos/arm64/Function.dylib +0 -0
- fxn/lib/macos/x86_64/Function.dylib +0 -0
- fxn/lib/windows/arm64/Function.dll +0 -0
- fxn/lib/windows/x86_64/Function.dll +0 -0
- fxn/services/__init__.py +4 -4
- fxn/services/prediction.py +180 -351
- fxn/services/predictor.py +14 -187
- fxn/services/user.py +16 -42
- fxn/types/__init__.py +4 -4
- fxn/types/dtype.py +1 -1
- fxn/types/prediction.py +20 -10
- fxn/types/predictor.py +18 -32
- fxn/types/user.py +9 -15
- fxn/version.py +2 -2
- {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/METADATA +5 -5
- fxn-0.0.42.dist-info/RECORD +47 -0
- {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/WHEEL +1 -1
- fxn/api/__init__.py +0 -6
- fxn/api/client.py +0 -43
- fxn/c/dtype.py +0 -26
- fxn/c/status.py +0 -12
- fxn/c/version.py +0 -13
- fxn/cli/env.py +0 -40
- fxn-0.0.40.dist-info/RECORD +0 -44
- {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/LICENSE +0 -0
- {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/entry_points.txt +0 -0
- {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/top_level.txt +0 -0
fxn/c/status.py
DELETED
fxn/c/version.py
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Function
|
3
|
-
# Copyright © 2024 NatML Inc. All Rights Reserved.
|
4
|
-
#
|
5
|
-
|
6
|
-
from ctypes import c_char_p, CDLL
|
7
|
-
|
8
|
-
def _register_fxn_version (fxnc: CDLL) -> CDLL:
|
9
|
-
# FXNGetVersion
|
10
|
-
fxnc.FXNGetVersion.argtypes = []
|
11
|
-
fxnc.FXNGetVersion.restype = c_char_p
|
12
|
-
# Return
|
13
|
-
return fxnc
|
fxn/cli/env.py
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Function
|
3
|
-
# Copyright © 2024 NatML Inc. All Rights Reserved.
|
4
|
-
#
|
5
|
-
|
6
|
-
from rich import print_json
|
7
|
-
from typer import Argument, Option, Typer
|
8
|
-
|
9
|
-
from ..function import Function
|
10
|
-
from .auth import get_access_key
|
11
|
-
|
12
|
-
app = Typer(no_args_is_help=True)
|
13
|
-
|
14
|
-
@app.command(name="list", help="List environment variables.")
|
15
|
-
def list_envs (
|
16
|
-
organization: str=Option(None, help="Organization username. Use this for organization environment variables."),
|
17
|
-
):
|
18
|
-
fxn = Function(get_access_key())
|
19
|
-
environments = fxn.environment_variables.list(organization=organization)
|
20
|
-
environments = [env.model_dump() for env in environments]
|
21
|
-
print_json(data=environments)
|
22
|
-
|
23
|
-
@app.command(name="create", help="Create an environment variable.")
|
24
|
-
def create_env (
|
25
|
-
name: str=Argument(..., help="Variable name."),
|
26
|
-
value: str=Argument(..., help="Variable value."),
|
27
|
-
organization: str=Option(None, help="Organization username. Use this for organization environment variables."),
|
28
|
-
):
|
29
|
-
fxn = Function(get_access_key())
|
30
|
-
environment = fxn.environment_variables.create(name=name, value=value, organization=organization)
|
31
|
-
print_json(data=environment.model_dump())
|
32
|
-
|
33
|
-
@app.command(name="delete", help="Delete an environment variable.")
|
34
|
-
def delete_env (
|
35
|
-
name: str=Argument(..., help="Variable name."),
|
36
|
-
organization: str=Option(None, help="Organization username. Use this for organization environment variables."),
|
37
|
-
):
|
38
|
-
fxn = Function(get_access_key())
|
39
|
-
result = fxn.environment_variables.delete(name=name, organization=organization)
|
40
|
-
print_json(data=result)
|
fxn-0.0.40.dist-info/RECORD
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
fxn/__init__.py,sha256=m-QwB7uabrzgfPnV4wBCeSUWjPvAm_BxnnX1G-c2sb8,147
|
2
|
-
fxn/function.py,sha256=W_JkTk3KAMpFGqh95yO-Iy4AvFU22UJZkRt15dyf3IY,1187
|
3
|
-
fxn/version.py,sha256=wcBQh8v59eRpFHW8Sf44TTcOl7CHVDLNxvcWbxwR20Y,95
|
4
|
-
fxn/api/__init__.py,sha256=rJIDBhYg5jcrWO4hT4-CpwPq6dSgmLTEHCfUYTLpVaI,103
|
5
|
-
fxn/api/client.py,sha256=WCNsebcuwIlP9W5k_8AQCpxOCcy7cpbengfu2rIkGmc,1192
|
6
|
-
fxn/c/__init__.py,sha256=qBnS4_eoBe5biKoyhW0Fsfr3cqJ9SAvzmm-XB56ev0A,438
|
7
|
-
fxn/c/configuration.py,sha256=BU6WRaYVCjdCSTESNqZX9ghvA19l1yLUCn5EhChQTpA,2707
|
8
|
-
fxn/c/dtype.py,sha256=jcbFpQSnpvMPwXQ3mVyTZRSlJxcaArM2cvgXwAqzx0Q,386
|
9
|
-
fxn/c/fxnc.py,sha256=kaEWw_bmDVj55IcSJR8sPmmEE2-DwTAt-MW6h3p8aIU,859
|
10
|
-
fxn/c/map.py,sha256=IXYPGp4KEmgoO7v-EXJNDBVDm8qmMEuDDYZR1SCKFCM,1234
|
11
|
-
fxn/c/prediction.py,sha256=foPETcJUGn8QxBbub0O7EBPA8G3i9XNdwV22iB1Rm-A,1476
|
12
|
-
fxn/c/predictor.py,sha256=sqJo7BMnl_tVUlZx5tNy5IwoxK8bx-sHJzgYtSJkQR0,1172
|
13
|
-
fxn/c/status.py,sha256=QodZjS0pVI5NIBw5x2OobJLV44VVNhB0UNKmOI9yuAk,225
|
14
|
-
fxn/c/stream.py,sha256=F2R9eUPW3fvUzb7KBfRCk9KiGFl_Yhdf0gqEzM06RKs,725
|
15
|
-
fxn/c/value.py,sha256=FZbEaeJYBxdOIVOPR4n0wJ1G_8I0RZ6dRFPcVsDLYbU,1931
|
16
|
-
fxn/c/version.py,sha256=fnV14LTAXSl6Q03YFIWOINOUrs0DJpyBOcwP5VZvLFc,282
|
17
|
-
fxn/cli/__init__.py,sha256=c9qBvRTHSWnO-8Ny431RlkZWznF7sShJfHYfjBazjRk,1481
|
18
|
-
fxn/cli/auth.py,sha256=tMjgNA6AQeom3I5AsgPvWvN62cM3nFGBcjjXB7x4s8U,1688
|
19
|
-
fxn/cli/env.py,sha256=shqoP4tUiXdOoil73oiUYpqGeVcR119HPYFKgnoF894,1553
|
20
|
-
fxn/cli/misc.py,sha256=6zYuuF1pm1LzYkHG4YaSnBxzs7h8CReI6YLk1ysGRso,843
|
21
|
-
fxn/cli/predict.py,sha256=hpd1VZtw1OBNkZwePCFtyTHLSDOzc8fuSODGmvmmG1E,3026
|
22
|
-
fxn/cli/predictors.py,sha256=SSvxf5emr_upcU78vhdB2F9PM351YdP2a1bqf8FRaxE,2248
|
23
|
-
fxn/lib/__init__.py,sha256=c_q01PLV3Mi-qV0_HVbNRHOI2TIUr_cDIJHvCASsYZk,71
|
24
|
-
fxn/lib/linux/arm64/libFunction.so,sha256=Yt9kJ5pf-ZLEZK7pQB3A06m4UUo9NrdHetsX46Nu5hE,215864
|
25
|
-
fxn/lib/linux/x86_64/libFunction.so,sha256=X9rdqjJRHZKZpOntr_QPol2308qSG9K_7NgUPRdubwM,248592
|
26
|
-
fxn/lib/macos/arm64/Function.dylib,sha256=bjAqBplT88ZvlMQideUj49qg95R9VCNlSP_MpUOjGP8,285536
|
27
|
-
fxn/lib/macos/x86_64/Function.dylib,sha256=GVnaSlDuMX55KWqQjKaJMD2vYB1KU3W8PXHATK222hE,277264
|
28
|
-
fxn/lib/windows/arm64/Function.dll,sha256=QkYuXS-AFrbrnTkU8goX3s1TxtYZDQkDa2aI0upzLjg,425472
|
29
|
-
fxn/lib/windows/x86_64/Function.dll,sha256=h_4sQr6nrdoGPTqGyoPTg7jrhpe5JD3zw6IPInPNN0g,471040
|
30
|
-
fxn/services/__init__.py,sha256=TZBB8xekhfA_Z1Jh68m_GScjXYsLGdx9MlCrjF9Ojsc,249
|
31
|
-
fxn/services/prediction.py,sha256=R9dy9UdTBeVmJmtII4E0C_4Hq1n_9At7n-GuplxWk8w,20214
|
32
|
-
fxn/services/predictor.py,sha256=YDSWJi-B-Uf5LHhov3ZuUW6qg3u1i3oidrTD-Rlw1nQ,5067
|
33
|
-
fxn/services/user.py,sha256=niExZwZFl_hlgLTz9lvrU3QrVR8oKdMcm623wyQK-cA,1217
|
34
|
-
fxn/types/__init__.py,sha256=1TE9Tb-_pKtLadg5_W2arAssvPglyjNIMM5CJVWJQvw,301
|
35
|
-
fxn/types/dtype.py,sha256=YpTnIG-yzrQwda27GzfGZcel-zF3gOMMoHhcWD915BY,617
|
36
|
-
fxn/types/prediction.py,sha256=y54TA0w16MVW2jUwN6U-BtXARZgyk2WXy2mHDf9Hsjw,2028
|
37
|
-
fxn/types/predictor.py,sha256=CgpBeDDyroij9FHwC2FiKWQTp6vWB8Mflm5DvSdsdNA,4708
|
38
|
-
fxn/types/user.py,sha256=EZzuIhSdmm_HnzgL7WZ7UfW6rADPqsZii14c7zFUYNM,1172
|
39
|
-
fxn-0.0.40.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
40
|
-
fxn-0.0.40.dist-info/METADATA,sha256=TzwvMgbqAxO9DZ8G1U4phWGUT6sSf3d_TJyeFPjglIg,16093
|
41
|
-
fxn-0.0.40.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
42
|
-
fxn-0.0.40.dist-info/entry_points.txt,sha256=O_AwD5dYaeB-YT1F9hPAPuDYCkw_W0tdNGYbc5RVR2k,45
|
43
|
-
fxn-0.0.40.dist-info/top_level.txt,sha256=1ULIEGrnMlhId8nYAkjmRn9g3KEFuHKboq193SEKQkA,4
|
44
|
-
fxn-0.0.40.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|