nexaai 0.0.0__cp310-cp310-macosx_14_0_universal2.whl → 1.0.4rc14__cp310-cp310-macosx_14_0_universal2.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.

Potentially problematic release.


This version of nexaai might be problematic. Click here for more details.

Binary file
nexaai/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # This file is generated by CMake from _version.py.in
2
2
  # Do not modify this file manually - it will be overwritten
3
3
 
4
- __version__ = "0.0.0"
4
+ __version__ = "1.0.4-rc14"
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -62,8 +62,8 @@ class DownloadProgressTracker:
62
62
  self.last_display_length = 0
63
63
 
64
64
  # Speed tracking
65
- self.last_downloaded = 0
66
- self.last_time = time.time()
65
+ self.last_downloaded = None # Use None to indicate no previous measurement
66
+ self.last_time = None # Use None to indicate no previous time measurement
67
67
  self.speed_history = []
68
68
  self.max_speed_history = 10
69
69
 
@@ -101,18 +101,27 @@ class DownloadProgressTracker:
101
101
  def calculate_speed(self, current_downloaded: int) -> float:
102
102
  """Calculate download speed in bytes per second."""
103
103
  current_time = time.time()
104
- time_diff = current_time - self.last_time
105
104
 
106
- if time_diff > 0 and self.last_downloaded > 0:
107
- bytes_diff = current_downloaded - self.last_downloaded
108
- speed = bytes_diff / time_diff
109
-
110
- # Add to speed history for smoothing
111
- self.speed_history.append(speed)
112
- if len(self.speed_history) > self.max_speed_history:
113
- self.speed_history.pop(0)
105
+ # Check if we have a previous measurement to compare against
106
+ if self.last_time is not None and self.last_downloaded is not None:
107
+ time_diff = current_time - self.last_time
114
108
 
115
- # Return smoothed speed
109
+ # Only calculate if we have a meaningful time difference (avoid division by very small numbers)
110
+ if time_diff > 0.5: # At least 500ms between measurements
111
+ bytes_diff = current_downloaded - self.last_downloaded
112
+
113
+ # Only calculate speed if bytes actually changed
114
+ if bytes_diff >= 0: # Allow 0 for periods with no progress
115
+ speed = bytes_diff / time_diff
116
+
117
+ # Add to speed history for smoothing
118
+ self.speed_history.append(speed)
119
+ if len(self.speed_history) > self.max_speed_history:
120
+ self.speed_history.pop(0)
121
+
122
+ # Return the average of historical speeds if we have any
123
+ # This ensures we show the last known speed even when skipping updates
124
+ if self.speed_history:
116
125
  return sum(self.speed_history) / len(self.speed_history)
117
126
 
118
127
  return 0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nexaai
3
- Version: 0.0.0
3
+ Version: 1.0.4rc14
4
4
  Summary: Python bindings for NexaSDK C-lib backend
5
5
  Author-email: "Nexa AI, Inc." <dev@nexa.ai>
6
6
  Project-URL: Homepage, https://github.com/NexaAI/nexasdk-bridge
@@ -1,6 +1,6 @@
1
1
  nexaai/__init__.py,sha256=JTjJWdiBXHZyc_91Oe-GNOcODFp9gbUQM43bzNY7S8Q,1906
2
- nexaai/_stub.cpython-310-darwin.so,sha256=f1y4Gg4RGKC4h9GeU7gnRfm9a1QNFwogco7bkH1KnDE,66768
3
- nexaai/_version.py,sha256=8uyKXwDbAQT8F8B_GXLSK40bIOCYzI_DlSjnfsNoc3s,138
2
+ nexaai/_stub.cpython-310-darwin.so,sha256=jLqSTNxJs9FVD19-Vwob9M8ciDqSHgKE3KgoF4FDlbI,66768
3
+ nexaai/_version.py,sha256=81zx9t__xAdjV8GwoDFsZWlADrXI5VeJD0AkYlQ8P9g,143
4
4
  nexaai/asr.py,sha256=Yg8Yml_nklzJYl3C_lwvEApTdNjY2czAurDaoEjkiIU,1813
