fxn 0.0.34__py3-none-any.whl → 0.0.35__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.
Binary file
Binary file
@@ -55,12 +55,14 @@ class FXNValue(Structure): pass
55
55
  class FXNValueMap(Structure): pass
56
56
  class FXNConfiguration(Structure): pass
57
57
  class FXNPrediction(Structure): pass
58
+ class FXNPredictionStream(Structure): pass
58
59
  class FXNPredictor(Structure): pass
59
60
 
60
61
  FXNValueRef = POINTER(FXNValue)
61
62
  FXNValueMapRef = POINTER(FXNValueMap)
62
63
  FXNConfigurationRef = POINTER(FXNConfiguration)
63
64
  FXNPredictionRef = POINTER(FXNPrediction)
65
+ FXNPredictionStreamRef = POINTER(FXNPredictionStream)
64
66
  FXNPredictorRef = POINTER(FXNPredictor)
65
67
 
66
68
  def load_fxnc (path: Path) -> CDLL:
@@ -171,15 +173,24 @@ def load_fxnc (path: Path) -> CDLL:
171
173
  # FXNPredictionGetLogLength
172
174
  fxnc.FXNPredictionGetLogLength.argtypes = [FXNPredictionRef, POINTER(c_int32)]
173
175
  fxnc.FXNPredictionGetLogLength.restype = FXNStatus
176
+ # FXNPredictionStreamRelease
177
+ fxnc.FXNPredictionStreamRelease.argtypes = [FXNPredictionStreamRef]
178
+ fxnc.FXNPredictionStreamRelease.restype = FXNStatus
179
+ # FXNPredictionStreamReadNext
180
+ fxnc.FXNPredictionStreamReadNext.argtypes = [FXNPredictionStreamRef, POINTER(FXNPredictionRef)]
181
+ fxnc.FXNPredictionStreamReadNext.restype = FXNStatus
174
182
  # FXNPredictorCreate
175
183
  fxnc.FXNPredictorCreate.argtypes = [FXNConfigurationRef, POINTER(FXNPredictorRef)]
176
184
  fxnc.FXNPredictorCreate.restype = FXNStatus
177
185
  # FXNPredictorRelease
178
186
  fxnc.FXNPredictorRelease.argtypes = [FXNPredictorRef]
179
187
  fxnc.FXNPredictorRelease.restype = FXNStatus
180
- # FXNPredictorPredict
181
- fxnc.FXNPredictorPredict.argtypes = [FXNPredictorRef, FXNValueMapRef, POINTER(FXNPredictionRef)]
182
- fxnc.FXNPredictorPredict.restype = FXNStatus
188
+ # FXNPredictorCreatePrediction
189
+ fxnc.FXNPredictorCreatePrediction.argtypes = [FXNPredictorRef, FXNValueMapRef, POINTER(FXNPredictionRef)]
190
+ fxnc.FXNPredictorCreatePrediction.restype = FXNStatus
191
+ # FXNPredictorStreamPrediction
192
+ fxnc.FXNPredictorStreamPrediction.argtypes = [FXNPredictionRef, FXNValueMapRef, POINTER(FXNPredictionStreamRef)]
193
+ fxnc.FXNPredictorStreamPrediction.restype = FXNStatus
183
194
  # FXNGetVersion
184
195
  fxnc.FXNGetVersion.argtypes = []
185
196
  fxnc.FXNGetVersion.restype = c_char_p
@@ -371,7 +371,7 @@ class PredictionService:
371
371
  value = to_fxn_value(fxnc, value, copy=False)
372
372
  fxnc.FXNValueMapSetValue(input_map, name.encode(), value)
373
373
  # Predict
374
- status = fxnc.FXNPredictorPredict(predictor, input_map, byref(prediction))
374
+ status = fxnc.FXNPredictorCreatePrediction(predictor, input_map, byref(prediction))
375
375
  assert status.value == FXNStatus.OK, f"Failed to create {tag} prediction with status: {status.value}"
