lyrpy 2024.0.4__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.
- SRC/LIB/__init__.py +21 -0
- SRC/LIB/lyrpy/LUConst.py +358 -0
- {lyrpy → SRC/LIB/lyrpy}/LUDateTime.py +2 -4
- {lyrpy → SRC/LIB/lyrpy}/LUDecotators.py +2 -3
- {lyrpy → SRC/LIB/lyrpy}/LUDict.py +0 -1
- {lyrpy → SRC/LIB/lyrpy}/LUDoc.py +4 -3
- {lyrpy → SRC/LIB/lyrpy}/LUErrors.py +0 -1
- {lyrpy → SRC/LIB/lyrpy}/LUFile.py +115 -61
- {lyrpy → SRC/LIB/lyrpy}/LUFileUtils.py +60 -45
- {lyrpy → SRC/LIB/lyrpy}/LULog.py +267 -191
- {lyrpy → SRC/LIB/lyrpy}/LUObjects.py +4 -4
- {lyrpy → SRC/LIB/lyrpy}/LUObjectsYT.py +39 -22
- {lyrpy → SRC/LIB/lyrpy}/LUParserARG.py +2 -3
- {lyrpy → SRC/LIB/lyrpy}/LUParserINI.py +8 -3
- {lyrpy → SRC/LIB/lyrpy}/LUParserREG.py +5 -1
- {lyrpy → SRC/LIB/lyrpy}/LUQThread.py +6 -4
- {lyrpy → SRC/LIB/lyrpy}/LUQTimer.py +5 -5
- {lyrpy → SRC/LIB/lyrpy}/LUSheduler.py +24 -23
- SRC/LIB/lyrpy/LUTelegram.py +428 -0
- {lyrpy → SRC/LIB/lyrpy}/LUThread.py +7 -6
- {lyrpy → SRC/LIB/lyrpy}/LUTimer.py +5 -3
- {lyrpy → SRC/LIB/lyrpy}/LUVersion.py +4 -1
- {lyrpy → SRC/LIB/lyrpy}/LUYouTube.py +6 -7
- {lyrpy → SRC/LIB/lyrpy}/LUos.py +13 -3
- SRC/LIB/lyrpy/__init__.py +21 -0
- {lyrpy → SRC/LIB/lyrpy}/__main__.py +20 -19
- SRC/__init__.py +0 -0
- SRC/lyrpy/LUConsole.py +402 -0
- SRC/lyrpy/LUConst.py +358 -0
- SRC/lyrpy/LUDateTime.py +205 -0
- SRC/lyrpy/LUDecotators.py +417 -0
- SRC/lyrpy/LUDict.py +116 -0
- SRC/lyrpy/LUDoc.py +62 -0
- SRC/lyrpy/LUErrors.py +79 -0
- SRC/lyrpy/LUFile.py +1228 -0
- SRC/lyrpy/LUFileUtils.py +501 -0
- SRC/lyrpy/LULog.py +2324 -0
- SRC/lyrpy/LUNetwork.py +277 -0
- SRC/lyrpy/LUNumUtils.py +305 -0
- SRC/lyrpy/LUObjects.py +208 -0
- SRC/lyrpy/LUObjectsYT.py +846 -0
- SRC/lyrpy/LUParserARG.py +364 -0
- SRC/lyrpy/LUParserINI.py +376 -0
- SRC/lyrpy/LUParserREG.py +514 -0
- SRC/lyrpy/LUProc.py +110 -0
- SRC/lyrpy/LUQThread.py +141 -0
- SRC/lyrpy/LUQTimer.py +197 -0
- SRC/lyrpy/LUSheduler.py +941 -0
- SRC/lyrpy/LUStrDecode.py +223 -0
- SRC/lyrpy/LUStrUtils.py +633 -0
- SRC/lyrpy/LUSupport.py +124 -0
- SRC/lyrpy/LUTelegram.py +428 -0
- SRC/lyrpy/LUThread.py +177 -0
- SRC/lyrpy/LUTimer.py +141 -0
- SRC/lyrpy/LUVersion.py +383 -0
- SRC/lyrpy/LUYouTube.py +203 -0
- SRC/lyrpy/LUos.py +807 -0
- lyrpy/LUConst.py → SRC/lyrpy/LUsys.py +12 -10
- SRC/lyrpy/__init__.py +21 -0
- lyrpy/__init__.py → SRC/lyrpy/__main__.py +2 -3
- TESTS/__init__.py +0 -0
- TESTS/test_lyrpy.py +4 -0
- TESTS/test_main.py +10 -0
- __SRC/LIB/__init__.py +0 -0
- __SRC/LIB/lyrpy/LUConsole.py +402 -0
- __SRC/LIB/lyrpy/LUConst.py +358 -0
- __SRC/LIB/lyrpy/LUDateTime.py +205 -0
- __SRC/LIB/lyrpy/LUDecotators.py +417 -0
- __SRC/LIB/lyrpy/LUDict.py +116 -0
- __SRC/LIB/lyrpy/LUDoc.py +62 -0
- __SRC/LIB/lyrpy/LUErrors.py +79 -0
- __SRC/LIB/lyrpy/LUFile.py +1228 -0
- __SRC/LIB/lyrpy/LUFileUtils.py +501 -0
- __SRC/LIB/lyrpy/LULog.py +2324 -0
- __SRC/LIB/lyrpy/LUNetwork.py +277 -0
- __SRC/LIB/lyrpy/LUNumUtils.py +305 -0
- __SRC/LIB/lyrpy/LUObjects.py +208 -0
- __SRC/LIB/lyrpy/LUObjectsYT.py +846 -0
- __SRC/LIB/lyrpy/LUParserARG.py +364 -0
- __SRC/LIB/lyrpy/LUParserINI.py +376 -0
- __SRC/LIB/lyrpy/LUParserREG.py +514 -0
- __SRC/LIB/lyrpy/LUProc.py +110 -0
- __SRC/LIB/lyrpy/LUQThread.py +141 -0
- __SRC/LIB/lyrpy/LUQTimer.py +197 -0
- __SRC/LIB/lyrpy/LUSheduler.py +941 -0
- __SRC/LIB/lyrpy/LUStrDecode.py +223 -0
- __SRC/LIB/lyrpy/LUStrUtils.py +633 -0
- __SRC/LIB/lyrpy/LUSupport.py +124 -0
- __SRC/LIB/lyrpy/LUTelegram.py +428 -0
- __SRC/LIB/lyrpy/LUThread.py +177 -0
- __SRC/LIB/lyrpy/LUTimer.py +141 -0
- __SRC/LIB/lyrpy/LUVersion.py +383 -0
- __SRC/LIB/lyrpy/LUYouTube.py +203 -0
- __SRC/LIB/lyrpy/LUos.py +807 -0
- __SRC/LIB/lyrpy/LUsys.py +47 -0
- __SRC/LIB/lyrpy/__init__.py +21 -0
- __SRC/LIB/lyrpy/__main__.py +20 -0
- __SRC/__init__.py +0 -0
- ____src/__init__.py +0 -0
- ____src/lyrpy/LUConsole.py +402 -0
- ____src/lyrpy/LUConst.py +358 -0
- ____src/lyrpy/LUDateTime.py +205 -0
- ____src/lyrpy/LUDecotators.py +417 -0
- ____src/lyrpy/LUDict.py +116 -0
- ____src/lyrpy/LUDoc.py +62 -0
- ____src/lyrpy/LUErrors.py +79 -0
- ____src/lyrpy/LUFile.py +1228 -0
- ____src/lyrpy/LUFileUtils.py +501 -0
- ____src/lyrpy/LULog.py +2324 -0
- ____src/lyrpy/LUNetwork.py +277 -0
- ____src/lyrpy/LUNumUtils.py +305 -0
- ____src/lyrpy/LUObjects.py +208 -0
- ____src/lyrpy/LUObjectsYT.py +846 -0
- ____src/lyrpy/LUParserARG.py +364 -0
- ____src/lyrpy/LUParserINI.py +376 -0
- ____src/lyrpy/LUParserREG.py +514 -0
- ____src/lyrpy/LUProc.py +110 -0
- ____src/lyrpy/LUQThread.py +141 -0
- ____src/lyrpy/LUQTimer.py +197 -0
- ____src/lyrpy/LUSheduler.py +941 -0
- ____src/lyrpy/LUStrDecode.py +223 -0
- ____src/lyrpy/LUStrUtils.py +633 -0
- ____src/lyrpy/LUSupport.py +124 -0
- ____src/lyrpy/LUTelegram.py +428 -0
- ____src/lyrpy/LUThread.py +177 -0
- ____src/lyrpy/LUTimer.py +141 -0
- ____src/lyrpy/LUVersion.py +383 -0
- ____src/lyrpy/LUYouTube.py +203 -0
- ____src/lyrpy/LUos.py +807 -0
- ____src/lyrpy/LUsys.py +47 -0
- ____src/lyrpy/__init__.py +21 -0
- ____src/lyrpy/__main__.py +20 -0
- lyrpy-2025.0.2.dist-info/METADATA +21 -0
- lyrpy-2025.0.2.dist-info/RECORD +145 -0
- {lyrpy-2024.0.4.dist-info → lyrpy-2025.0.2.dist-info}/WHEEL +1 -1
- lyrpy-2025.0.2.dist-info/top_level.txt +2 -0
- lyrpy-2024.0.4.data/data/data/text.txt +0 -1
- lyrpy-2024.0.4.dist-info/METADATA +0 -44
- lyrpy-2024.0.4.dist-info/RECORD +0 -38
- lyrpy-2024.0.4.dist-info/top_level.txt +0 -1
- {lyrpy → SRC/LIB/lyrpy}/LUConsole.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUNetwork.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUNumUtils.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUProc.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUStrDecode.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUStrUtils.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUSupport.py +0 -0
- {lyrpy → SRC/LIB/lyrpy}/LUsys.py +0 -0
- {lyrpy-2024.0.4.dist-info → lyrpy-2025.0.2.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"""LUObjects.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
|
+
LUObjects.py
|
|
13
|
+
|
|
14
|
+
=======================================================
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
#------------------------------------------
|
|
18
|
+
# БИБЛИОТЕКИ python
|
|
19
|
+
#------------------------------------------
|
|
20
|
+
import logging
|
|
21
|
+
import enum
|
|
22
|
+
|
|
23
|
+
#------------------------------------------
|
|
24
|
+
# БИБЛИОТЕКИ сторонние
|
|
25
|
+
#------------------------------------------
|
|
26
|
+
|
|
27
|
+
#------------------------------------------
|
|
28
|
+
# БИБЛИОТЕКИ LU
|
|
29
|
+
#------------------------------------------
|
|
30
|
+
import lyrpy.LULog as LULog
|
|
31
|
+
|
|
32
|
+
# ===========================================================================
|
|
33
|
+
# type
|
|
34
|
+
# otUsers, otTask, otTasks, otDirectory, otEMail, otFile, otMonth, otUser
|
|
35
|
+
# ===========================================================================
|
|
36
|
+
# class syntax
|
|
37
|
+
@enum.unique
|
|
38
|
+
class TObjectTypeClass(enum.Enum):
|
|
39
|
+
"""TObjectTypeClass"""
|
|
40
|
+
otNone = 0
|
|
41
|
+
otYouTubeObject = 1
|
|
42
|
+
@classmethod
|
|
43
|
+
def Empty(cls):
|
|
44
|
+
...
|
|
45
|
+
#endclass
|
|
46
|
+
|
|
47
|
+
class TObjects (object):
|
|
48
|
+
"""TObjects"""
|
|
49
|
+
luClassName = "TObjects"
|
|
50
|
+
|
|
51
|
+
#--------------------------------------------------
|
|
52
|
+
# constructor
|
|
53
|
+
#--------------------------------------------------
|
|
54
|
+
def __init__(self):
|
|
55
|
+
""" Constructor """
|
|
56
|
+
#beginfunction
|
|
57
|
+
super().__init__()
|
|
58
|
+
self.__FTag: int = 0
|
|
59
|
+
self.__FObjectType: TObjectTypeClass = TObjectTypeClass.otNone
|
|
60
|
+
self.Clear()
|
|
61
|
+
#endfunction
|
|
62
|
+
|
|
63
|
+
#--------------------------------------------------
|
|
64
|
+
# destructor
|
|
65
|
+
#--------------------------------------------------
|
|
66
|
+
def __del__(self):
|
|
67
|
+
""" destructor """
|
|
68
|
+
#beginfunction
|
|
69
|
+
LClassName = self.__class__.__name__
|
|
70
|
+
# s = '{} уничтожен'.format (LClassName)
|
|
71
|
+
# LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
|
|
72
|
+
#print (s)
|
|
73
|
+
#endfunction
|
|
74
|
+
|
|
75
|
+
def Clear(self):
|
|
76
|
+
#beginfunction
|
|
77
|
+
self.Tag = 0
|
|
78
|
+
self.ObjectType = TObjectTypeClass.otNone
|
|
79
|
+
#endfunction
|
|
80
|
+
|
|
81
|
+
#--------------------------------------------------
|
|
82
|
+
# @property Tag
|
|
83
|
+
#--------------------------------------------------
|
|
84
|
+
# getter
|
|
85
|
+
@property
|
|
86
|
+
def Tag(self) -> int:
|
|
87
|
+
#beginfunction
|
|
88
|
+
return self.__FTag
|
|
89
|
+
#endfunction
|
|
90
|
+
@Tag.setter
|
|
91
|
+
def Tag(self, Value: int):
|
|
92
|
+
#beginfunction
|
|
93
|
+
self.__FTag = Value
|
|
94
|
+
#endfunction
|
|
95
|
+
|
|
96
|
+
#--------------------------------------------------
|
|
97
|
+
# @property ObjectType
|
|
98
|
+
#--------------------------------------------------
|
|
99
|
+
# getter
|
|
100
|
+
@property
|
|
101
|
+
def ObjectType(self) -> TObjectTypeClass:
|
|
102
|
+
#beginfunction
|
|
103
|
+
return self.__FObjectType
|
|
104
|
+
#endfunction
|
|
105
|
+
@ObjectType.setter
|
|
106
|
+
def ObjectType(self, Value: TObjectTypeClass):
|
|
107
|
+
#beginfunction
|
|
108
|
+
self.__FObjectType = Value
|
|
109
|
+
#endfunction
|
|
110
|
+
|
|
111
|
+
# --------------------------------------------
|
|
112
|
+
# TObjectsItem
|
|
113
|
+
# --------------------------------------------
|
|
114
|
+
class TObjectsItem (object):
|
|
115
|
+
"""TObjectsItem"""
|
|
116
|
+
luClassName = "TObjectsItem"
|
|
117
|
+
|
|
118
|
+
#--------------------------------------------------
|
|
119
|
+
# constructor
|
|
120
|
+
#--------------------------------------------------
|
|
121
|
+
def __init__(self):
|
|
122
|
+
""" Constructor """
|
|
123
|
+
super().__init__()
|
|
124
|
+
self.__FObjects: TObjects = TObjects ()
|
|
125
|
+
|
|
126
|
+
#--------------------------------------------------
|
|
127
|
+
# destructor
|
|
128
|
+
#--------------------------------------------------
|
|
129
|
+
def __del__(self):
|
|
130
|
+
""" destructor """
|
|
131
|
+
# удалить объект
|
|
132
|
+
del self.__FObjects
|
|
133
|
+
LClassName = self.__class__.__name__
|
|
134
|
+
# s = '{} уничтожен'.format (LClassName)
|
|
135
|
+
# LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
|
|
136
|
+
|
|
137
|
+
#--------------------------------------------------
|
|
138
|
+
# @property Objects
|
|
139
|
+
#--------------------------------------------------
|
|
140
|
+
# getter
|
|
141
|
+
@property
|
|
142
|
+
def Objects(self):
|
|
143
|
+
#beginfunction
|
|
144
|
+
return self.__FObjects
|
|
145
|
+
#endfunction
|
|
146
|
+
@Objects.setter
|
|
147
|
+
def Objects(self, Value: TObjects):
|
|
148
|
+
#beginfunction
|
|
149
|
+
self.__FObjects: TObjects = Value
|
|
150
|
+
#endfunction
|
|
151
|
+
#endclass
|
|
152
|
+
|
|
153
|
+
# --------------------------------------------
|
|
154
|
+
# TObjectsCollection
|
|
155
|
+
# --------------------------------------------
|
|
156
|
+
class TObjectsCollection (list):
|
|
157
|
+
"""TObjectsCollection"""
|
|
158
|
+
luClassName = "TObjectsCollection"
|
|
159
|
+
|
|
160
|
+
#--------------------------------------------------
|
|
161
|
+
# constructor
|
|
162
|
+
#--------------------------------------------------
|
|
163
|
+
def __init__ (self):
|
|
164
|
+
""" Constructor """
|
|
165
|
+
super ().__init__ ()
|
|
166
|
+
|
|
167
|
+
#--------------------------------------------------
|
|
168
|
+
# destructor
|
|
169
|
+
#--------------------------------------------------
|
|
170
|
+
def __del__(self):
|
|
171
|
+
""" destructor """
|
|
172
|
+
self.clear() # удалить все items
|
|
173
|
+
LClassName = self.__class__.__name__
|
|
174
|
+
# s = '{} уничтожен'.format (LClassName)
|
|
175
|
+
# LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
|
|
176
|
+
|
|
177
|
+
def AddItem(self) -> TObjectsItem:
|
|
178
|
+
LObjectsItem: TObjectsItem = TObjectsItem()
|
|
179
|
+
self.append (LObjectsItem)
|
|
180
|
+
return self[self.__len__()-1]
|
|
181
|
+
|
|
182
|
+
def GetItem(self, Index: int) -> TObjectsItem:
|
|
183
|
+
#beginfunction
|
|
184
|
+
LResult: TObjectsItem = self[Index]
|
|
185
|
+
return LResult
|
|
186
|
+
#endfunction
|
|
187
|
+
|
|
188
|
+
def SetItem(self, Index: int, Value: TObjectsItem):
|
|
189
|
+
#beginfunction
|
|
190
|
+
self[Index] = Value
|
|
191
|
+
#endfunction
|
|
192
|
+
#endclass
|
|
193
|
+
|
|
194
|
+
#------------------------------------------
|
|
195
|
+
def main ():
|
|
196
|
+
#beginfunction
|
|
197
|
+
print('main LUObjects.py...')
|
|
198
|
+
#endfunction
|
|
199
|
+
|
|
200
|
+
#------------------------------------------
|
|
201
|
+
#
|
|
202
|
+
#------------------------------------------
|
|
203
|
+
#beginmodule
|
|
204
|
+
if __name__ == "__main__":
|
|
205
|
+
main()
|
|
206
|
+
#endif
|
|
207
|
+
|
|
208
|
+
#endmodule
|