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/function.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
#
|
2
2
|
# Function
|
3
|
-
# Copyright ©
|
3
|
+
# Copyright © 2025 NatML Inc. All Rights Reserved.
|
4
4
|
#
|
5
5
|
|
6
6
|
from os import environ
|
7
7
|
|
8
|
-
from .
|
8
|
+
from .beta.client import BetaClient
|
9
|
+
from .client import FunctionClient
|
9
10
|
from .services import PredictionService, PredictorService, UserService
|
10
11
|
|
11
12
|
class Function:
|
@@ -17,20 +18,23 @@ class Function:
|
|
17
18
|
users (UserService): Manage users.
|
18
19
|
predictors (PredictorService): Manage predictors.
|
19
20
|
predictions (PredictionService): Manage predictions.
|
21
|
+
beta (BetaClient): Beta client for incubating features.
|
20
22
|
|
21
23
|
Constructor:
|
22
24
|
access_key (str): Function access key.
|
23
25
|
api_url (str): Function API URL.
|
24
26
|
"""
|
25
|
-
client:
|
27
|
+
client: FunctionClient
|
26
28
|
users: UserService
|
27
29
|
predictors: PredictorService
|
28
30
|
predictions: PredictionService
|
31
|
+
beta: BetaClient
|
29
32
|
|
30
33
|
def __init__ (self, access_key: str=None, api_url: str=None):
|
31
34
|
access_key = access_key or environ.get("FXN_ACCESS_KEY", None)
|
32
|
-
api_url = api_url or environ.get("FXN_API_URL"
|
33
|
-
self.client =
|
35
|
+
api_url = api_url or environ.get("FXN_API_URL")
|
36
|
+
self.client = FunctionClient(access_key, api_url)
|
34
37
|
self.users = UserService(self.client)
|
35
38
|
self.predictors = PredictorService(self.client)
|
36
|
-
self.predictions = PredictionService(self.client)
|
39
|
+
self.predictions = PredictionService(self.client)
|
40
|
+
self.beta = BetaClient(self.client)
|
fxn/lib/__init__.py
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
fxn/services/__init__.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#
|
2
2
|
# Function
|
3
|
-
# Copyright ©
|
3
|
+
# Copyright © 2025 NatML Inc. All Rights Reserved.
|
4
4
|
#
|
5
5
|
|
6
|
-
from .user import UserService
|
7
|
-
from .predictor import PredictorService
|
8
|
-
from .prediction import PredictionService,
|
6
|
+
from .user import UserService
|
7
|
+
from .predictor import PredictorService
|
8
|
+
from .prediction import PredictionService, Value
|