libz 0.1.0__tar.gz

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.
Files changed (54) hide show
  1. libz-0.1.0/PKG-INFO +16 -0
  2. libz-0.1.0/README.md +9 -0
  3. libz-0.1.0/libz/AWT/__init__.py +3 -0
  4. libz-0.1.0/libz/AWT/prac1.py +4 -0
  5. libz-0.1.0/libz/AWT/prac10.py +4 -0
  6. libz-0.1.0/libz/AWT/prac2.py +4 -0
  7. libz-0.1.0/libz/AWT/prac3.py +4 -0
  8. libz-0.1.0/libz/AWT/prac4.py +4 -0
  9. libz-0.1.0/libz/AWT/prac5.py +4 -0
  10. libz-0.1.0/libz/AWT/prac6.py +4 -0
  11. libz-0.1.0/libz/AWT/prac7.py +4 -0
  12. libz-0.1.0/libz/AWT/prac8.py +4 -0
  13. libz-0.1.0/libz/AWT/prac9.py +4 -0
  14. libz-0.1.0/libz/BDA/__init__.py +3 -0
  15. libz-0.1.0/libz/BDA/prac1.py +4 -0
  16. libz-0.1.0/libz/BDA/prac10.py +4 -0
  17. libz-0.1.0/libz/BDA/prac2.py +4 -0
  18. libz-0.1.0/libz/BDA/prac3.py +4 -0
  19. libz-0.1.0/libz/BDA/prac4.py +4 -0
  20. libz-0.1.0/libz/BDA/prac5.py +4 -0
  21. libz-0.1.0/libz/BDA/prac6.py +4 -0
  22. libz-0.1.0/libz/BDA/prac7.py +4 -0
  23. libz-0.1.0/libz/BDA/prac8.py +4 -0
  24. libz-0.1.0/libz/BDA/prac9.py +4 -0
  25. libz-0.1.0/libz/BIO/__init__.py +3 -0
  26. libz-0.1.0/libz/BIO/prac1.py +4 -0
  27. libz-0.1.0/libz/BIO/prac10.py +4 -0
  28. libz-0.1.0/libz/BIO/prac2.py +4 -0
  29. libz-0.1.0/libz/BIO/prac3.py +4 -0
  30. libz-0.1.0/libz/BIO/prac4.py +4 -0
  31. libz-0.1.0/libz/BIO/prac5.py +4 -0
  32. libz-0.1.0/libz/BIO/prac6.py +4 -0
  33. libz-0.1.0/libz/BIO/prac7.py +4 -0
  34. libz-0.1.0/libz/BIO/prac8.py +4 -0
  35. libz-0.1.0/libz/BIO/prac9.py +4 -0
  36. libz-0.1.0/libz/DL/__init__.py +3 -0
  37. libz-0.1.0/libz/DL/prac1.py +4 -0
  38. libz-0.1.0/libz/DL/prac10.py +4 -0
  39. libz-0.1.0/libz/DL/prac2.py +4 -0
  40. libz-0.1.0/libz/DL/prac3.py +4 -0
  41. libz-0.1.0/libz/DL/prac4.py +4 -0
  42. libz-0.1.0/libz/DL/prac5.py +4 -0
  43. libz-0.1.0/libz/DL/prac6.py +4 -0
  44. libz-0.1.0/libz/DL/prac7.py +4 -0
  45. libz-0.1.0/libz/DL/prac8.py +4 -0
  46. libz-0.1.0/libz/DL/prac9.py +4 -0
  47. libz-0.1.0/libz/__init__.py +11 -0
  48. libz-0.1.0/libz/_core.py +34 -0
  49. libz-0.1.0/libz.egg-info/PKG-INFO +16 -0
  50. libz-0.1.0/libz.egg-info/SOURCES.txt +52 -0
  51. libz-0.1.0/libz.egg-info/dependency_links.txt +1 -0
  52. libz-0.1.0/libz.egg-info/top_level.txt +1 -0
  53. libz-0.1.0/pyproject.toml +13 -0
  54. libz-0.1.0/setup.cfg +4 -0
libz-0.1.0/PKG-INFO ADDED
@@ -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
+ ```
libz-0.1.0/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # libz
2
+
3
+ Practical code for AWT, DL, BIO and BDA.
4
+
5
+ ```python
6
+ import libz
7
+ libz.DL.prac1() # prints DL practical 1
8
+ libz.BDA.list() # lists BDA practicals
9
+ ```
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -0,0 +1,3 @@
1
+ from libz._core import register
2
+
3
+ register(__name__, globals())
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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")
@@ -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"]
@@ -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,52 @@
1
+ README.md
2
+ pyproject.toml
3
+ libz/__init__.py
4
+ libz/_core.py
5
+ libz.egg-info/PKG-INFO
6
+ libz.egg-info/SOURCES.txt
7
+ libz.egg-info/dependency_links.txt
8
+ libz.egg-info/top_level.txt
9
+ libz/AWT/__init__.py
10
+ libz/AWT/prac1.py
11
+ libz/AWT/prac10.py
12
+ libz/AWT/prac2.py
13
+ libz/AWT/prac3.py
14
+ libz/AWT/prac4.py
15
+ libz/AWT/prac5.py
16
+ libz/AWT/prac6.py
17
+ libz/AWT/prac7.py
18
+ libz/AWT/prac8.py
19
+ libz/AWT/prac9.py
20
+ libz/BDA/__init__.py
21
+ libz/BDA/prac1.py
22
+ libz/BDA/prac10.py
23
+ libz/BDA/prac2.py
24
+ libz/BDA/prac3.py
25
+ libz/BDA/prac4.py
26
+ libz/BDA/prac5.py
27
+ libz/BDA/prac6.py
28
+ libz/BDA/prac7.py
29
+ libz/BDA/prac8.py
30
+ libz/BDA/prac9.py
31
+ libz/BIO/__init__.py
32
+ libz/BIO/prac1.py
33
+ libz/BIO/prac10.py
34
+ libz/BIO/prac2.py
35
+ libz/BIO/prac3.py
36
+ libz/BIO/prac4.py
37
+ libz/BIO/prac5.py
38
+ libz/BIO/prac6.py
39
+ libz/BIO/prac7.py
40
+ libz/BIO/prac8.py
41
+ libz/BIO/prac9.py
42
+ libz/DL/__init__.py
43
+ libz/DL/prac1.py
44
+ libz/DL/prac10.py
45
+ libz/DL/prac2.py
46
+ libz/DL/prac3.py
47
+ libz/DL/prac4.py
48
+ libz/DL/prac5.py
49
+ libz/DL/prac6.py
50
+ libz/DL/prac7.py
51
+ libz/DL/prac8.py
52
+ libz/DL/prac9.py
@@ -0,0 +1 @@
1
+ libz
@@ -0,0 +1,13 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "libz"
7
+ version = "0.1.0"
8
+ description = "Practical code for AWT, DL, BIO and BDA"
9
+ readme = "README.md"
10
+ requires-python = ">=3.7"
11
+
12
+ [tool.setuptools.packages.find]
13
+ include = ["libz*"]
libz-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+