5
5
  nexaai/base.py,sha256=N8PRgDFA-XPku2vWnQIofQ7ipz3pPlO6f8YZGnuhquE,982
6
6
  nexaai/common.py,sha256=VPM7NaUNaLTT7quW-u4D2uOeNrQqPjvfcgJlYGS3Qy8,1525
@@ -18,15 +18,15 @@ nexaai/asr_impl/pybind_asr_impl.py,sha256=ybvthYgtVbH_JgpSsl0nxjZYvXyk8KGRSKdsJ-
18
18
  nexaai/binds/__init__.py,sha256=T9Ua7SzHNglSeEqXlfH5ymYXRyXhNKkC9z_y_bWCNMo,80
19
19
  nexaai/binds/common_bind.cpython-310-darwin.so,sha256=hVxY76tn7hN6uHDIgM7LWNvgoudHgNZVoaygM9X1RWE,217232
20
20
  nexaai/binds/embedder_bind.cpython-310-darwin.so,sha256=FT8581RNciilskK89PhtnNSjw4Oh0-xk8QdbJVFmOd8,202064
21
- nexaai/binds/libnexa_bridge.dylib,sha256=zgnLSGXKm0e89H08A85b9pKYgcNE5W6Uv0Upc2FgiCg,251256
21
+ nexaai/binds/libnexa_bridge.dylib,sha256=JfXpiJg-_MpB77NYNUZnvQdOZWYppGHgpUJ83n9cKVg,251256
22
22
  nexaai/binds/llm_bind.cpython-310-darwin.so,sha256=Bv08rn9OBAHy01eAQeANiJSrCxskn1xSx4Gl1Vcrhm0,166064
23
- nexaai/binds/nexa_llama_cpp/libggml-base.dylib,sha256=i2aH2Gt0WRVFkuEfgWsE2hnRE2uZRXH83WQfrBrT-oI,631840
24
- nexaai/binds/nexa_llama_cpp/libggml-cpu.so,sha256=1qFcy_h2kozVyVaTF5oyQA7xrutzkw_LUn_jIw-9mTs,659216
25
- nexaai/binds/nexa_llama_cpp/libggml-metal.so,sha256=fCbK0DD8Uospc653JD0iaf7EJxRiXajIm9OEGE2nd9Q,673104
26
- nexaai/binds/nexa_llama_cpp/libggml.dylib,sha256=aOxGtGHFL5sn7ihZTOrcFYqn941O6RMpK3CwWYniN0g,58592
27
- nexaai/binds/nexa_llama_cpp/libllama.dylib,sha256=hmKPTc8OUHL985DAiVlh8tT4gVV5Fm6Vk7GGBXBPZds,1746592
28
- nexaai/binds/nexa_llama_cpp/libmtmd.dylib,sha256=TuDI-WK7LSNISNCIhTCzvCwgZSFRLC5Xsk5aGh1Ja_Y,586784
29
- nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=sIseaikcmDXra4Zed7nt0KNN2u2bDTwRvPfUJx0B6dk,1750280
23
+ nexaai/binds/nexa_llama_cpp/libggml-base.dylib,sha256=D_mlY_PNMIFlm6mHERSLMoA7QfYHwEPVlb0UKMbl2N0,632048
24
+ nexaai/binds/nexa_llama_cpp/libggml-cpu.so,sha256=RiMhOv6IAWY1zkFTp0JCB7CYoPfOv54vBVQHvj1koBM,661120
25
+ nexaai/binds/nexa_llama_cpp/libggml-metal.so,sha256=L4RQvaD0w4qBjexi4O05RMCH8842fof5QgBEvyx0RcA,673104
26
+ nexaai/binds/nexa_llama_cpp/libggml.dylib,sha256=aOTj_6RrAMkfDO0ZI28_3nfcC-l4Y3dRCiS3C0d0_eI,58592
27
+ nexaai/binds/nexa_llama_cpp/libllama.dylib,sha256=fDPnTG6EQ1JN6aRmnIFQzag_kmtyImRxKjMOOtaTY5Q,1746928
28
+ nexaai/binds/nexa_llama_cpp/libmtmd.dylib,sha256=ccnBRsJNFGTCsjgW03N9PvX26wUirqpxljnxdVPINVc,587008
29
+ nexaai/binds/nexa_llama_cpp/libnexa_plugin.dylib,sha256=1kAoSq1w8pPiNmceOdmAZ7ehfENauFoGq8mpIwGl-kk,1806696
30
30
  nexaai/binds/nexa_mlx/libnexa_plugin.dylib,sha256=aw8if8RwXjb02CehbqGPHOeEKRUcTpzeJZLOkjTBm8A,596328
