ConsoleType 1.3__tar.gz → 1.4.2__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.
- {consoletype-1.3 → consoletype-1.4.2}/ConsoleType/__init__.py +21 -4
- consoletype-1.4.2/ConsoleType/getit.py +11 -0
- {consoletype-1.3 → consoletype-1.4.2}/ConsoleType.egg-info/PKG-INFO +2 -2
- {consoletype-1.3 → consoletype-1.4.2}/ConsoleType.egg-info/SOURCES.txt +1 -0
- {consoletype-1.3 → consoletype-1.4.2}/PKG-INFO +2 -2
- {consoletype-1.3 → consoletype-1.4.2}/README.md +1 -1
- {consoletype-1.3 → consoletype-1.4.2}/setup.py +1 -1
- {consoletype-1.3 → consoletype-1.4.2}/ConsoleType.egg-info/dependency_links.txt +0 -0
- {consoletype-1.3 → consoletype-1.4.2}/ConsoleType.egg-info/top_level.txt +0 -0
- {consoletype-1.3 → consoletype-1.4.2}/LICENSE +0 -0
- {consoletype-1.3 → consoletype-1.4.2}/setup.cfg +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import time
|
|
3
|
+
import .getit
|
|
3
4
|
import requests
|
|
4
5
|
|
|
5
6
|
def prints(text, times, size, title):
|
|
@@ -23,21 +24,37 @@ def outputs(text, times):
|
|
|
23
24
|
def title(title):
|
|
24
25
|
print(title)
|
|
25
26
|
|
|
26
|
-
def
|
|
27
|
+
def idlogin(homeurl, error, name, otvet):
|
|
27
28
|
print(f"IDLogin {name}")
|
|
28
29
|
data = {"username": "example", "password": "example"}
|
|
29
30
|
data["username"] = input("Имя Пользователя: ")
|
|
30
31
|
data["password"] = input("Пароль: ")
|
|
31
32
|
session = requests.Session()
|
|
32
|
-
resp = session.
|
|
33
|
-
if
|
|
33
|
+
resp = session.get(homeurl, data=data)
|
|
34
|
+
if otvet in resp.text:
|
|
34
35
|
print("Вход выполнен IDLogin")
|
|
35
36
|
IDLogin = resp.text[4:]
|
|
36
37
|
return IDLogin
|
|
37
38
|
else:
|
|
38
39
|
print(error)
|
|
39
40
|
|
|
41
|
+
def login():
|
|
42
|
+
print("IDLogin")
|
|
43
|
+
|
|
40
44
|
def cval(one, two, onez, twoz):
|
|
41
45
|
one = eval(f"{one}{onez}{two}")
|
|
42
46
|
one = eval(f"{one}{twoz}{two}")
|
|
43
|
-
return one
|
|
47
|
+
return one
|
|
48
|
+
|
|
49
|
+
def spatext(text):
|
|
50
|
+
texts = " ".join(original_string)
|
|
51
|
+
text = texts
|
|
52
|
+
return texts
|
|
53
|
+
|
|
54
|
+
def set(size,simvol):
|
|
55
|
+
simvol = simvol * size
|
|
56
|
+
return simvol
|
|
57
|
+
|
|
58
|
+
def get(url, username,password, otvet, login):
|
|
59
|
+
text = getit.getir(url, username, password, otvet, login)
|
|
60
|
+
return text
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import requests
|
|
2
|
+
|
|
3
|
+
def getir(url, username, password, otvet, login):
|
|
4
|
+
data = {"username": "example", "password": "example"}
|
|
5
|
+
data["password"] = password
|
|
6
|
+
data["username"] = username
|
|
7
|
+
session = requests.Session()
|
|
8
|
+
resp = session.get(url, data=data)
|
|
9
|
+
if otvet in resp.text:
|
|
10
|
+
print(login)
|
|
11
|
+
return resp.text
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ConsoleType
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Update README
|
|
5
5
|
Home-page: https://github.com/Vaddlkk
|
|
6
6
|
Author: Vadim | Mur Studio
|
|
@@ -43,5 +43,5 @@ specified parameters.
|
|
|
43
43
|
### Title
|
|
44
44
|
Simply outputs text as print.
|
|
45
45
|
|
|
46
|
-
###
|
|
46
|
+
### IDLogin
|
|
47
47
|
This feature enables account login using IDLogin technology. All data is stored and processed on your server.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ConsoleType
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Update README
|
|
5
5
|
Home-page: https://github.com/Vaddlkk
|
|
6
6
|
Author: Vadim | Mur Studio
|
|
@@ -43,5 +43,5 @@ specified parameters.
|
|
|
43
43
|
### Title
|
|
44
44
|
Simply outputs text as print.
|
|
45
45
|
|
|
46
|
-
###
|
|
46
|
+
### IDLogin
|
|
47
47
|
This feature enables account login using IDLogin technology. All data is stored and processed on your server.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|