libz 0.1.0__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.
libz/AWT/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
libz/AWT/prac1.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 1
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 1")
libz/AWT/prac10.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 10
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 10")
libz/AWT/prac2.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 2
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 2")
libz/AWT/prac3.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 3
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 3")
libz/AWT/prac4.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 4
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 4")
libz/AWT/prac5.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 5
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 5")
libz/AWT/prac6.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 6
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 6")
libz/AWT/prac7.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 7
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 7")
libz/AWT/prac8.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 8
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 8")
libz/AWT/prac9.py ADDED
@@ -0,0 +1,4 @@
1
+ # AWT Practical 9
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from AWT practical 9")
libz/BDA/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
libz/BDA/prac1.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 1
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 1")
libz/BDA/prac10.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 10
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 10")
libz/BDA/prac2.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 2
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 2")
libz/BDA/prac3.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 3
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 3")
libz/BDA/prac4.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 4
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 4")
libz/BDA/prac5.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 5
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 5")
libz/BDA/prac6.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 6
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 6")
libz/BDA/prac7.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 7
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 7")
libz/BDA/prac8.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 8
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 8")
libz/BDA/prac9.py ADDED
@@ -0,0 +1,4 @@
1
+ # BDA Practical 9
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BDA practical 9")
libz/BIO/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
libz/BIO/prac1.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 1
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 1")
libz/BIO/prac10.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 10
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 10")
libz/BIO/prac2.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 2
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 2")
libz/BIO/prac3.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 3
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 3")
libz/BIO/prac4.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 4
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 4")
libz/BIO/prac5.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 5
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 5")
libz/BIO/prac6.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 6
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 6")
libz/BIO/prac7.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 7
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 7")
libz/BIO/prac8.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 8
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 8")
libz/BIO/prac9.py ADDED
@@ -0,0 +1,4 @@
1
+ # BIO Practical 9
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from BIO practical 9")
libz/DL/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
libz/DL/prac1.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 1
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 1")
libz/DL/prac10.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 10
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 10")
libz/DL/prac2.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 2
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 2")
libz/DL/prac3.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 3
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 3")
libz/DL/prac4.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 4
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 4")
libz/DL/prac5.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 5
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 5")
libz/DL/prac6.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 6
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 6")
libz/DL/prac7.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 7
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 7")
libz/DL/prac8.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 8
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 8")
libz/DL/prac9.py ADDED
@@ -0,0 +1,4 @@
1
+ # DL Practical 9
2
+ # TODO: paste the code for this practical here
3
+
4
+ print("Hello from DL practical 9")
libz/__init__.py ADDED
@@ -0,0 +1,11 @@
1
+ """libz - practical code for AWT, DL, BIO and BDA.
2
+
3
+ Usage:
4
+ import libz
5
+ libz.DL.prac1() # prints the code of DL practical 1
6
+ libz.DL.list() # shows which practicals are available
7
+ """
8
+ from libz import AWT, DL, BIO, BDA
9
+
10
+ __version__ = "0.1.0"
11
+ __all__ = ["AWT", "DL", "BIO", "BDA"]
libz/_core.py ADDED
@@ -0,0 +1,34 @@
1
+ import os
2
+ import re
3
+
4
+
5
+ def register(module_name, namespace):
6
+ """Create prac1(), prac2(), ... functions for every pracN.py file next to the subject's __init__.py."""
7
+ folder = os.path.dirname(namespace["__file__"])
8
+ subject = module_name.split(".")[-1]
9
+ numbers = sorted(
10
+ int(m.group(1))
11
+ for m in (re.fullmatch(r"prac(\d+)\.py", f) for f in os.listdir(folder))
12
+ if m
13
+ )
14
+
15
+ def make(n):
16
+ path = os.path.join(folder, "prac{}.py".format(n))
17
+
18
+ def prac():
19
+ with open(path, encoding="utf-8") as f:
20
+ code = f.read()
21
+ print(code)
22
+
23
+ prac.__name__ = "prac{}".format(n)
24
+ prac.__doc__ = "Print the code of {} practical {}.".format(subject, n)
25
+ return prac
26
+
27
+ for n in numbers:
28
+ namespace["prac{}".format(n)] = make(n)
29
+
30
+ def list_pracs():
31
+ """Show the practicals available for this subject."""
32
+ print("{}: {}".format(subject, ", ".join("prac{}".format(n) for n in numbers) or "no practicals"))
33
+
34
+ namespace["list"] = list_pracs
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.1
2
+ Name: libz
3
+ Version: 0.1.0
4
+ Summary: Practical code for AWT, DL, BIO and BDA
5
+ Requires-Python: >=3.7
6
+ Description-Content-Type: text/markdown
7
+
8
+ # libz
9
+
10
+ Practical code for AWT, DL, BIO and BDA.
11
+
12
+ ```python
13
+ import libz
14
+ libz.DL.prac1() # prints DL practical 1
15
+ libz.BDA.list() # lists BDA practicals
16
+ ```
@@ -0,0 +1,50 @@
1
+ libz/__init__.py,sha256=IANGmWFWHUrPxyD3jvzHRg-2hs-1xEDW0UYOqg7I34Y,298
2
+ libz/_core.py,sha256=JBrwj-13KtYxvH-KnbvhzrOXCR4MVH0ZpQKWFbuRjOU,1055
3
+ libz/AWT/__init__.py,sha256=U6onX2WqhCTjxqw7ic5doy-mQ_qQv-z3Zx6x551v7oc,63
4
+ libz/AWT/prac1.py,sha256=yluN9D2r0iQ4RccbvRrrT8RC3arprdvogNNZozungBI,102
5
+ libz/AWT/prac10.py,sha256=J-bFxrGX6fzYERwZ-ivefz1j_AvK1CtVmKwsf7FaAq4,104
6
+ libz/AWT/prac2.py,sha256=2NRZDveRnEYbKW9rYD16wIgXvYjNzGxkXIYNpU-YsG4,102
7
+ libz/AWT/prac3.py,sha256=1rioUkMTs4Vbpeh2nDNZe_t7zqcaka5sknlszQ7ll1E,102
8
+ libz/AWT/prac4.py,sha256=sT7bQky_ohoLY1Ic6xLebvGruFx-mNplZbiKUwqmC2A,102
9
+ libz/AWT/prac5.py,sha256=WecvX30CxW5VUM4pKXjEyyXC6Fjjqh9-v2Jux9-BdCM,102
10
+ libz/AWT/prac6.py,sha256=a5pAGrZueiaYbXjuml2LwC2OEqluuIFvZLVQKLJcQ9M,102
11
+ libz/AWT/prac7.py,sha256=m7ND5CNMVmeB3BaLcdHZoqWnTqBojLBgKBWlik-J0wM,102
12
+ libz/AWT/prac8.py,sha256=JWxjCIvXd8FitHxhyGCHVTu2cgPHmhVfXsIzFihPJdk,102
13
+ libz/AWT/prac9.py,sha256=DEfHDKrsYC-UPixg5LfrYQvwLm40nsoxTVlflT7Ng80,102
14
+ libz/BDA/__init__.py,sha256=U6onX2WqhCTjxqw7ic5doy-mQ_qQv-z3Zx6x551v7oc,63
15
+ libz/BDA/prac1.py,sha256=PJXAntWifQ9NR2edXCfsdxW7MGjePxxGdQtNnI0tUMU,102
16
+ libz/BDA/prac10.py,sha256=nsoHuEbKGlhV4a5Jf1MMD06XhZLPei3E5jGhif3D8g8,104
17
+ libz/BDA/prac2.py,sha256=Hi-yzqVgw_o9koWvGduSB43qwMTNtVJfT0CMhf0V4UU,102
18
+ libz/BDA/prac3.py,sha256=glLXFoc2G3wAjiU9J4FT4ANkdtt6vMrdliizaaiDJ9Y,102
19
+ libz/BDA/prac4.py,sha256=f3EHr8yC6BpwNNZ_CRu6VJFuuBznSZXbi5BjKcD-woU,102
20
+ libz/BDA/prac5.py,sha256=zmESvnkyG3OPZoLwzwqbzg_H1ad3UhjVzVXcsXYt4VI,102
21
+ libz/BDA/prac6.py,sha256=lbaH04ilbH3nCnI_hR11mhg86okyzoD9IXNRlP_QKGA,102
22
+ libz/BDA/prac7.py,sha256=C7q3FHANnOr6mZ8S6y-7bfQuFLLNlSj_T_46NmvVII8,102
23
+ libz/BDA/prac8.py,sha256=bYsU7bb03zPboKtOy0Evq35JvMJaJLC9aIdY9L0f1tY,102
24
+ libz/BDA/prac9.py,sha256=xQNDnCay7Gxo4KqV68HXA-o5zmRBzZroTqQvWpCrjGw,102
25
+ libz/BIO/__init__.py,sha256=U6onX2WqhCTjxqw7ic5doy-mQ_qQv-z3Zx6x551v7oc,63
26
+ libz/BIO/prac1.py,sha256=lutU1FMBW_EvU81YRHjIC_MC5ArXmcSVfAXWowyAms0,102
27
+ libz/BIO/prac10.py,sha256=7QiOfhG9Nw2T3ZUB4coaeb6oUgtPEvJ24nrXsKw_Lbg,104
28
+ libz/BIO/prac2.py,sha256=U6vn1xAzDRWBeNRnVeO3A9ZXcVZHUGZ63REptI035Pk,102
29
+ libz/BIO/prac3.py,sha256=aIfaZknHDq2Yx7G_t2HdeG15N0LVhIZRrnrgK4G1P70,102
30
+ libz/BIO/prac4.py,sha256=62r1E4Bt_KZe-WjyR40m7-y8Zen8BT10HhKFAjR93Xg,102
31
+ libz/BIO/prac5.py,sha256=0_giWV8HJ29x_V5-Iab3W1eVG12PQy2qzZymfSH5Dd0,102
32
+ libz/BIO/prac6.py,sha256=gHl8XEJvr3MIRq0E1JhhOwlblKor8tgAV1Jt_X18EOg,102
33
+ libz/BIO/prac7.py,sha256=xE6NHCQaAHRzRPL0Net1yEaVFJYpHDgo2lebSNgjWAo,102
34
+ libz/BIO/prac8.py,sha256=ckzgKMBKAN02XeO7gw3ctTuknOxoE-jMHF3jQWm1bpI,102
35
+ libz/BIO/prac9.py,sha256=hGtudFJDhH58EwG0q1CdteeDA0nHdJwgT-054wkJeag,102
36
+ libz/DL/__init__.py,sha256=U6onX2WqhCTjxqw7ic5doy-mQ_qQv-z3Zx6x551v7oc,63
37
+ libz/DL/prac1.py,sha256=D6lMWEx5Hq69nERRrwwPjSp4XaSqUh_jLhpMFwYl9cc,100
38
+ libz/DL/prac10.py,sha256=hwpVHjnEivhCdVO2mANq7x636BaoDrLfciNmCH0Xd3E,102
39
+ libz/DL/prac2.py,sha256=w52LbnDvvZCu2M8uWrmurlLy7AO_Wk3fWr4giu142jc,100
40
+ libz/DL/prac3.py,sha256=qBidpHuUGCMin6MixqNCQBUwtTq-0AioKMw3hjjaJ3E,100
41
+ libz/DL/prac4.py,sha256=gz8Dr3aspL0rAHMQhacRUY4gI7rECmgP7FVKDEQlhog,100
42
+ libz/DL/prac5.py,sha256=9FMxTFC1_AhgFz6Uhh8vdff8H1OqDtAocCajmyoT2xU,100
43
+ libz/DL/prac6.py,sha256=4amV6-sj2syZhcinu5j9s1DxYuJXc6Poekra4uJI1V0,100
44
+ libz/DL/prac7.py,sha256=mDEL-YaMb8j2J3Jd2WwrDM7H_LjOQhQlfIaONMjeC2o,100
45
+ libz/DL/prac8.py,sha256=Hmq_Vfgb6hbBY66APmYgOQURDAQ92TFGHccvgj1rS-I,100
46
+ libz/DL/prac9.py,sha256=lJJJgLf69SstmX6GNSliH088wq69vGDYkIbg7MTNze4,100
47
+ libz-0.1.0.dist-info/METADATA,sha256=qNenknCxx14ulqrntmrddWn0THDRe2Y_WZ9t-UH96Jc,336
48
+ libz-0.1.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
49
+ libz-0.1.0.dist-info/top_level.txt,sha256=JE8tEKjHM8SAo1qZKewlbYHK1weXcjspHLIZlsAp1Rw,5
50
+ libz-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.42.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ libz