dmitlibx 0.1.0__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.
- dmitlibx-0.1.0/PKG-INFO +36 -0
- dmitlibx-0.1.0/README.md +13 -0
- dmitlibx-0.1.0/dmitlibx/__init__.py +2 -0
- dmitlibx-0.1.0/dmitlibx/utils.py +28 -0
- dmitlibx-0.1.0/dmitlibx.egg-info/PKG-INFO +36 -0
- dmitlibx-0.1.0/dmitlibx.egg-info/SOURCES.txt +9 -0
- dmitlibx-0.1.0/dmitlibx.egg-info/dependency_links.txt +1 -0
- dmitlibx-0.1.0/dmitlibx.egg-info/requires.txt +1 -0
- dmitlibx-0.1.0/dmitlibx.egg-info/top_level.txt +1 -0
- dmitlibx-0.1.0/setup.cfg +4 -0
- dmitlibx-0.1.0/setup.py +22 -0
dmitlibx-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: dmitlibx
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Небольшая библиотека для упрощения привычных действий.
|
|
5
|
+
Home-page: https://github.com/Hieso/dmitlibx
|
|
6
|
+
Author: DmitX
|
|
7
|
+
Author-email: Hieso123@yandex.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: rich
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: requires-dist
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
# Dmitallx
|
|
25
|
+
Hi, this is my first Python library.
|
|
26
|
+
|
|
27
|
+
##Functions:
|
|
28
|
+
Clear the terminal (clear)
|
|
29
|
+
Find the greatest common divisor of numbers (nod)
|
|
30
|
+
Find the least common multiple of numbers (nok)
|
|
31
|
+
Install libraries (importlibs)
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
pip install dmitallx
|
dmitlibx-0.1.0/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Dmitallx
|
|
2
|
+
Hi, this is my first Python library.
|
|
3
|
+
|
|
4
|
+
##Functions:
|
|
5
|
+
Clear the terminal (clear)
|
|
6
|
+
Find the greatest common divisor of numbers (nod)
|
|
7
|
+
Find the least common multiple of numbers (nok)
|
|
8
|
+
Install libraries (importlibs)
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
pip install dmitallx
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import importlib.util
|
|
3
|
+
import math
|
|
4
|
+
import operator
|
|
5
|
+
from rich.progress import Progress
|
|
6
|
+
|
|
7
|
+
def clear():
|
|
8
|
+
os.system("cls" if os.name == 'nt' else "clear")
|
|
9
|
+
|
|
10
|
+
def nod(numbers):
|
|
11
|
+
return reduce(operator.gcd, numbers)
|
|
12
|
+
|
|
13
|
+
def nok(numbers):
|
|
14
|
+
return reduce(lambda a, b: abs(a * b) // operator.gcd(a, b), numbers)
|
|
15
|
+
|
|
16
|
+
def average(scores):
|
|
17
|
+
if not scores:
|
|
18
|
+
return 0
|
|
19
|
+
return sum(scores) / len(scores)
|
|
20
|
+
|
|
21
|
+
def importlibs(libs):
|
|
22
|
+
with Progress() as progress:
|
|
23
|
+
task = progress.add_task("[green]Loading libraries...", total=len(libs))
|
|
24
|
+
for lib in libs:
|
|
25
|
+
spec = importlib.util.find_spec(lib)
|
|
26
|
+
if spec is None:
|
|
27
|
+
os.system(f"pip install --quiet {lib}")
|
|
28
|
+
progress.update(task, advance=1)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: dmitlibx
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Небольшая библиотека для упрощения привычных действий.
|
|
5
|
+
Home-page: https://github.com/Hieso/dmitlibx
|
|
6
|
+
Author: DmitX
|
|
7
|
+
Author-email: Hieso123@yandex.com
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.6
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: rich
|
|
14
|
+
Dynamic: author
|
|
15
|
+
Dynamic: author-email
|
|
16
|
+
Dynamic: classifier
|
|
17
|
+
Dynamic: description
|
|
18
|
+
Dynamic: description-content-type
|
|
19
|
+
Dynamic: home-page
|
|
20
|
+
Dynamic: requires-dist
|
|
21
|
+
Dynamic: requires-python
|
|
22
|
+
Dynamic: summary
|
|
23
|
+
|
|
24
|
+
# Dmitallx
|
|
25
|
+
Hi, this is my first Python library.
|
|
26
|
+
|
|
27
|
+
##Functions:
|
|
28
|
+
Clear the terminal (clear)
|
|
29
|
+
Find the greatest common divisor of numbers (nod)
|
|
30
|
+
Find the least common multiple of numbers (nok)
|
|
31
|
+
Install libraries (importlibs)
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```sh
|
|
36
|
+
pip install dmitallx
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rich
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dmitlibx
|
dmitlibx-0.1.0/setup.cfg
ADDED
dmitlibx-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='dmitlibx', # Имя вашей библиотеки
|
|
5
|
+
version='0.1.0', # Версия
|
|
6
|
+
packages=find_packages(), # Автоматически находит все пакеты
|
|
7
|
+
install_requires=[
|
|
8
|
+
'rich', # Укажите зависимости, если они есть
|
|
9
|
+
],
|
|
10
|
+
author='DmitX', # Ваше имя
|
|
11
|
+
author_email='Hieso123@yandex.com', # Ваш email
|
|
12
|
+
description='Небольшая библиотека для упрощения привычных действий.', # Краткое описание
|
|
13
|
+
long_description=open('README.md').read(), # Подробное описание из README
|
|
14
|
+
long_description_content_type='text/markdown', # Тип содержимого описания
|
|
15
|
+
url='https://github.com/Hieso/dmitlibx', # Ссылка на репозиторий
|
|
16
|
+
classifiers=[
|
|
17
|
+
'Programming Language :: Python :: 3', # Поддержка Python 3
|
|
18
|
+
'License :: OSI Approved :: MIT License', # Лицензия
|
|
19
|
+
'Operating System :: OS Independent', # Операционные системы
|
|
20
|
+
],
|
|
21
|
+
python_requires='>=3.6', # Минимальная версия Python
|
|
22
|
+
)
|