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.
Files changed (54) hide show
  1. fxn/__init__.py +3 -1
  2. fxn/beta/__init__.py +6 -0
  3. fxn/beta/client.py +16 -0
  4. fxn/beta/prediction.py +16 -0
  5. fxn/beta/remote.py +207 -0
  6. fxn/c/__init__.py +7 -10
  7. fxn/c/configuration.py +114 -56
  8. fxn/c/fxnc.py +42 -22
  9. fxn/c/map.py +60 -30
  10. fxn/c/prediction.py +72 -33
  11. fxn/c/predictor.py +55 -27
  12. fxn/c/stream.py +33 -15
  13. fxn/c/value.py +215 -42
  14. fxn/cli/__init__.py +14 -12
  15. fxn/cli/auth.py +1 -1
  16. fxn/cli/misc.py +1 -1
  17. fxn/cli/{predict.py → predictions.py} +33 -36
  18. fxn/cli/predictors.py +3 -51
  19. fxn/client.py +58 -0
  20. fxn/compile/__init__.py +7 -0
  21. fxn/compile/compile.py +80 -0
  22. fxn/compile/sandbox.py +177 -0
  23. fxn/compile/signature.py +183 -0
  24. fxn/function.py +10 -6
  25. fxn/lib/__init__.py +1 -1
  26. fxn/lib/linux/arm64/libFunction.so +0 -0
  27. fxn/lib/linux/x86_64/libFunction.so +0 -0
  28. fxn/lib/macos/arm64/Function.dylib +0 -0
  29. fxn/lib/macos/x86_64/Function.dylib +0 -0
  30. fxn/lib/windows/arm64/Function.dll +0 -0
  31. fxn/lib/windows/x86_64/Function.dll +0 -0
  32. fxn/services/__init__.py +4 -4
  33. fxn/services/prediction.py +180 -351
  34. fxn/services/predictor.py +14 -187
  35. fxn/services/user.py +16 -42
  36. fxn/types/__init__.py +4 -4
  37. fxn/types/dtype.py +1 -1
  38. fxn/types/prediction.py +20 -10
  39. fxn/types/predictor.py +18 -32
  40. fxn/types/user.py +9 -15
  41. fxn/version.py +2 -2
  42. {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/METADATA +5 -5
  43. fxn-0.0.42.dist-info/RECORD +47 -0
  44. {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/WHEEL +1 -1
  45. fxn/api/__init__.py +0 -6
  46. fxn/api/client.py +0 -43
  47. fxn/c/dtype.py +0 -26
  48. fxn/c/status.py +0 -12
  49. fxn/c/version.py +0 -13
  50. fxn/cli/env.py +0 -40
  51. fxn-0.0.40.dist-info/RECORD +0 -44
  52. {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/LICENSE +0 -0
  53. {fxn-0.0.40.dist-info → fxn-0.0.42.dist-info}/entry_points.txt +0 -0
  54. {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 © 2024 NatML Inc. All Rights Reserved.
3
+ # Copyright © 2025 NatML Inc. All Rights Reserved.
4
4
  #
5
5
 
6
6
  from os import environ
7
7
 
8
- from .api import GraphClient
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: GraphClient
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", "https://api.fxn.ai")
33
- self.client = GraphClient(access_key, api_url)
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
@@ -1,4 +1,4 @@
1
1
  #
2
2
  # Function
3
- # Copyright © 2024 NatML Inc. All Rights Reserved.
3
+ # Copyright © 2025 NatML Inc. All Rights Reserved.
4
4
  #
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 © 2024 NatML Inc. All Rights Reserved.
3
+ # Copyright © 2025 NatML Inc. All Rights Reserved.
4
4
  #
5
5
 
6
- from .user import UserService, PROFILE_FIELDS, USER_FIELDS
7
- from .predictor import PredictorService, PREDICTOR_FIELDS
8
- from .prediction import PredictionService, PREDICTION_FIELDS
6
+ from .user import UserService
7
+ from .predictor import PredictorService
8
+ from .prediction import PredictionService, Value