winipedia-utils 0.1.63__py3-none-any.whl → 0.2.0__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.

Potentially problematic release.


This version of winipedia-utils might be problematic. Click here for more details.

Files changed (91) hide show
  1. winipedia_utils/concurrent/concurrent.py +245 -242
  2. winipedia_utils/concurrent/multiprocessing.py +130 -115
  3. winipedia_utils/concurrent/multithreading.py +93 -93
  4. winipedia_utils/consts.py +23 -23
  5. winipedia_utils/data/__init__.py +1 -1
  6. winipedia_utils/data/dataframe/__init__.py +1 -0
  7. winipedia_utils/data/dataframe/cleaning.py +378 -0
  8. winipedia_utils/data/structures/__init__.py +1 -0
  9. winipedia_utils/data/structures/dicts.py +16 -0
  10. winipedia_utils/django/__init__.py +24 -24
  11. winipedia_utils/django/bulk.py +538 -538
  12. winipedia_utils/django/command.py +334 -334
  13. winipedia_utils/django/database.py +289 -289
  14. winipedia_utils/git/__init__.py +1 -1
  15. winipedia_utils/git/gitignore/__init__.py +1 -1
  16. winipedia_utils/git/gitignore/gitignore.py +136 -136
  17. winipedia_utils/git/pre_commit/__init__.py +1 -1
  18. winipedia_utils/git/pre_commit/config.py +70 -70
  19. winipedia_utils/git/pre_commit/hooks.py +109 -109
  20. winipedia_utils/git/pre_commit/run_hooks.py +49 -49
  21. winipedia_utils/iterating/__init__.py +1 -1
  22. winipedia_utils/iterating/iterate.py +29 -29
  23. winipedia_utils/logging/ansi.py +6 -6
  24. winipedia_utils/logging/config.py +64 -64
  25. winipedia_utils/logging/logger.py +26 -26
  26. winipedia_utils/modules/class_.py +119 -119
  27. winipedia_utils/modules/function.py +101 -103
  28. winipedia_utils/modules/module.py +379 -379
  29. winipedia_utils/modules/package.py +390 -390
  30. winipedia_utils/oop/mixins/meta.py +333 -331
  31. winipedia_utils/oop/mixins/mixin.py +37 -37
  32. winipedia_utils/os/__init__.py +1 -1
  33. winipedia_utils/os/os.py +63 -63
  34. winipedia_utils/projects/__init__.py +1 -1
  35. winipedia_utils/projects/poetry/__init__.py +1 -1
  36. winipedia_utils/projects/poetry/config.py +91 -91
  37. winipedia_utils/projects/poetry/poetry.py +31 -31
  38. winipedia_utils/projects/project.py +48 -48
  39. winipedia_utils/pyside/__init__.py +1 -1
  40. winipedia_utils/pyside/core/__init__.py +1 -1
  41. winipedia_utils/pyside/core/py_qiodevice.py +476 -476
  42. winipedia_utils/pyside/ui/__init__.py +1 -1
  43. winipedia_utils/pyside/ui/base/__init__.py +1 -1
  44. winipedia_utils/pyside/ui/base/base.py +180 -180
  45. winipedia_utils/pyside/ui/pages/__init__.py +1 -1
  46. winipedia_utils/pyside/ui/pages/base/__init__.py +1 -1
  47. winipedia_utils/pyside/ui/pages/base/base.py +92 -92
  48. winipedia_utils/pyside/ui/pages/browser.py +26 -26
  49. winipedia_utils/pyside/ui/pages/player.py +85 -85
  50. winipedia_utils/pyside/ui/widgets/__init__.py +1 -1
  51. winipedia_utils/pyside/ui/widgets/browser.py +243 -243
  52. winipedia_utils/pyside/ui/widgets/clickable_widget.py +57 -57
  53. winipedia_utils/pyside/ui/widgets/media_player.py +430 -430
  54. winipedia_utils/pyside/ui/widgets/notification.py +78 -78
  55. winipedia_utils/pyside/ui/windows/__init__.py +1 -1
  56. winipedia_utils/pyside/ui/windows/base/__init__.py +1 -1
  57. winipedia_utils/pyside/ui/windows/base/base.py +49 -49
  58. winipedia_utils/resources/__init__.py +1 -1
  59. winipedia_utils/resources/svgs/__init__.py +1 -1
  60. winipedia_utils/resources/svgs/download_arrow.svg +2 -2
  61. winipedia_utils/resources/svgs/exit_fullscreen_icon.svg +5 -5
  62. winipedia_utils/resources/svgs/fullscreen_icon.svg +2 -2
  63. winipedia_utils/resources/svgs/menu_icon.svg +3 -3
  64. winipedia_utils/resources/svgs/pause_icon.svg +3 -3
  65. winipedia_utils/resources/svgs/play_icon.svg +16 -16
  66. winipedia_utils/resources/svgs/plus_icon.svg +23 -23
  67. winipedia_utils/resources/svgs/svg.py +15 -15
  68. winipedia_utils/security/__init__.py +1 -1
  69. winipedia_utils/security/cryptography.py +29 -29
  70. winipedia_utils/security/keyring.py +70 -70
  71. winipedia_utils/setup.py +47 -47
  72. winipedia_utils/testing/assertions.py +23 -23
  73. winipedia_utils/testing/convention.py +177 -177
  74. winipedia_utils/testing/create_tests.py +291 -291
  75. winipedia_utils/testing/fixtures.py +28 -28
  76. winipedia_utils/testing/tests/base/fixtures/__init__.py +1 -1
  77. winipedia_utils/testing/tests/base/fixtures/fixture.py +6 -6
  78. winipedia_utils/testing/tests/base/fixtures/scopes/class_.py +33 -33
  79. winipedia_utils/testing/tests/base/fixtures/scopes/function.py +7 -7
  80. winipedia_utils/testing/tests/base/fixtures/scopes/module.py +31 -31
  81. winipedia_utils/testing/tests/base/fixtures/scopes/package.py +7 -7
  82. winipedia_utils/testing/tests/base/fixtures/scopes/session.py +312 -312
  83. winipedia_utils/testing/tests/base/utils/utils.py +82 -82
  84. winipedia_utils/testing/tests/conftest.py +32 -32
  85. winipedia_utils/text/string.py +126 -126
  86. {winipedia_utils-0.1.63.dist-info → winipedia_utils-0.2.0.dist-info}/METADATA +5 -4
  87. winipedia_utils-0.2.0.dist-info/RECORD +103 -0
  88. {winipedia_utils-0.1.63.dist-info → winipedia_utils-0.2.0.dist-info}/WHEEL +1 -1
  89. {winipedia_utils-0.1.63.dist-info → winipedia_utils-0.2.0.dist-info/licenses}/LICENSE +21 -21
  90. winipedia_utils/data/dataframe.py +0 -7
  91. winipedia_utils-0.1.63.dist-info/RECORD +0 -100
