read_only_friday_checker 1.0.1__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.
- read_only_friday_checker/__init__.py +0 -0
- read_only_friday_checker/app.py +87 -0
- read_only_friday_checker/resources/PYPI_README.md +18 -0
- read_only_friday_checker/resources/images/read_only_friday_checker-128.png +0 -0
- read_only_friday_checker/resources/images/read_only_friday_checker-16.png +0 -0
- read_only_friday_checker/resources/images/read_only_friday_checker-256.png +0 -0
- read_only_friday_checker/resources/images/read_only_friday_checker-32.png +0 -0
- read_only_friday_checker/resources/images/read_only_friday_checker-512.png +0 -0
- read_only_friday_checker/resources/images/read_only_friday_checker-64.png +0 -0
- read_only_friday_checker/rof_api_checker.py +11 -0
- read_only_friday_checker-1.0.1.dist-info/METADATA +32 -0
- read_only_friday_checker-1.0.1.dist-info/RECORD +15 -0
- read_only_friday_checker-1.0.1.dist-info/WHEEL +4 -0
- read_only_friday_checker-1.0.1.dist-info/entry_points.txt +2 -0
- read_only_friday_checker-1.0.1.dist-info/licenses/LICENSE +19 -0
|
File without changes
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"""
|
|
2
|
+
This checks to see if today is Read Only Friday.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
from PySide6.QtCore import Qt
|
|
8
|
+
from PySide6.QtGui import QFont
|
|
9
|
+
from PySide6.QtWidgets import (
|
|
10
|
+
QApplication,
|
|
11
|
+
QMainWindow,
|
|
12
|
+
QWidget,
|
|
13
|
+
QPushButton,
|
|
14
|
+
QVBoxLayout,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
from .rof_api_checker import RofApiChecker
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ReadOnlyFridayChecker(QMainWindow):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
super().__init__()
|
|
23
|
+
self.init_ui()
|
|
24
|
+
|
|
25
|
+
def init_ui(self):
|
|
26
|
+
self.show()
|
|
27
|
+
|
|
28
|
+
# * Set window default settings
|
|
29
|
+
self.setWindowTitle("Read Only Friday Checker")
|
|
30
|
+
self.setFixedSize(300, 150)
|
|
31
|
+
|
|
32
|
+
# * Create widgets
|
|
33
|
+
self.rof_check = QPushButton("Is it read-only Friday? \nPress me to find out!")
|
|
34
|
+
self.rof_check.setFixedSize(280, 130)
|
|
35
|
+
self.rof_check.setFont(self.set_font())
|
|
36
|
+
|
|
37
|
+
# * Create layout
|
|
38
|
+
page = QVBoxLayout()
|
|
39
|
+
page.addWidget(self.rof_check)
|
|
40
|
+
|
|
41
|
+
gui = QWidget()
|
|
42
|
+
gui.setLayout(page)
|
|
43
|
+
|
|
44
|
+
self.setCentralWidget(gui)
|
|
45
|
+
|
|
46
|
+
# * Define connections
|
|
47
|
+
self.rof_check.pressed.connect(self.check_rof)
|
|
48
|
+
|
|
49
|
+
# * Apply theme to window
|
|
50
|
+
self.apply_theme()
|
|
51
|
+
|
|
52
|
+
def check_rof(self):
|
|
53
|
+
rof = RofApiChecker()
|
|
54
|
+
(
|
|
55
|
+
self.rof_check.setText("Yes! \nDon't change anything!")
|
|
56
|
+
if rof.get_response().json()["readonly"] is True
|
|
57
|
+
else self.rof_check.setText("Nope. \nChange away!")
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
def apply_theme(self):
|
|
61
|
+
self.main_stylesheet = """
|
|
62
|
+
background-color: #2e3440;
|
|
63
|
+
color: #eceff4;
|
|
64
|
+
border: 1px solid #434c5e;
|
|
65
|
+
border-radius: 4px;
|
|
66
|
+
padding: 2px 4px;
|
|
67
|
+
"""
|
|
68
|
+
self.widget_stylesheet = """
|
|
69
|
+
background-color: #4c566a;
|
|
70
|
+
"""
|
|
71
|
+
self.setStyleSheet(self.main_stylesheet)
|
|
72
|
+
self.rof_check.setStyleSheet(self.widget_stylesheet)
|
|
73
|
+
|
|
74
|
+
def set_font(self):
|
|
75
|
+
font = QFont()
|
|
76
|
+
font.setPointSize(12)
|
|
77
|
+
return font
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def main():
|
|
81
|
+
app = QApplication(sys.argv)
|
|
82
|
+
main_window = ReadOnlyFridayChecker() # noqa: F841
|
|
83
|
+
sys.exit(app.exec())
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
if __name__ == "__main__":
|
|
87
|
+
main()
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
## Donations
|
|
2
|
+
|
|
3
|
+
- [Buy Me A Coffee](https://www.buymeacoffee.com/KingKairos)
|
|
4
|
+
- [GitHub Sponsors](https://github.com/sponsors/melvinquick)
|
|
5
|
+
|
|
6
|
+
## Purpose
|
|
7
|
+
|
|
8
|
+
This app was mostly made as a joke for my friends. It just reaches out to https://isitreadonlyfriday.com using their API and does a check to see if it's Read Only Friday in the EST timezone.
|
|
9
|
+
|
|
10
|
+
## Install/Uninstall
|
|
11
|
+
|
|
12
|
+
Install: `curl -s https://codeberg.org/melvinquick/read_only_friday_checker/raw/branch/main/install.py | python3 -`
|
|
13
|
+
Uninstall: `curl -s https://codeberg.org/melvinquick/read_only_friday_checker/raw/branch/main/uninstall.py | python3 -`
|
|
14
|
+
|
|
15
|
+
## Useful Information
|
|
16
|
+
|
|
17
|
+
- [Latest Release](https://codeberg.org/melvinquick/read_only_friday_checker/releases/latest)
|
|
18
|
+
- [Releases](https://codeberg.org/melvinquick/read_only_friday_checker/releases)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: read_only_friday_checker
|
|
3
|
+
Version: 1.0.1
|
|
4
|
+
Summary: This checks to see if today is Read Only Friday.
|
|
5
|
+
Project-URL: repository, https://codeberg.org/melvinquick/read_only_friday_checker
|
|
6
|
+
Project-URL: issues, https://codeberg.org/melvinquick/read_only_friday_checker/issues
|
|
7
|
+
Author-email: Melvin Quick <melvinquick@proton.me>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Requires-Python: >=3.12
|
|
11
|
+
Requires-Dist: pyside6>=6.8.2.1
|
|
12
|
+
Requires-Dist: requests>=2.32.3
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
## Donations
|
|
16
|
+
|
|
17
|
+
- [Buy Me A Coffee](https://www.buymeacoffee.com/KingKairos)
|
|
18
|
+
- [GitHub Sponsors](https://github.com/sponsors/melvinquick)
|
|
19
|
+
|
|
20
|
+
## Purpose
|
|
21
|
+
|
|
22
|
+
This app was mostly made as a joke for my friends. It just reaches out to https://isitreadonlyfriday.com using their API and does a check to see if it's Read Only Friday in the EST timezone.
|
|
23
|
+
|
|
24
|
+
## Install/Uninstall
|
|
25
|
+
|
|
26
|
+
Install: `curl -s https://codeberg.org/melvinquick/read_only_friday_checker/raw/branch/main/install.py | python3 -`
|
|
27
|
+
Uninstall: `curl -s https://codeberg.org/melvinquick/read_only_friday_checker/raw/branch/main/uninstall.py | python3 -`
|
|
28
|
+
|
|
29
|
+
## Useful Information
|
|
30
|
+
|
|
31
|
+
- [Latest Release](https://codeberg.org/melvinquick/read_only_friday_checker/releases/latest)
|
|
32
|
+
- [Releases](https://codeberg.org/melvinquick/read_only_friday_checker/releases)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
read_only_friday_checker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
read_only_friday_checker/app.py,sha256=C3eRRPsvWinhSkivuC0vV3OBNuQp1pEAqf5fKp6GVk0,2114
|
|
3
|
+
read_only_friday_checker/rof_api_checker.py,sha256=23WwqfDzJL4s2EFNeEBZJKpfnSiU8XcYdtIHRr7H5Ow,227
|
|
4
|
+
read_only_friday_checker/resources/PYPI_README.md,sha256=agwtr2Wy-wcjWu_uhTOzIqemhTkD9yTpo6OuB2E1hmI,800
|
|
5
|
+
read_only_friday_checker/resources/images/read_only_friday_checker-128.png,sha256=BTflNJukMlQmDOS_z6pQ1aiUTLRy3zzKT20GTvEYnGA,2417
|
|
6
|
+
read_only_friday_checker/resources/images/read_only_friday_checker-16.png,sha256=7LCiw3RDN3le41_-zaz_GMEKqHPlVKnO4MtkyvFpYVY,200
|
|
7
|
+
read_only_friday_checker/resources/images/read_only_friday_checker-256.png,sha256=B61k0f0Hejtu3VyNBtIShmSKK5IXNJEzr2XfgWT0ejo,5224
|
|
8
|
+
read_only_friday_checker/resources/images/read_only_friday_checker-32.png,sha256=9fjoJzQh1QnVhTXUmL8a3DH3sEuy8Xd64gRbTmNyjqA,351
|
|
9
|
+
read_only_friday_checker/resources/images/read_only_friday_checker-512.png,sha256=hVyHYhocXU32p15HYiB8bzm3PKyk_GU_rrZm1TcRCm0,10852
|
|
10
|
+
read_only_friday_checker/resources/images/read_only_friday_checker-64.png,sha256=lz7_RFbd-nTTU8nj6jUReRBcB-rY1BQ2rdvnX5NEFiA,1033
|
|
11
|
+
read_only_friday_checker-1.0.1.dist-info/METADATA,sha256=r67tAC-4EcRWOczHBqnrHi92dseBWhJIejUEPKLRFyA,1321
|
|
12
|
+
read_only_friday_checker-1.0.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
13
|
+
read_only_friday_checker-1.0.1.dist-info/entry_points.txt,sha256=3KlPlpEnCTalyHtmxjab7G8qNf8Fv858MbwXx8SkOao,79
|
|
14
|
+
read_only_friday_checker-1.0.1.dist-info/licenses/LICENSE,sha256=Qtra8ztedMMfw78koiULsuSfq7XoBz7jUSbakUWqlRw,1057
|
|
15
|
+
read_only_friday_checker-1.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2025, Melvin Quick
|
|
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.
|