checklist-anywhere 0.0.1__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.
Potentially problematic release.
This version of checklist-anywhere might be problematic. Click here for more details.
- checklist_anywhere-0.0.1/Checklist_script/__init__.py +245 -0
- checklist_anywhere-0.0.1/LICENCE.txt +7 -0
- checklist_anywhere-0.0.1/MANIFEST.in +1 -0
- checklist_anywhere-0.0.1/PKG-INFO +34 -0
- checklist_anywhere-0.0.1/README.txt +2 -0
- checklist_anywhere-0.0.1/checklist_anywhere.egg-info/PKG-INFO +34 -0
- checklist_anywhere-0.0.1/checklist_anywhere.egg-info/SOURCES.txt +10 -0
- checklist_anywhere-0.0.1/checklist_anywhere.egg-info/dependency_links.txt +1 -0
- checklist_anywhere-0.0.1/checklist_anywhere.egg-info/requires.txt +1 -0
- checklist_anywhere-0.0.1/checklist_anywhere.egg-info/top_level.txt +1 -0
- checklist_anywhere-0.0.1/setup.cfg +4 -0
- checklist_anywhere-0.0.1/setup.py +24 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
# imports
|
|
2
|
+
import requests
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
logged_in = False
|
|
6
|
+
|
|
7
|
+
# api stuff
|
|
8
|
+
api_key = "$2a$10$hDQatCxtBHYEJGsUXg8fHuoTB/W9MKhNOAbRqK7m5.i8cLgD5n7DG"
|
|
9
|
+
bin_id = "6aff2d9cffd5d16053cf1c34"
|
|
10
|
+
url = f"https://api.jsonbin.io/v3/b/{bin_id}"
|
|
11
|
+
|
|
12
|
+
headers = {
|
|
13
|
+
"Content-Type": "application/json",
|
|
14
|
+
"X-Master-Key": api_key
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
to_do = []
|
|
18
|
+
|
|
19
|
+
# account stuff
|
|
20
|
+
|
|
21
|
+
def err_msg(text):
|
|
22
|
+
print(f"\033[38;2;250;95;85m{text}\033[0m")
|
|
23
|
+
|
|
24
|
+
class Account:
|
|
25
|
+
def __init__(self):
|
|
26
|
+
self.username = None
|
|
27
|
+
self.password = None
|
|
28
|
+
|
|
29
|
+
def login(self):
|
|
30
|
+
username = input("Username >>> ")
|
|
31
|
+
password = input("Password >>> ")
|
|
32
|
+
|
|
33
|
+
if username.find("-") != -1 or username.find("\"") != -1 or username.find(" ") != -1:
|
|
34
|
+
return False, "Illegal characters", self
|
|
35
|
+
else:
|
|
36
|
+
self.username = username
|
|
37
|
+
self.password = password
|
|
38
|
+
response = requests.get(url, headers=headers)
|
|
39
|
+
if response.status_code == 200:
|
|
40
|
+
login_data = response.json()["record"]["users"]
|
|
41
|
+
if self.username in login_data and self.password == login_data[self.username]["password"]:
|
|
42
|
+
global to_do
|
|
43
|
+
to_do = login_data[self.username]["data"]
|
|
44
|
+
return True, "Successfully logged in", self
|
|
45
|
+
|
|
46
|
+
else:
|
|
47
|
+
return False, "Username or password is not correct", self
|
|
48
|
+
else:
|
|
49
|
+
return False, f"Failed to log-in. Err-code: {response.status_code}", self
|
|
50
|
+
|
|
51
|
+
def signup(self):
|
|
52
|
+
|
|
53
|
+
username = input("Username >>> ")
|
|
54
|
+
password = input("Password >>> ")
|
|
55
|
+
conf_password = input("Confirm Password >>> ")
|
|
56
|
+
|
|
57
|
+
if username.find("-") != -1 or username.find("\"") != -1:
|
|
58
|
+
return False, "Illegal characters", self
|
|
59
|
+
else:
|
|
60
|
+
if not password == conf_password:
|
|
61
|
+
return False, "Passwords does not match", self
|
|
62
|
+
|
|
63
|
+
self.username = username
|
|
64
|
+
self.password = password
|
|
65
|
+
|
|
66
|
+
response = requests.get(url=url, headers=headers)
|
|
67
|
+
if response.status_code == 200:
|
|
68
|
+
|
|
69
|
+
signup_data = response.json()["record"]
|
|
70
|
+
if self.username in signup_data:
|
|
71
|
+
return False, "Username already in use", self
|
|
72
|
+
else:
|
|
73
|
+
signup_data["users"][self.username] = {"password": self.password, "data": []}
|
|
74
|
+
|
|
75
|
+
response = requests.put(url=url, json=signup_data, headers=headers)
|
|
76
|
+
if response.status_code == 200:
|
|
77
|
+
|
|
78
|
+
return True, "Account created sucessfully", self
|
|
79
|
+
|
|
80
|
+
else:
|
|
81
|
+
return False, f"Failed to create account {response.status_code}", self
|
|
82
|
+
|
|
83
|
+
def account_deletion(self):
|
|
84
|
+
|
|
85
|
+
confirm = input("Username >>> ")
|
|
86
|
+
confirm_question = input("Are you sure (y/n) >>> ")
|
|
87
|
+
|
|
88
|
+
self.username = account.username
|
|
89
|
+
|
|
90
|
+
if confirm == self.username and confirm_question.lower == "y":
|
|
91
|
+
|
|
92
|
+
response = requests.get(url=url, headers=headers)
|
|
93
|
+
if response.status_code == 200 and self.username in response.json()["record"]["users"]:
|
|
94
|
+
|
|
95
|
+
data = response.json()["record"]
|
|
96
|
+
del data["users"][self.username]
|
|
97
|
+
response = requests.put(url=url, json=data, headers=headers)
|
|
98
|
+
|
|
99
|
+
if response.status_code == 200:
|
|
100
|
+
return True, "Account successfully deleted"
|
|
101
|
+
else:
|
|
102
|
+
return False, f"Couldnt connect to server {response.status_code}"
|
|
103
|
+
else:
|
|
104
|
+
return False, f"Account deletion failed {response.status_code}"
|
|
105
|
+
else:
|
|
106
|
+
return False, "Confirmation failed"
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
account = Account()
|
|
111
|
+
|
|
112
|
+
def prompt():
|
|
113
|
+
return input(">>> ")
|
|
114
|
+
|
|
115
|
+
def main():
|
|
116
|
+
if logged_in:
|
|
117
|
+
print(
|
|
118
|
+
"\n============== "
|
|
119
|
+
"\n|— 1. Add "
|
|
120
|
+
"\n|—— 2. Remove "
|
|
121
|
+
"\n|——— 3. Show "
|
|
122
|
+
"\n|———— 4. Save "
|
|
123
|
+
"\n============== "
|
|
124
|
+
"\n|— 5. Log into another account"
|
|
125
|
+
"\n|—— 6. Log out and exit"
|
|
126
|
+
"\n|——— 7. Delete account"
|
|
127
|
+
"\n============== "
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
module = prompt()
|
|
131
|
+
if module == "1":
|
|
132
|
+
text_module = input("Adding >>> ")
|
|
133
|
+
|
|
134
|
+
if text_module:
|
|
135
|
+
to_do.append(text_module)
|
|
136
|
+
print(f"Added: {text_module}")
|
|
137
|
+
else:
|
|
138
|
+
err_msg("Nothing to add")
|
|
139
|
+
|
|
140
|
+
elif module == "2":
|
|
141
|
+
text_module = input("Removing >>> ")
|
|
142
|
+
|
|
143
|
+
if text_module.isdigit() and len(to_do) < 1 and int(text_module) <= len(to_do):
|
|
144
|
+
removed_val = to_do.pop(int(text_module) - 1, )
|
|
145
|
+
print(f"Removed: {removed_val}")
|
|
146
|
+
else:
|
|
147
|
+
err_msg(f"Cant find {text_module} or list it empty")
|
|
148
|
+
|
|
149
|
+
elif module == "3":
|
|
150
|
+
|
|
151
|
+
if not len(to_do) < 1:
|
|
152
|
+
for place, text in enumerate(to_do, start=1):
|
|
153
|
+
print(f"{place}. {text}")
|
|
154
|
+
else:
|
|
155
|
+
err_msg("Nothing in list")
|
|
156
|
+
|
|
157
|
+
elif module == "4":
|
|
158
|
+
response = requests.get(url=url, headers=headers)
|
|
159
|
+
|
|
160
|
+
if response.status_code == 200:
|
|
161
|
+
if not account.username in response.json()["record"]["users"]:
|
|
162
|
+
err_msg("Task failed couldnt find user")
|
|
163
|
+
|
|
164
|
+
data = response.json()["record"]
|
|
165
|
+
data["users"][account.username]["data"] = to_do
|
|
166
|
+
|
|
167
|
+
response = requests.put(url=url, json=data, headers=headers)
|
|
168
|
+
if response.status_code == 200:
|
|
169
|
+
print("Data saved successfully")
|
|
170
|
+
else:
|
|
171
|
+
err_msg(f"Failed to save data {response.status_code}")
|
|
172
|
+
else:
|
|
173
|
+
err_msg(f"Failed to save data {response.status_code}")
|
|
174
|
+
|
|
175
|
+
elif module == "5":
|
|
176
|
+
log_in_call()
|
|
177
|
+
|
|
178
|
+
elif module == "6":
|
|
179
|
+
sys.exit(0)
|
|
180
|
+
|
|
181
|
+
elif module == "7":
|
|
182
|
+
|
|
183
|
+
account_deletion_call()
|
|
184
|
+
else:
|
|
185
|
+
err_msg("Invalid command")
|
|
186
|
+
|
|
187
|
+
else:
|
|
188
|
+
print(
|
|
189
|
+
"\n============== "
|
|
190
|
+
"\n 1. Log-in"
|
|
191
|
+
"\n 2. Create an account"
|
|
192
|
+
"\n============== "
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
module = prompt()
|
|
196
|
+
if module == "1":
|
|
197
|
+
log_in_call()
|
|
198
|
+
elif module == "2":
|
|
199
|
+
sing_up_call()
|
|
200
|
+
else:
|
|
201
|
+
err_msg("Invalid command")
|
|
202
|
+
main()
|
|
203
|
+
|
|
204
|
+
def log_in_call():
|
|
205
|
+
global account
|
|
206
|
+
success, response, account = Account().login()
|
|
207
|
+
if response:
|
|
208
|
+
|
|
209
|
+
err_msg(f"{response}")
|
|
210
|
+
if success:
|
|
211
|
+
global logged_in
|
|
212
|
+
logged_in = True
|
|
213
|
+
main()
|
|
214
|
+
|
|
215
|
+
def sing_up_call():
|
|
216
|
+
global account
|
|
217
|
+
success, response, account = Account().signup()
|
|
218
|
+
if response:
|
|
219
|
+
|
|
220
|
+
err_msg(f"{response}")
|
|
221
|
+
if success:
|
|
222
|
+
global logged_in
|
|
223
|
+
logged_in = True
|
|
224
|
+
main()
|
|
225
|
+
|
|
226
|
+
def account_deletion_call():
|
|
227
|
+
err_msg(f"Type {account.username} to continue")
|
|
228
|
+
success, response = Account().account_deletion()
|
|
229
|
+
if response:
|
|
230
|
+
|
|
231
|
+
err_msg(f"{response}")
|
|
232
|
+
if success:
|
|
233
|
+
global logged_in
|
|
234
|
+
logged_in = False
|
|
235
|
+
main()
|
|
236
|
+
|
|
237
|
+
# insta runs
|
|
238
|
+
|
|
239
|
+
print("\033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐ ▌\033[0;37m \033[0;91;47m▐ \033[0;37m████\033[0;91;47m ▌\033[0;37m \033[0;91;47m▐ ▌\033[0m")
|
|
240
|
+
print("\033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m \033[0;91;47m▐░░▌\033[0;37m ▀▀▀▀ \033[0;91;47m▐░░▌\033[0;37m \033[0m")
|
|
241
|
+
print("\033[0;91;47m▐▒▒▌\033[0;37m \033[0;91;47m▐▒▒▒▒▒▒▒▒▌\033[0;37m \033[0;91;47m▐▒▒▒▒▒▌\033[0;37m \033[0;91;47m▐▒▒▌\033[0;37m \033[0;91;47m▐▒▒▒▒▒▒▒▌\033[0;37m \033[0;91;47m▐▒▒▌\033[0;37m \033[0;91;47m▐▒▒▌\033[0;37m \033[0;91;47m▐▒▒▒▒▒▒▒▒▌\033[0;37m \033[0;91;47m▐▒▒▌\033[0;37m \033[0m")
|
|
242
|
+
print("\033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91m▄▄▄▄\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0;91;47m▐▓▓▌\033[0;37m \033[0m")
|
|
243
|
+
print("\033[0;91;47m▐██████████▌\033[0;37m \033[0;91;47m▐██▌\033[0;37m \033[0;91;47m▐██▌\033[0;37m \033[0;91;47m▐████████▌\033[0;37m \033[0;91;47m▐██████████▌\033[0;37m \033[0;91;47m▐██▌\033[0;37m \033[0;91;47m▐██▌\033[0;37m \033[0;91;47m▐████████▌\033[0;37m \033[0;91;47m▐██████████▌\033[0;37m \033[0;91;47m▐██\033[0;91m████\033[0;91;47m██▌\033[0;37m \033[0;91;47m▐██▌\033[0;37m \033[0m")
|
|
244
|
+
|
|
245
|
+
main()
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 bobbelay
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
global.include *.txt *.py
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: checklist-anywhere
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A checklist to access everywhere with internet
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: bobbelay
|
|
7
|
+
Author-email:
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: checklist
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
License-File: LICENCE.txt
|
|
16
|
+
Requires-Dist: requests
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: keywords
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
This is a checklist / tasklist that you can use, an account is mandatory (for now) to use (Create an account by running the tool and creating it there).
|
|
27
|
+
The data saves (Manual save) and you can access the data from anywhere with the tool installed.
|
|
28
|
+
|
|
29
|
+
Change Log
|
|
30
|
+
============
|
|
31
|
+
|
|
32
|
+
0.0.1 (2026/11/24 ~15:00)
|
|
33
|
+
--------------------------
|
|
34
|
+
- First Release
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: checklist-anywhere
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A checklist to access everywhere with internet
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: bobbelay
|
|
7
|
+
Author-email:
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: checklist
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
License-File: LICENCE.txt
|
|
16
|
+
Requires-Dist: requests
|
|
17
|
+
Dynamic: author
|
|
18
|
+
Dynamic: classifier
|
|
19
|
+
Dynamic: description
|
|
20
|
+
Dynamic: keywords
|
|
21
|
+
Dynamic: license
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
Dynamic: requires-dist
|
|
24
|
+
Dynamic: summary
|
|
25
|
+
|
|
26
|
+
This is a checklist / tasklist that you can use, an account is mandatory (for now) to use (Create an account by running the tool and creating it there).
|
|
27
|
+
The data saves (Manual save) and you can access the data from anywhere with the tool installed.
|
|
28
|
+
|
|
29
|
+
Change Log
|
|
30
|
+
============
|
|
31
|
+
|
|
32
|
+
0.0.1 (2026/11/24 ~15:00)
|
|
33
|
+
--------------------------
|
|
34
|
+
- First Release
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
LICENCE.txt
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.txt
|
|
4
|
+
setup.py
|
|
5
|
+
Checklist_script/__init__.py
|
|
6
|
+
checklist_anywhere.egg-info/PKG-INFO
|
|
7
|
+
checklist_anywhere.egg-info/SOURCES.txt
|
|
8
|
+
checklist_anywhere.egg-info/dependency_links.txt
|
|
9
|
+
checklist_anywhere.egg-info/requires.txt
|
|
10
|
+
checklist_anywhere.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Checklist_script
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
classifiers = [
|
|
4
|
+
'Development Status :: 4 - Beta',
|
|
5
|
+
'Intended Audience :: End Users/Desktop',
|
|
6
|
+
'Operating System :: Microsoft :: Windows :: Windows 11',
|
|
7
|
+
'License :: OSI Approved :: MIT License',
|
|
8
|
+
'Programming Language :: Python :: 3'
|
|
9
|
+
]
|
|
10
|
+
|
|
11
|
+
setup(
|
|
12
|
+
name='checklist-anywhere',
|
|
13
|
+
version='0.0.1',
|
|
14
|
+
description='A checklist to access everywhere with internet',
|
|
15
|
+
long_description=open('README.txt').read() + '\n\n' + open('CHANGELOG.txt').read(),
|
|
16
|
+
url='',
|
|
17
|
+
author='bobbelay',
|
|
18
|
+
author_email='',
|
|
19
|
+
license='MIT',
|
|
20
|
+
classifiers=classifiers,
|
|
21
|
+
keywords='checklist',
|
|
22
|
+
packages=find_packages(),
|
|
23
|
+
install_requires=['requests']
|
|
24
|
+
)
|