lyrpy 1.0.0__tar.gz → 2024.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 lyrpy might be problematic. Click here for more details.
- lyrpy-2024.0.1/PKG-INFO +43 -0
- lyrpy-2024.0.1/README.md +5 -0
- lyrpy-2024.0.1/data/text.txt +1 -0
- lyrpy-2024.0.1/pyproject.toml +53 -0
- lyrpy-2024.0.1/setup.cfg +7 -0
- lyrpy-2024.0.1/setup.py +62 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUConsole.py +1 -1
- lyrpy-2024.0.1/src/lyr/LUConst.py +45 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUDateTime.py +4 -2
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUDecotators.py +3 -2
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUDict.py +1 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUDoc.py +4 -5
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUErrors.py +1 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUFile.py +66 -120
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUFileUtils.py +45 -60
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LULog.py +232 -307
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUObjects.py +4 -4
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUObjectsYT.py +22 -39
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUParserARG.py +3 -2
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUParserINI.py +9 -14
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUParserREG.py +1 -5
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUQThread.py +4 -6
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUQTimer.py +5 -5
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUSheduler.py +23 -24
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUThread.py +6 -7
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUTimer.py +3 -5
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUVersion.py +1 -4
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUYouTube.py +7 -6
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUos.py +5 -15
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/__init__.py +2 -2
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/__main__.py +19 -20
- lyrpy-2024.0.1/src/lyrpy.egg-info/PKG-INFO +43 -0
- lyrpy-2024.0.1/src/lyrpy.egg-info/SOURCES.txt +42 -0
- lyrpy-2024.0.1/src/lyrpy.egg-info/top_level.txt +1 -0
- lyrpy-1.0.0/PKG-INFO +0 -24
- lyrpy-1.0.0/README.md +0 -1
- lyrpy-1.0.0/SRC/LIB/__init__.py +0 -0
- lyrpy-1.0.0/SRC/LIB/lyrpy/LUConst.py +0 -358
- lyrpy-1.0.0/SRC/LIB/lyrpy/LUTelegram.py +0 -428
- lyrpy-1.0.0/SRC/__init__.py +0 -0
- lyrpy-1.0.0/TESTS/__init__.py +0 -0
- lyrpy-1.0.0/TESTS/test_main.py +0 -10
- lyrpy-1.0.0/lyrpy.egg-info/PKG-INFO +0 -24
- lyrpy-1.0.0/lyrpy.egg-info/SOURCES.txt +0 -46
- lyrpy-1.0.0/lyrpy.egg-info/top_level.txt +0 -2
- lyrpy-1.0.0/pyproject.toml +0 -13
- lyrpy-1.0.0/setup.cfg +0 -4
- lyrpy-1.0.0/setup.py +0 -41
- {lyrpy-1.0.0 → lyrpy-2024.0.1}/LICENSE +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUNetwork.py +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUNumUtils.py +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUProc.py +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUStrDecode.py +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUStrUtils.py +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUSupport.py +0 -0
- {lyrpy-1.0.0/SRC/LIB/lyrpy → lyrpy-2024.0.1/src/lyr}/LUsys.py +0 -0
- {lyrpy-1.0.0 → lyrpy-2024.0.1/src}/lyrpy.egg-info/dependency_links.txt +0 -0
lyrpy-2024.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: lyrpy
|
|
3
|
+
Version: 2024.0.1
|
|
4
|
+
Summary: lyrpy
|
|
5
|
+
Author: Lisitsin Y.R.
|
|
6
|
+
Author-email: lisitsinyr <lisitsinyr@gmail.com>
|
|
7
|
+
License: Copyright (c) 2018 The Python Packaging Authority
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
14
|
+
furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
|
26
|
+
|
|
27
|
+
Keywords: tools,py
|
|
28
|
+
Classifier: Development Status :: 3 - Alpha
|
|
29
|
+
Classifier: Intended Audience :: Developers
|
|
30
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
33
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
34
|
+
Classifier: Operating System :: OS Independent
|
|
35
|
+
Requires-Python: >=3.8
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
License-File: LICENSE
|
|
38
|
+
|
|
39
|
+
TOOLS_PY
|
|
40
|
+
--------
|
|
41
|
+
|
|
42
|
+
This is a simple example package. You can use
|
|
43
|
+
[GitHub-flavored Markdown](https://guides.github.com/features/mastering-markdown/)
|
lyrpy-2024.0.1/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hello World!
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools >= 61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "lyrpy"
|
|
7
|
+
version = "2024.0.1"
|
|
8
|
+
requires-python = ">=3.8"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name="lisitsinyr", email="lisitsinyr@gmail.com" },
|
|
11
|
+
]
|
|
12
|
+
description = "lyrpy"
|
|
13
|
+
readme = "README.md"
|
|
14
|
+
license = {file = "LICENSE"}
|
|
15
|
+
keywords = ["tools", "py"]
|
|
16
|
+
|
|
17
|
+
classifiers = [
|
|
18
|
+
# How mature is this project? Common values are
|
|
19
|
+
# 3 - Alpha
|
|
20
|
+
# 4 - Beta
|
|
21
|
+
# 5 - Production/Stable
|
|
22
|
+
"Development Status :: 3 - Alpha",
|
|
23
|
+
|
|
24
|
+
# Indicate who your project is intended for
|
|
25
|
+
"Intended Audience :: Developers",
|
|
26
|
+
"Topic :: Software Development :: Build Tools",
|
|
27
|
+
|
|
28
|
+
# Pick your license as you wish (see also "license" above)
|
|
29
|
+
"License :: OSI Approved :: MIT License",
|
|
30
|
+
|
|
31
|
+
# Specify the Python versions you support here.
|
|
32
|
+
"Programming Language :: Python :: 3.8",
|
|
33
|
+
"Programming Language :: Python :: 3.9",
|
|
34
|
+
|
|
35
|
+
"Operating System :: OS Independent",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
# Homepage = "https://example.com"
|
|
40
|
+
# Issues = "https://github.com/me/spam/issues"
|
|
41
|
+
# Repository = "https://github.com/me/spam.git"
|
|
42
|
+
# Changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"
|
|
43
|
+
# Documentation = "https://readthedocs.org"
|
|
44
|
+
|
|
45
|
+
# Homepage = "https://github.com/lisitsinyr/TOOLS_PY"
|
|
46
|
+
# Issues = "https://github.com/lisitsinyr/TOOLS_PY/issues"
|
|
47
|
+
# Repository = "git@github.com:lisitsinyr/TOOLS_PY.git"
|
|
48
|
+
# Changelog = "https://github.com/lisitsinyr/TOOLS_PY/blob/main/README.md"
|
|
49
|
+
# Documentation = "https://readthedocs.org"
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
lyrpy-2024.0.1/setup.cfg
ADDED
lyrpy-2024.0.1/setup.py
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"""Set up or install package."""
|
|
2
|
+
|
|
3
|
+
from json import load
|
|
4
|
+
from os import getenv
|
|
5
|
+
from os.path import dirname, join
|
|
6
|
+
|
|
7
|
+
from setuptools import find_namespace_packages, setup, find_packages
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def read_pipenv_dependencies(fname):
|
|
11
|
+
"""Get default dependencies from Pipfile.lock."""
|
|
12
|
+
filepath = join(dirname(__file__), fname)
|
|
13
|
+
with open(filepath) as lockfile:
|
|
14
|
+
lockjson = load(lockfile)
|
|
15
|
+
return [dependency for dependency in lockjson.get('default')]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def read_readme(fname):
|
|
19
|
+
"""Get readme markdown file."""
|
|
20
|
+
filepath = join(dirname(__file__), fname)
|
|
21
|
+
with open(filepath, encoding='utf-8') as readme:
|
|
22
|
+
readme.read()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
if __name__ == '__main__':
|
|
26
|
+
setup(
|
|
27
|
+
name='lyrpy',
|
|
28
|
+
|
|
29
|
+
#version=getenv('PACKAGE_VERSION', '1.0.dev0'),
|
|
30
|
+
version='1.0.0.0',
|
|
31
|
+
|
|
32
|
+
author='Lisitsin Y.R.',
|
|
33
|
+
author_email='lisitsinyr@gmail.com',
|
|
34
|
+
|
|
35
|
+
#url='https://github.com/the-gigi/conman',
|
|
36
|
+
#license='MIT',
|
|
37
|
+
|
|
38
|
+
description='Just a packaging lyr project.',
|
|
39
|
+
long_description_content_type='text/markdown',
|
|
40
|
+
|
|
41
|
+
long_description=read_readme('README.md'),
|
|
42
|
+
#long_description=open('README.md').read(),
|
|
43
|
+
|
|
44
|
+
package_dir={'': 'src'},
|
|
45
|
+
|
|
46
|
+
packages=find_namespace_packages('src', include=['lyr*']),
|
|
47
|
+
#packages=find_packages(exclude=['tests']),
|
|
48
|
+
|
|
49
|
+
#zip_safe=False,
|
|
50
|
+
#setup_requires=['nose>=1.0'],
|
|
51
|
+
#test_suite='nose.collector')
|
|
52
|
+
|
|
53
|
+
install_requires=read_pipenv_dependencies('Pipfile.lock'),
|
|
54
|
+
entry_points={
|
|
55
|
+
'console_scripts': [
|
|
56
|
+
'fibo=demo.main:cli'
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
data_files=[
|
|
60
|
+
('data', ['data/text.txt'])
|
|
61
|
+
]
|
|
62
|
+
)
|
|
@@ -28,7 +28,7 @@ from colorama import Fore, Back, Style
|
|
|
28
28
|
#------------------------------------------
|
|
29
29
|
# БИБЛИОТЕКИ LU
|
|
30
30
|
#------------------------------------------
|
|
31
|
-
import
|
|
31
|
+
import lyr.LUSupport as LUSupport
|
|
32
32
|
|
|
33
33
|
#------------------------------------------
|
|
34
34
|
# CONST
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"""LUConst.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
|
+
LUConst.py
|
|
13
|
+
|
|
14
|
+
=======================================================
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
#------------------------------------------
|
|
18
|
+
# БИБЛИОТЕКИ python
|
|
19
|
+
#------------------------------------------
|
|
20
|
+
|
|
21
|
+
#------------------------------------------
|
|
22
|
+
# БИБЛИОТЕКИ сторонние
|
|
23
|
+
#------------------------------------------
|
|
24
|
+
|
|
25
|
+
#------------------------------------------
|
|
26
|
+
# БИБЛИОТЕКИ LU
|
|
27
|
+
#------------------------------------------
|
|
28
|
+
|
|
29
|
+
#-------------------------------------------------------------------------------
|
|
30
|
+
#
|
|
31
|
+
#-------------------------------------------------------------------------------
|
|
32
|
+
def main ():
|
|
33
|
+
#beginfunction
|
|
34
|
+
print('main LUConst.py ...')
|
|
35
|
+
#endfunction
|
|
36
|
+
|
|
37
|
+
#------------------------------------------
|
|
38
|
+
#
|
|
39
|
+
#------------------------------------------
|
|
40
|
+
#beginmodule
|
|
41
|
+
if __name__ == "__main__":
|
|
42
|
+
main()
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
#endmodule
|
|
@@ -18,7 +18,9 @@ __annotations__ = """
|
|
|
18
18
|
# БИБЛИОТЕКИ python
|
|
19
19
|
#------------------------------------------
|
|
20
20
|
import datetime
|
|
21
|
+
import time
|
|
21
22
|
import calendar
|
|
23
|
+
import logging
|
|
22
24
|
import platform
|
|
23
25
|
|
|
24
26
|
#------------------------------------------
|
|
@@ -28,7 +30,7 @@ import platform
|
|
|
28
30
|
#------------------------------------------
|
|
29
31
|
# БИБЛИОТЕКИ LU
|
|
30
32
|
#------------------------------------------
|
|
31
|
-
import
|
|
33
|
+
import lyr.LUSupport as LUSupport
|
|
32
34
|
|
|
33
35
|
#------------------------------------------
|
|
34
36
|
# CONST
|
|
@@ -150,7 +152,7 @@ def DayOfWeek (ADateTime: datetime.date):
|
|
|
150
152
|
def DaysInMonth (AYear: int, AMonth: int):
|
|
151
153
|
"""DaysInMonth"""
|
|
152
154
|
#beginfunction
|
|
153
|
-
return
|
|
155
|
+
return monthrange (AYear, AMonth) [1]
|
|
154
156
|
#endfunction
|
|
155
157
|
|
|
156
158
|
#---------------------------------------------------------------
|
|
@@ -18,6 +18,7 @@ __annotations__ = """
|
|
|
18
18
|
# БИБЛИОТЕКИ python
|
|
19
19
|
#------------------------------------------
|
|
20
20
|
import time
|
|
21
|
+
import logging
|
|
21
22
|
from functools import wraps
|
|
22
23
|
import smtplib
|
|
23
24
|
import traceback
|
|
@@ -30,7 +31,7 @@ from email.mime.text import MIMEText
|
|
|
30
31
|
#------------------------------------------
|
|
31
32
|
# БИБЛИОТЕКИ LU
|
|
32
33
|
#------------------------------------------
|
|
33
|
-
import
|
|
34
|
+
import lyr.LULog as LULog
|
|
34
35
|
|
|
35
36
|
#---------------------------------------------------------------
|
|
36
37
|
# TIMING
|
|
@@ -44,7 +45,7 @@ def TIMING(func):
|
|
|
44
45
|
result = func(*args, **kwargs)
|
|
45
46
|
end_time = time.time()
|
|
46
47
|
s = f"Функция {func.__name__} работала {end_time - start_time} секунд..."
|
|
47
|
-
LULog.
|
|
48
|
+
LULog.LoggerTOOLS_AddLevel (LULog.DEBUGTEXT, s)
|
|
48
49
|
return result
|
|
49
50
|
#endfunction
|
|
50
51
|
|
|
@@ -17,7 +17,7 @@ __annotations__ = """
|
|
|
17
17
|
#------------------------------------------
|
|
18
18
|
# БИБЛИОТЕКИ python
|
|
19
19
|
#------------------------------------------
|
|
20
|
-
|
|
20
|
+
import sys
|
|
21
21
|
|
|
22
22
|
#------------------------------------------
|
|
23
23
|
# БИБЛИОТЕКИ сторонние
|
|
@@ -26,7 +26,7 @@ __annotations__ = """
|
|
|
26
26
|
#------------------------------------------
|
|
27
27
|
# БИБЛИОТЕКИ LU
|
|
28
28
|
#------------------------------------------
|
|
29
|
-
import
|
|
29
|
+
import lyr.LULog as LULog
|
|
30
30
|
|
|
31
31
|
#---------------------------------------------------------------
|
|
32
32
|
# PrintInfoObject
|
|
@@ -38,8 +38,8 @@ def PrintInfoObject (AObject):
|
|
|
38
38
|
# print (inspect.stack () [0] [3], '...')
|
|
39
39
|
# print (traceback.extract_stack () [-1].name, '...')
|
|
40
40
|
s = f'{AObject}'
|
|
41
|
-
#
|
|
42
|
-
|
|
41
|
+
#LULog_LoggerTOOLS_log(LULog.DEBUGTEXT, s)
|
|
42
|
+
LULog.LoggerTOOLS_AddLevel(LULog.DEBUGTEXT, s)
|
|
43
43
|
#endfunction
|
|
44
44
|
|
|
45
45
|
#---------------------------------------------------------------
|
|
@@ -48,7 +48,6 @@ def PrintInfoObject (AObject):
|
|
|
48
48
|
def main ():
|
|
49
49
|
#beginfunction
|
|
50
50
|
print('main LUDoc.py...')
|
|
51
|
-
...
|
|
52
51
|
#endfunction
|
|
53
52
|
|
|
54
53
|
#------------------------------------------
|