HubBasePE 0.0.1a1__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.
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 The Python Packaging Authority
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ Metadata-Version: 2.4
2
+ Name: HubBasePE
3
+ Version: 0.0.1a1
4
+ Summary: HubBasePE – 2 new programs!!
5
+ Project-URL: Homepage, https://github.com/Voice659/HubBasePE
6
+ Project-URL: Issues, https://github.com/Voice659/HubBasePE/issues
7
+ Author-email: Voice659 <E.R.Fahretdinov@yandex.ru>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+
15
+ # HubBasePE
16
+
17
+ ## This is HubBasePE.
18
+ # You can use Start() to activate the PE.
@@ -0,0 +1,4 @@
1
+ # HubBasePE
2
+
3
+ ## This is HubBasePE.
4
+ # You can use Start() to activate the PE.
@@ -0,0 +1,23 @@
1
+ [project]
2
+ name = "HubBasePE"
3
+ version = "0.0.1a1"
4
+ authors = [
5
+ { name="Voice659", email="E.R.Fahretdinov@yandex.ru" },
6
+ ]
7
+ description = "HubBasePE – 2 new programs!!"
8
+ readme = "README.md"
9
+ requires-python = ">=3.9"
10
+ classifiers = [
11
+ "Programming Language :: Python :: 3",
12
+ "Operating System :: OS Independent",
13
+ ]
14
+ license = "MIT"
15
+ license-files = ["LICEN[CS]E*"]
16
+
17
+ [project.urls]
18
+ Homepage = "https://github.com/Voice659/HubBasePE"
19
+ Issues = "https://github.com/Voice659/HubBasePE/issues"
20
+
21
+ [build-system]
22
+ requires = ["hatchling >= 1.26"]
23
+ build-backend = "hatchling.build"
@@ -0,0 +1,121 @@
1
+ def ProgrammP1(): #T1
2
+ import random #(19.03.2026)
3
+
4
+ def Drift(): #(19.03.2026)
5
+ global x, y, z, a
6
+ a = max((y-y*2)*2,z)
7
+ y = random.randint(min(a,y*2),max(a,y*2))
8
+ if y == 0:
9
+ y = 1
10
+ x = x + y
11
+
12
+ def Drift2(): #(19.03.2026)
13
+ global i, o, r, p
14
+ p = max((o-o*2)*2,r)
15
+ o = random.randint(min(p,o*2),max(p,o*2))
16
+ if o == 0:
17
+ o = 1
18
+ i = i + o
19
+
20
+ def ProgrammP1E1(): #(19.03.2026)
21
+ global x, y, i, o, z, r
22
+ Goal = float(input("Set a goal -- "))
23
+ x = int(input("First S.N. -- "))
24
+ y = int(input("First D.N. -- "))
25
+ i = int(input("Second S.N. -- "))
26
+ o = int(input("Second D.N. -- "))
27
+ z = 1
28
+ r = 1
29
+ Opr = 1
30
+ while True:
31
+ Drift()
32
+ Drift2()
33
+ print(x)
34
+ print(i)
35
+ if x > Goal or i > Goal:
36
+ if x > Goal:
37
+ z = -random.randint(1,max(1,y))
38
+ if i > Goal:
39
+ r = -random.randint(1,max(1,o))
40
+ if x < Goal or i < Goal:
41
+ if x < Goal:
42
+ z = random.randint(1,max(1,y))
43
+ if i < Goal:
44
+ r = random.randint(1,max(1,o))
45
+ if x == Goal or i == Goal: #(20.03.2026)
46
+ if x == Goal:
47
+ print("First D reached the goal")
48
+ if i == Goal:
49
+ print("Second D reached the goal")
50
+ break
51
+ Opr = Opr + 1
52
+ if Opr >= 10000:
53
+ print("Fail")
54
+ break
55
+
56
+ ProgrammP1E1() #(19.03.2026)
57
+
58
+ def ProgrammP2(): #T3
59
+ WordLib = ["hi"]
60
+ ES = input("The string that you want to encrypt -- ").split()
61
+ if WordLib != []:
62
+ print("Currently the words are:")
63
+ for Cyc2 in WordLib:
64
+ print(Cyc2)
65
+ Do1 = input("Do you want to add new words?[Y/N] -- ").upper()
66
+ if Do1 == "Y":
67
+ Count = input("How many? -- ")
68
+ for Cyc1 in range(int(Count)):
69
+ NewWord = [str(input("The word? -- "))]
70
+ WordLib = WordLib + NewWord
71
+ NewWord = []
72
+ for Cyc3 in ES:
73
+ if Cyc3 in WordLib:
74
+ pass
75
+ else:
76
+ NewESWord = [Cyc3]
77
+ WordLib = WordLib + NewESWord
78
+ NewESWord = []
79
+ WordLibP = WordLib
80
+ WordLib = WordLib * 2
81
+ CES = []
82
+ for Cyc3 in ES:
83
+ Index = WordLib.index(Cyc3)
84
+ Index = [WordLib[Index + 2]]
85
+ CES = CES + Index
86
+ CESP = ""
87
+ for l in CES:
88
+ CESP = CESP + l + " "
89
+ print(CESP)
90
+
91
+ def CTNP(): #Mainline
92
+ Cstate = input("Continue[Y/N]").upper()
93
+ if Cstate == "Y":
94
+ Cstate = 1
95
+ elif Cstate == "N":
96
+ Cstate = 0
97
+ else:
98
+ print("Choose properly!")
99
+ Cstate = 2
100
+ if Cstate == 1:
101
+ Advance()
102
+ else:
103
+ print("Bye")
104
+ PStop()
105
+
106
+ def Advance(): #Mainline
107
+ Adv = 1
108
+ global Stop
109
+ Stop = 0
110
+
111
+ def PStop(): #Mainline
112
+ global Stop
113
+ Stop = 1
114
+
115
+ def Start():
116
+ ProgrammP1()
117
+ CTNP()
118
+ if Stop == 1:
119
+ pass
120
+ else:
121
+ ProgrammP2()
File without changes