376
376
  # Marshal prediction
377
377
  id = create_string_buffer(256)
fxn/version.py CHANGED
@@ -3,4 +3,4 @@
3
3
  # Copyright © 2024 NatML Inc. All Rights Reserved.
4
4
  #
5
5
 
6
- __version__ = "0.0.34"
6
+ __version__ = "0.0.35"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fxn
3
- Version: 0.0.34
3
+ Version: 0.0.35
4
4
  Summary: Run on-device and cloud AI prediction functions in Python. Register at https://fxn.ai.
5
5
  Author-email: "NatML Inc." <hi@fxn.ai>
6
6
  License: Apache License
@@ -1,7 +1,7 @@
1
1
  fxn/__init__.py,sha256=tWk0-aCNHX_yCS-Dg90pYnniNka9MWFoNMk6xY7u4nI,157
2
2
  fxn/function.py,sha256=H2oviHGWfal2O7d386R8BZDMUZYdfOuMB7OijiPKo54,1632
3
3
  fxn/magic.py,sha256=PQmXhO9EvJ5EZylioV-6gsCvqhVRYscKBSOBoN4VhTk,1041
4
- fxn/version.py,sha256=dDB8U8vJA_k2rzwbLOd_LdkqkLdWLH3ol5jiNfrM-zQ,95
4
+ fxn/version.py,sha256=DV1ln_aUW9kpHzYE5AOAlER6jBZHBaOrEA9KjNqYo0Y,95
5
5
  fxn/cli/__init__.py,sha256=gwMG0euV0qCe_vSvJLqBd6VWoQ99T-y4xQXeA4m4Wf0,1492
6
6
  fxn/cli/auth.py,sha256=MpHxhqPjGY92TmaTh3o58i868Cv-6Xgf13Si1NFluMg,1677
7
7
  fxn/cli/env.py,sha256=shqoP4tUiXdOoil73oiUYpqGeVcR119HPYFKgnoF894,1553
@@ -12,9 +12,9 @@ fxn/graph/__init__.py,sha256=rJIDBhYg5jcrWO4hT4-CpwPq6dSgmLTEHCfUYTLpVaI,103
12
12
  fxn/graph/client.py,sha256=WCNsebcuwIlP9W5k_8AQCpxOCcy7cpbengfu2rIkGmc,1192
13
13
  fxn/libs/__init__.py,sha256=c_q01PLV3Mi-qV0_HVbNRHOI2TIUr_cDIJHvCASsYZk,71
14
14
  fxn/libs/linux/__init__.py,sha256=c_q01PLV3Mi-qV0_HVbNRHOI2TIUr_cDIJHvCASsYZk,71
15
- fxn/libs/macos/Function.dylib,sha256=RLI17yfKPZqIeItXAnijg87mYGrgK5EvdccVKh23I6E,562176
15
+ fxn/libs/macos/Function.dylib,sha256=OfiNmUalZa0v3T-fuVdG5nHq3VjqL17-FcmE_okRKek,579904
16
16
  fxn/libs/macos/__init__.py,sha256=c_q01PLV3Mi-qV0_HVbNRHOI2TIUr_cDIJHvCASsYZk,71
17
- fxn/libs/windows/Function.dll,sha256=rYXuzHUjoHpNqDvyVkLPdjot1ID9-MUqBP_CKATCMxw,426496
17
+ fxn/libs/windows/Function.dll,sha256=zELubCevmE3sSnSZa1S6XdTtai0vmXF_86xvmmdUm58,443392
18
18
  fxn/libs/windows/__init__.py,sha256=c_q01PLV3Mi-qV0_HVbNRHOI2TIUr_cDIJHvCASsYZk,71
19
19
  fxn/services/__init__.py,sha256=OTBRL_wH94hc_scZgRd42VrJQfldNLjv4APN4YaWBAw,366
20
20
  fxn/services/environment.py,sha256=-K84dJhlQ_R13CPCqBMngdxSPP2jsgtNc_wBYx6dxjU,3716
