kenenet 0.7.9__py3-none-any.whl → 0.8.2__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.
- kenenet/__init__.py +13 -1
- {kenenet-0.7.9.dist-info → kenenet-0.8.2.dist-info}/METADATA +1 -1
- kenenet-0.8.2.dist-info/RECORD +5 -0
- kenenet-0.7.9.dist-info/RECORD +0 -5
- {kenenet-0.7.9.dist-info → kenenet-0.8.2.dist-info}/WHEEL +0 -0
- {kenenet-0.7.9.dist-info → kenenet-0.8.2.dist-info}/top_level.txt +0 -0
    
        kenenet/__init__.py
    CHANGED
    
    | @@ -257,10 +257,22 @@ class AudioPlayer: | |
| 257 257 | 
             
                            looper.stop()
         | 
| 258 258 | 
             
                        self.active_audio.clear()
         | 
| 259 259 |  | 
| 260 | 
            -
             | 
| 261 260 | 
             
            def load_audio(mp3_path):
         | 
| 262 261 | 
             
                _ray_init_thread.join()
         | 
| 263 262 | 
             
                return zhmiscellany.processing.synchronous_class_multiprocess(AudioPlayer, mp3_path)
         | 
| 263 | 
            +
             | 
| 264 | 
            +
            import time
         | 
| 265 | 
            +
             | 
| 266 | 
            +
            def time_func(func, loop, *args, **kwargs):
         | 
| 267 | 
            +
                func_name = getattr(func, '__name__', repr(func))
         | 
| 268 | 
            +
                frame = inspect.currentframe().f_back
         | 
| 269 | 
            +
                lineno = frame.f_lineno
         | 
| 270 | 
            +
                start = time.time()
         | 
| 271 | 
            +
                for _ in range(loop):
         | 
| 272 | 
            +
                    func(*args, **kwargs)
         | 
| 273 | 
            +
                elapsed = time.time() - start
         | 
| 274 | 
            +
                quick_print(f'{func_name} took {elapsed}', lineno)
         | 
| 275 | 
            +
                return elapsed
         | 
| 264 276 |  | 
| 265 277 | 
             
            class k:
         | 
| 266 278 | 
             
                pass
         | 
| @@ -0,0 +1,5 @@ | |
| 1 | 
            +
            kenenet/__init__.py,sha256=6kwpIlIosQd_9Z4eG79wQFJhMOz14r1XXivREG2Kzco,11160
         | 
| 2 | 
            +
            kenenet-0.8.2.dist-info/METADATA,sha256=mn-ohTyxCtonkdPzmAgiZYzoNYzagLidOiQDvLETw4k,633
         | 
| 3 | 
            +
            kenenet-0.8.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
         | 
| 4 | 
            +
            kenenet-0.8.2.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
         | 
| 5 | 
            +
            kenenet-0.8.2.dist-info/RECORD,,
         | 
    
        kenenet-0.7.9.dist-info/RECORD
    DELETED
    
    | @@ -1,5 +0,0 @@ | |
| 1 | 
            -
            kenenet/__init__.py,sha256=gm2KeCvfhCSb_bytoZ8kD-F3-K-0tzswxrKkhWMEeAQ,10779
         | 
| 2 | 
            -
            kenenet-0.7.9.dist-info/METADATA,sha256=tnQtMyZv3_uO06omh5LMmu65ecMuM0Vj-Bah_JOSQLk,633
         | 
| 3 | 
            -
            kenenet-0.7.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
         | 
| 4 | 
            -
            kenenet-0.7.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
         | 
| 5 | 
            -
            kenenet-0.7.9.dist-info/RECORD,,
         | 
| 
            File without changes
         | 
| 
            File without changes
         |