31
31
  nexaai/binds/nexa_mlx/py-lib/ml.py,sha256=LafDM_TeXmuQkld2tdQxUBGgooT0JPMXngLam2TADqU,23179
32
32
  nexaai/binds/nexa_mlx/py-lib/profiling.py,sha256=Dc-mybFwBdCIKFWL7CbSHjkOJGAoYHG7r_e_XPhzwBU,9361
@@ -510,11 +510,11 @@ nexaai/tts_impl/pybind_tts_impl.py,sha256=Be5QiXzDz6h1LTIQzUBd0ZyBs7rUpNA-pULCXF
510
510
  nexaai/utils/avatar_fetcher.py,sha256=bWy8ujgbOiTHFCjFxTwkn3uXbZ84PgEGUkXkR3MH4bI,3821
511
511
  nexaai/utils/decode.py,sha256=61n4Zf6c5QLyqGoctEitlI9BX3tPlP2a5aaKNHbw3T4,404
512
512
  nexaai/utils/model_manager.py,sha256=c07ocxxw1IHCQw6esbmYK0dX2R2OajfEIGsC_2teHXo,48572
513
- nexaai/utils/progress_tracker.py,sha256=YO24mqqxiUseb1hd9ehLS2dD1t_4lYej_JWi76H7VnI,14374
513
+ nexaai/utils/progress_tracker.py,sha256=76HlPkyN41IMHSsH56-qdlN_aY_oBfJz50J16Cx67R0,15102
514
514
  nexaai/vlm_impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
515
515
  nexaai/vlm_impl/mlx_vlm_impl.py,sha256=4lFZ8ZQnYZ-Uoh9j2Fh2UzpdpMAy_v1Jz-lrqX33XcI,8947
516
516
  nexaai/vlm_impl/pybind_vlm_impl.py,sha256=C-3fa0AIypI33OAGuGfVxo1V7zN0wjQMgruKlDIlW4Q,8333
517
- nexaai-0.0.0.dist-info/METADATA,sha256=zfeUTCcL6g-tj984P5MIcA8SG4sfC2gp9BMGS9LLzB4,948
518
- nexaai-0.0.0.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
519
- nexaai-0.0.0.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
520
- nexaai-0.0.0.dist-info/RECORD,,
517
+ nexaai-1.0.4rc14.dist-info/METADATA,sha256=dsyrftSmP4lR0EolabKfzo8ZRG5CBMHYJKGDRoP0eIM,952
518
+ nexaai-1.0.4rc14.dist-info/WHEEL,sha256=T2p57lol9__xkoU6aJTyN1Pm43ZpRU3q6km7mIbrAMs,114
519
+ nexaai-1.0.4rc14.dist-info/top_level.txt,sha256=LRE2YERlrZk2vfuygnSzsEeqSknnZbz3Z1MHyNmBU4w,7
520
+ nexaai-1.0.4rc14.dist-info/RECORD,,