@@ -22,8 +22,8 @@ fxn/services/predictor.py,sha256=2thCKP6N6e7T-nXMoWPoDGGkYV2h4_BxrhXeHJoBP5M,787
22
22
  fxn/services/storage.py,sha256=MY4in8XXVHDIpp8f928PFdujwegESb6m1zzop6d-z58,5517
23
23
  fxn/services/user.py,sha256=z7mencF-muknruaUuoleu6JoL-QsPJcrJ6ONT_6U7fk,1219
24
24
  fxn/services/prediction/__init__.py,sha256=TPox_z58SRjIvziCt1UnLNN1O23n_iF6HcmI0p9hwpQ,129
25
- fxn/services/prediction/fxnc.py,sha256=VIqEBCWl725NhuPek3t6GLOSWfva_faLxGOIDyKwa8A,12739
26
- fxn/services/prediction/service.py,sha256=s0ztU5bA6dY1ya5vgUiOnVz2z31UUjc4OvdawC0TijU,23142
25
+ fxn/services/prediction/fxnc.py,sha256=kJ8n52tyTQtIZfV-mqu2gmzBwew0-T_Q22220q6RrMM,13425
26
+ fxn/services/prediction/service.py,sha256=VMBmAgIP2q5D9sQ_eBcK8W5NjSIl8heE4g49N8FC8VE,23151
27
27
  fxn/types/__init__.py,sha256=jHLpQnvUKGQujVPK3li1rIkANBBvw6l_EznzIsfoD88,438
28
28
  fxn/types/dtype.py,sha256=YpTnIG-yzrQwda27GzfGZcel-zF3gOMMoHhcWD915BY,617
29
29
  fxn/types/environment.py,sha256=FbmfGjSb5yYMT9IyDj8zNUpsoP3RbzqM6tK8gn2TfDs,394
@@ -34,9 +34,9 @@ fxn/types/storage.py,sha256=AtVKR3CtHzvSWLiJS_bbUyIA2Of_IKZVeL5_1PqqrQ0,228
34
34
  fxn/types/tag.py,sha256=hWzSDCo8VjRHjS5ZLuFi3xVo8cuCNaNeULQ2mHEuwzM,707
35
35
  fxn/types/user.py,sha256=_hc1YQh0WydniAurywA70EDs4VCY5rnGRYSiRc97Ab0,150
36
36
  fxn/types/value.py,sha256=_Euyb3ffydKV1Q68Mf2G9mz7gKD5NzFap-aX1NEuNuY,767
37
- fxn-0.0.34.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
38
- fxn-0.0.34.dist-info/METADATA,sha256=FThpoXq7uHtOeEDBbe3jFx3k7r7wlweunFGW-C0MciY,16309
39
- fxn-0.0.34.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
- fxn-0.0.34.dist-info/entry_points.txt,sha256=O_AwD5dYaeB-YT1F9hPAPuDYCkw_W0tdNGYbc5RVR2k,45
41
- fxn-0.0.34.dist-info/top_level.txt,sha256=1ULIEGrnMlhId8nYAkjmRn9g3KEFuHKboq193SEKQkA,4
42
- fxn-0.0.34.dist-info/RECORD,,
37
+ fxn-0.0.35.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
38
+ fxn-0.0.35.dist-info/METADATA,sha256=0g_KhkJVfTcL2uLcKLyl8IDHxfBhtiJyxH11QBvVADI,16309
39
+ fxn-0.0.35.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
40
+ fxn-0.0.35.dist-info/entry_points.txt,sha256=O_AwD5dYaeB-YT1F9hPAPuDYCkw_W0tdNGYbc5RVR2k,45
41
+ fxn-0.0.35.dist-info/top_level.txt,sha256=1ULIEGrnMlhId8nYAkjmRn9g3KEFuHKboq193SEKQkA,4
42
+ fxn-0.0.35.dist-info/RECORD,,
File without changes
File without changes