lyrpy 2025.0.1__py3-none-any.whl → 2025.0.2__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 lyrpy might be problematic. Click here for more details.

Files changed (109) hide show
  1. SRC/LIB/__init__.py +21 -0
  2. SRC/lyrpy/LUConsole.py +402 -0
  3. SRC/lyrpy/LUConst.py +358 -0
  4. SRC/lyrpy/LUDateTime.py +205 -0
  5. SRC/lyrpy/LUDecotators.py +417 -0
  6. SRC/lyrpy/LUDict.py +116 -0
  7. SRC/lyrpy/LUDoc.py +62 -0
  8. SRC/lyrpy/LUErrors.py +79 -0
  9. SRC/lyrpy/LUFile.py +1228 -0
  10. SRC/lyrpy/LUFileUtils.py +501 -0
  11. SRC/lyrpy/LULog.py +2324 -0
  12. SRC/lyrpy/LUNetwork.py +277 -0
  13. SRC/lyrpy/LUNumUtils.py +305 -0
  14. SRC/lyrpy/LUObjects.py +208 -0
  15. SRC/lyrpy/LUObjectsYT.py +846 -0
  16. SRC/lyrpy/LUParserARG.py +364 -0
  17. SRC/lyrpy/LUParserINI.py +376 -0
  18. SRC/lyrpy/LUParserREG.py +514 -0
  19. SRC/lyrpy/LUProc.py +110 -0
  20. SRC/lyrpy/LUQThread.py +141 -0
  21. SRC/lyrpy/LUQTimer.py +197 -0
  22. SRC/lyrpy/LUSheduler.py +941 -0
  23. SRC/lyrpy/LUStrDecode.py +223 -0
  24. SRC/lyrpy/LUStrUtils.py +633 -0
  25. SRC/lyrpy/LUSupport.py +124 -0
  26. SRC/lyrpy/LUTelegram.py +428 -0
  27. SRC/lyrpy/LUThread.py +177 -0
  28. SRC/lyrpy/LUTimer.py +141 -0
  29. SRC/lyrpy/LUVersion.py +383 -0
  30. SRC/lyrpy/LUYouTube.py +203 -0
  31. SRC/lyrpy/LUos.py +807 -0
  32. SRC/lyrpy/LUsys.py +47 -0
  33. SRC/lyrpy/__init__.py +21 -0
  34. SRC/lyrpy/__main__.py +20 -0
  35. __SRC/LIB/__init__.py +0 -0
  36. __SRC/LIB/lyrpy/LUConsole.py +402 -0
  37. __SRC/LIB/lyrpy/LUConst.py +358 -0
  38. __SRC/LIB/lyrpy/LUDateTime.py +205 -0
  39. __SRC/LIB/lyrpy/LUDecotators.py +417 -0
  40. __SRC/LIB/lyrpy/LUDict.py +116 -0
  41. __SRC/LIB/lyrpy/LUDoc.py +62 -0
  42. __SRC/LIB/lyrpy/LUErrors.py +79 -0
  43. __SRC/LIB/lyrpy/LUFile.py +1228 -0
  44. __SRC/LIB/lyrpy/LUFileUtils.py +501 -0
  45. __SRC/LIB/lyrpy/LULog.py +2324 -0
  46. __SRC/LIB/lyrpy/LUNetwork.py +277 -0
  47. __SRC/LIB/lyrpy/LUNumUtils.py +305 -0
  48. __SRC/LIB/lyrpy/LUObjects.py +208 -0
  49. __SRC/LIB/lyrpy/LUObjectsYT.py +846 -0
  50. __SRC/LIB/lyrpy/LUParserARG.py +364 -0
  51. __SRC/LIB/lyrpy/LUParserINI.py +376 -0
  52. __SRC/LIB/lyrpy/LUParserREG.py +514 -0
  53. __SRC/LIB/lyrpy/LUProc.py +110 -0
  54. __SRC/LIB/lyrpy/LUQThread.py +141 -0
  55. __SRC/LIB/lyrpy/LUQTimer.py +197 -0
  56. __SRC/LIB/lyrpy/LUSheduler.py +941 -0
  57. __SRC/LIB/lyrpy/LUStrDecode.py +223 -0
  58. __SRC/LIB/lyrpy/LUStrUtils.py +633 -0
  59. __SRC/LIB/lyrpy/LUSupport.py +124 -0
  60. __SRC/LIB/lyrpy/LUTelegram.py +428 -0
  61. __SRC/LIB/lyrpy/LUThread.py +177 -0
  62. __SRC/LIB/lyrpy/LUTimer.py +141 -0
  63. __SRC/LIB/lyrpy/LUVersion.py +383 -0
  64. __SRC/LIB/lyrpy/LUYouTube.py +203 -0
  65. __SRC/LIB/lyrpy/LUos.py +807 -0
  66. __SRC/LIB/lyrpy/LUsys.py +47 -0
  67. __SRC/LIB/lyrpy/__init__.py +21 -0
  68. __SRC/LIB/lyrpy/__main__.py +20 -0
  69. __SRC/__init__.py +0 -0
  70. ____src/__init__.py +0 -0
  71. ____src/lyrpy/LUConsole.py +402 -0
  72. ____src/lyrpy/LUConst.py +358 -0
  73. ____src/lyrpy/LUDateTime.py +205 -0
  74. ____src/lyrpy/LUDecotators.py +417 -0
  75. ____src/lyrpy/LUDict.py +116 -0
  76. ____src/lyrpy/LUDoc.py +62 -0
  77. ____src/lyrpy/LUErrors.py +79 -0
  78. ____src/lyrpy/LUFile.py +1228 -0
  79. ____src/lyrpy/LUFileUtils.py +501 -0
  80. ____src/lyrpy/LULog.py +2324 -0
  81. ____src/lyrpy/LUNetwork.py +277 -0
  82. ____src/lyrpy/LUNumUtils.py +305 -0
  83. ____src/lyrpy/LUObjects.py +208 -0
  84. ____src/lyrpy/LUObjectsYT.py +846 -0
  85. ____src/lyrpy/LUParserARG.py +364 -0
  86. ____src/lyrpy/LUParserINI.py +376 -0
  87. ____src/lyrpy/LUParserREG.py +514 -0
  88. ____src/lyrpy/LUProc.py +110 -0
  89. ____src/lyrpy/LUQThread.py +141 -0
  90. ____src/lyrpy/LUQTimer.py +197 -0
  91. ____src/lyrpy/LUSheduler.py +941 -0
  92. ____src/lyrpy/LUStrDecode.py +223 -0
  93. ____src/lyrpy/LUStrUtils.py +633 -0
  94. ____src/lyrpy/LUSupport.py +124 -0
  95. ____src/lyrpy/LUTelegram.py +428 -0
  96. ____src/lyrpy/LUThread.py +177 -0
  97. ____src/lyrpy/LUTimer.py +141 -0
  98. ____src/lyrpy/LUVersion.py +383 -0
  99. ____src/lyrpy/LUYouTube.py +203 -0
  100. ____src/lyrpy/LUos.py +807 -0
  101. ____src/lyrpy/LUsys.py +47 -0
  102. ____src/lyrpy/__init__.py +21 -0
  103. ____src/lyrpy/__main__.py +20 -0
  104. {lyrpy-2025.0.1.dist-info → lyrpy-2025.0.2.dist-info}/METADATA +1 -1
  105. lyrpy-2025.0.2.dist-info/RECORD +145 -0
  106. lyrpy-2025.0.1.dist-info/RECORD +0 -43
  107. {lyrpy-2025.0.1.dist-info → lyrpy-2025.0.2.dist-info}/WHEEL +0 -0
  108. {lyrpy-2025.0.1.dist-info → lyrpy-2025.0.2.dist-info}/licenses/LICENSE +0 -0
  109. {lyrpy-2025.0.1.dist-info → lyrpy-2025.0.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,203 @@
1
+ """LUYouTube.py"""
2
+ # -*- coding: UTF-8 -*-
3
+ __annotations__ ="""
4
+ =======================================================
5
+ Copyright (c) 2023-2024
6
+ Author:
7
+ Lisitsin Y.R.
8
+ Project:
9
+ LU_PY
10
+ Python (LU)
11
+ Module:
12
+ LUYouTube.py
13
+
14
+ =======================================================
15
+ """
16
+
17
+ #------------------------------------------
18
+ # БИБЛИОТЕКИ python
19
+ #------------------------------------------
20
+ import sys
21
+
22
+ #------------------------------------------
23
+ # БИБЛИОТЕКИ сторонние
24
+ #------------------------------------------
25
+
26
+ #------------------------------------------
27
+ # БИБЛИОТЕКИ LU
28
+ #------------------------------------------
29
+ import lyrpy.LUObjectsYT as LUObjectsYT
30
+ import lyrpy.LUFile as LUFile
31
+
32
+ # --------------------------------------------
33
+ # TYouTubeObjectsItem
34
+ # --------------------------------------------
35
+ class TYouTubeObjectsItem (object):
36
+ """TYouTubeObjectsItem"""
37
+ luClassName = "TYouTubeObjectsItem"
38
+
39
+ #--------------------------------------------------
40
+ # constructor
41
+ #--------------------------------------------------
42
+ def __init__(self, APathDownload):
43
+ """Constructor"""
44
+ self.__FYouTubeObject: LUObjectsYT.TYouTubeObject = LUObjectsYT.TYouTubeObject(APathDownload)
45
+ #endfunction
46
+
47
+ #--------------------------------------------------
48
+ # destructor
49
+ #--------------------------------------------------
50
+ def __del__(self):
51
+ """destructor"""
52
+ # удалить объект
53
+ del self.__FYouTubeObject
54
+ LClassName = self.__class__.__name__
55
+ # s = '{} уничтожен'.format (LClassName)
56
+ # LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
57
+ #endfunction
58
+
59
+ #--------------------------------------------------
60
+ # @property YouTubeObject
61
+ #--------------------------------------------------
62
+ # getter
63
+ @property
64
+ def YouTubeObject(self):
65
+ #beginfunction
66
+ return self.__FYouTubeObject
67
+ #endfunction
68
+ @YouTubeObject.setter
69
+ def YouTubeObject(self, Value: LUObjectsYT.TYouTubeObject):
70
+ #beginfunction
71
+ self.__FYouTubeObject = Value
72
+ #endfunction
73
+ #endclass
74
+
75
+ # --------------------------------------------
76
+ # TYouTubeObjectsCollection
77
+ # --------------------------------------------
78
+ class TYouTubeObjectsCollection (list):
79
+ """TObjectsCollection"""
80
+ luClassName = "TYouTubeObjectsCollection"
81
+
82
+ #--------------------------------------------------
83
+ # constructor
84
+ #--------------------------------------------------
85
+ def __init__ (self, APathDownload: str):
86
+ """Constructor"""
87
+ #beginfunction
88
+ super ().__init__ ()
89
+ self.__FPathDownload = APathDownload
90
+ #endfunction
91
+
92
+ #--------------------------------------------------
93
+ # destructor
94
+ #--------------------------------------------------
95
+ def __del__ (self):
96
+ """destructor"""
97
+ #beginfunction
98
+ self.clear() # удалить все items
99
+ LClassName = self.__class__.__name__
100
+ # s = '{} уничтожен'.format (LClassName)
101
+ # LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
102
+ #endfunction
103
+
104
+ def AddItem (self) -> TYouTubeObjectsItem:
105
+ """AddItem"""
106
+ #beginfunction
107
+ LYouTubeObjectsItem: TYouTubeObjectsItem = TYouTubeObjectsItem (APathDownload = self.__FPathDownload)
108
+ self.append (LYouTubeObjectsItem)
109
+ return self [self.__len__()-1]
110
+ #endfunction
111
+
112
+ def GetItem (self, Index: int) -> TYouTubeObjectsItem:
113
+ """GetItem"""
114
+ #beginfunction
115
+ LResult: TYouTubeObjectsItem = self [Index]
116
+ return LResult
117
+ #endfunction
118
+
119
+ def SetItem (self, Index: int, Value: TYouTubeObjectsItem):
120
+ """SetItem"""
121
+ #beginfunction
122
+ self [Index] = Value
123
+ #endfunction
124
+
125
+ def FindYouTubeObjectsItemURL (self, AURL: str) -> TYouTubeObjectsItem:
126
+ """Поиск YouTubeObjectsItem по AURL"""
127
+ #beginfunction
128
+ for item in self:
129
+ LYouTubeObjectsItem:TYouTubeObjectsItem = item
130
+ LURL = LYouTubeObjectsItem.YouTubeObject.URL
131
+ if LURL == AURL:
132
+ return LYouTubeObjectsItem
133
+ #endif
134
+ #endfor
135
+ return None
136
+ #endfunction
137
+ #endclass
138
+
139
+ class TYouTube(object):
140
+ """TYouTube"""
141
+ __annotations__ = \
142
+ """
143
+ TYouTube -
144
+ """
145
+ luClassName = 'TYouTube'
146
+
147
+ #--------------------------------------------------
148
+ # constructor
149
+ #--------------------------------------------------
150
+ def __init__ (self, APathDownload: str):
151
+ """ Constructor """
152
+ #beginfunction
153
+ super ().__init__ ()
154
+ # YouTubeObjectsCollection
155
+ self.__FYouTubeObjectsCollection = TYouTubeObjectsCollection (APathDownload = APathDownload)
156
+
157
+ # self.__FAPPWorkDir = LUos.APPWorkDir ()
158
+ # self.__FAPPWorkDir = LUos.GetCurrentDir ()
159
+ self.__FAPPWorkDir = LUFile.ExtractFileDir(sys.argv[0])
160
+ self.__FPathDownload = APathDownload
161
+ #endfunction
162
+
163
+ #--------------------------------------------------
164
+ # destructor
165
+ #--------------------------------------------------
166
+ def __del__ (self):
167
+ """ destructor """
168
+ #beginfunction
169
+ del self.__FYouTubeObjectsCollection
170
+ LClassName = self.__class__.__name__
171
+ # s = '{} уничтожен'.format (LClassName)
172
+ # LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
173
+ #print (s)
174
+ #endfunction
175
+
176
+ #--------------------------------------------------
177
+ # @property YouTubeObjectsCollection
178
+ #--------------------------------------------------
179
+ # getter
180
+ @property
181
+ def YouTubeObjectsCollection (self):
182
+ #beginfunction
183
+ return self.__FYouTubeObjectsCollection
184
+ #endfunction
185
+ #endclass
186
+
187
+ #---------------------------------------------------------
188
+ # main
189
+ #---------------------------------------------------------
190
+ def main ():
191
+ #beginfunction
192
+ ...
193
+ #endfunction
194
+
195
+ #---------------------------------------------------------
196
+ #
197
+ #---------------------------------------------------------
198
+ #beginmodule
199
+ if __name__ == "__main__":
200
+ main()
201
+ #endif
202
+
203
+ #endmodule