kenenet 1.0.1__py3-none-any.whl → 1.0.3__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 CHANGED
@@ -286,18 +286,12 @@ _block_timings = defaultdict(float)
286
286
  _current_context = None
287
287
  _line_start_time = None
288
288
  _stack = []
289
- _ignore_line = {'frame = inspect.currentframe().f_back', 'filename = frame.f_code.co_filename',
290
- 'if _current_context is None:', 'sys.settrace(None)', 'Function: currentframe'}
289
+ _ignore_line = {'frame = inspect.currentframe().f_back', 'filename = frame.f_code.co_filename', 'if _current_context is None:', 'sys.settrace(None)', 'Function: currentframe', 'return sys._getframe(1) if hasattr(sys, "_getframe") else None'}
291
290
  _seen_lines = set() # Track lines we've already processed
292
291
  _current_function = None
293
292
  _function_lines = defaultdict(set) # Track which lines belong to which function
294
293
 
295
294
 
296
- def quick_print(message):
297
- """Helper function for printing with consistent formatting"""
298
- print(message)
299
-
300
-
301
295
  def time_code(label=None):
302
296
  global _current_context, _timings, _line_start_time, _block_timings, _stack, _ignore_line, _seen_lines, _current_function, _function_lines
303
297
 
@@ -449,6 +443,17 @@ def time_code(label=None):
449
443
  _seen_lines.clear()
450
444
  _function_lines.clear()
451
445
 
446
+
447
+ def time_loop(iterable, cutoff_time=0.1):
448
+ start_time = time.time()
449
+ end_time = start_time + cutoff_time
450
+ for item in iterable:
451
+ yield item
452
+ if time.time() > end_time:
453
+ break
454
+
455
+ ct = time_loop
456
+
452
457
  class k:
453
458
  pass
454
459
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -0,0 +1,5 @@
1
+ kenenet/__init__.py,sha256=TFgUSpmlHhk8DSDPJiP7sy-Rd8-rRxt2a7jfEhWiANA,19006
2
+ kenenet-1.0.3.dist-info/METADATA,sha256=C4jOWMNxXJMbfuoIcoZqmSC1vvrqiSHKc3Y3nrSLJRU,1693
3
+ kenenet-1.0.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-1.0.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-1.0.3.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=hu5QwzP7GM17Ob7SVo6R1aTMa8ENEPLtS2V6fD0k7cg,18825
2
- kenenet-1.0.1.dist-info/METADATA,sha256=LmrZvLHm-Bw9XTZuNHItaA6jt6jx43y5NuA5xqNlzCM,1693
3
- kenenet-1.0.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-1.0.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-1.0.1.dist-info/RECORD,,