@@ -1,57 +1,57 @@
1
- """Clickable widget module.
2
-
3
- This module contains clickable widget classes that emit signals when clicked.
4
- Provides both regular QWidget and QVideoWidget variants with click functionality.
5
- """
6
-
7
- from typing import Any
8
-
9
- from PySide6.QtCore import Qt, Signal
10
- from PySide6.QtMultimediaWidgets import QVideoWidget
11
- from PySide6.QtWidgets import QWidget
12
-
13
-
14
- class ClickableWidget(QWidget):
15
- """Widget that can be clicked.
16
-
17
- A QWidget subclass that emits a clicked signal when the left mouse
18
- button is pressed on the widget.
19
- """
20
-
21
- clicked = Signal()
22
-
23
- def mousePressEvent(self, event: Any) -> None: # noqa: N802
24
- """Handle mouse press event.
25
-
26
- Emits the clicked signal when the left mouse button is pressed
27
- and passes the event to the parent class.
28
-
29
- Args:
30
- event: The mouse press event containing button and position information.
31
- """
32
- if event.button() == Qt.MouseButton.LeftButton:
33
- self.clicked.emit()
34
- super().mousePressEvent(event)
35
-
36
-
37
- class ClickableVideoWidget(QVideoWidget):
38
- """Video widget that can be clicked.
39
-
40
- A QVideoWidget subclass that emits a clicked signal when the left mouse
41
- button is pressed on the video widget.
42
- """
43
-
44
- clicked = Signal()
45
-
46
- def mousePressEvent(self, event: Any) -> None: # noqa: N802
47
- """Handle mouse press event.
48
-
49
- Emits the clicked signal when the left mouse button is pressed
50
- and passes the event to the parent class.
51
-
52
- Args:
53
- event: The mouse press event containing button and position information.
54
- """
55
- if event.button() == Qt.MouseButton.LeftButton:
56
- self.clicked.emit()
57
- super().mousePressEvent(event)
1
+ """Clickable widget module.
2
+
3
+ This module contains clickable widget classes that emit signals when clicked.
4
+ Provides both regular QWidget and QVideoWidget variants with click functionality.
5
+ """
6
+
7
+ from typing import Any
8
+
9
+ from PySide6.QtCore import Qt, Signal
10
+ from PySide6.QtMultimediaWidgets import QVideoWidget
11
+ from PySide6.QtWidgets import QWidget
12
+
13
+
14
+ class ClickableWidget(QWidget):
15
+ """Widget that can be clicked.
16
+
17
+ A QWidget subclass that emits a clicked signal when the left mouse
18
+ button is pressed on the widget.
19
+ """
20
+
21
+ clicked = Signal()
22
+
23
+ def mousePressEvent(self, event: Any) -> None: # noqa: N802
24
+ """Handle mouse press event.
25
+
26
+ Emits the clicked signal when the left mouse button is pressed
27
+ and passes the event to the parent class.
28
+
29
+ Args:
30
+ event: The mouse press event containing button and position information.
31
+ """
32
+ if event.button() == Qt.MouseButton.LeftButton:
33
+ self.clicked.emit()
34
+ super().mousePressEvent(event)
35
+
36
+
37
+ class ClickableVideoWidget(QVideoWidget):
38
+ """Video widget that can be clicked.
39
+
40
+ A QVideoWidget subclass that emits a clicked signal when the left mouse
41
+ button is pressed on the video widget.
42
+ """
43
+
44
+ clicked = Signal()
45
+
46
+ def mousePressEvent(self, event: Any) -> None: # noqa: N802
47
+ """Handle mouse press event.
48
+
49
+ Emits the clicked signal when the left mouse button is pressed
50
+ and passes the event to the parent class.
51
+
52
+ Args:
53
+ event: The mouse press event containing button and position information.
54
+ """
55
+ if event.button() == Qt.MouseButton.LeftButton:
56
+ self.clicked.emit()
57
+ super().mousePressEvent(event)