kenenet 0.0.8__py3-none-any.whl → 0.0.9__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
@@ -1,16 +1,21 @@
1
1
  import inspect, sys
2
2
 
3
-
4
3
  def adding(a, b):
5
4
  return a + b
6
5
 
6
+ def subtracting(a, b):
7
+ return a - b
7
8
 
8
9
  class k:
9
10
  pass
10
11
 
12
+ # Automatically attach all global functions to class k,
13
+ # filtering out any that start with an underscore (like __init__)
14
+ current_module = sys.modules[__name__]
15
+ for name, func in inspect.getmembers(current_module, inspect.isfunction):
16
+ if not name.startswith('_'):
17
+ setattr(k, name, func)
11
18
 
12
- k.adding = adding
13
-
14
-
19
+ # Optional: update __main__ if needed
15
20
  if '__main__' in sys.modules:
16
21
  sys.modules['__main__'].__dict__['k'] = k
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kenenet
3
- Version: 0.0.8
3
+ Version: 0.0.9
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=cyx5bMAIW8nut4ypoPkhpiKwmt0kRtfXOrXVij3BtXU,552
2
+ kenenet-0.0.9.dist-info/METADATA,sha256=w7TWDhyTVyi8l_jjY_fdVC6cVZQyXfBIwVTcpM3FtW4,513
3
+ kenenet-0.0.9.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
+ kenenet-0.0.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.0.9.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=thkalKm0wlXU6y4z0Wfjs3BpsouaX4TWTM-GO7bxWLo,191
2
- kenenet-0.0.8.dist-info/METADATA,sha256=_G-XrrLzTrg3hXqhaKn8xiVUMnDHcm_f0ZC7dhCs9jk,513
3
- kenenet-0.0.8.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
4
- kenenet-0.0.8.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.0.8.dist-info/RECORD,,