florestbotfunctions 1.2.3__tar.gz → 1.2.4__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.
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/PKG-INFO +1 -1
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions/__init__.py +18 -1
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/PKG-INFO +1 -1
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/requires.txt +1 -0
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/setup.py +1 -1
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/SOURCES.txt +0 -0
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/dependency_links.txt +0 -0
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/top_level.txt +0 -0
- {florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/setup.cfg +0 -0
|
@@ -530,4 +530,21 @@ class FunctionsObject:
|
|
|
530
530
|
subprocess.run(['g++', f'{filename}', '-o', f'{filename_output}'])
|
|
531
531
|
return True
|
|
532
532
|
except:
|
|
533
|
-
return False
|
|
533
|
+
return False
|
|
534
|
+
def python_exe_compiler(self, path_to_py: str, path_output: str, flags: str = None):
|
|
535
|
+
"""Из .py в .exe компилятор.\npath_to_py: путь к вашему .py файлу.\npath_output: куда сохранить .exe файл.\nflags: какие-нибудь флаги от PyInstaller. Необязательно."""
|
|
536
|
+
import os
|
|
537
|
+
if flags:
|
|
538
|
+
os.chdir(path_output)
|
|
539
|
+
c = os.system(f'pyinstaller --distpath "{path_output}" {flags} "{path_to_py}"')
|
|
540
|
+
if c == 1:
|
|
541
|
+
return False
|
|
542
|
+
else:
|
|
543
|
+
return True
|
|
544
|
+
else:
|
|
545
|
+
os.chdir(path_output)
|
|
546
|
+
c = os.system(f'pyinstaller --distpath "{path_output}" "{path_to_py}"')
|
|
547
|
+
if c == 1:
|
|
548
|
+
return False
|
|
549
|
+
else:
|
|
550
|
+
return True
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
from setuptools import setup, find_packages
|
|
2
2
|
|
|
3
|
-
setup(name='florestbotfunctions', version='1.2.
|
|
3
|
+
setup(name='florestbotfunctions', version='1.2.4', description='Функции бота Флореста в одной библиотеке.', long_description='Привет! Данная библиотека включает в себя функции из https://t.me/postbotflorestbot. Все функции, с удобным объяснением кода, только здесь. P.S. Это официальная библиотека от создателя бота - FlorestDev. Все функции предоставляются в ознакомительном порядке.', author='florestdev', author_email='florestone4185@internet.ru', packages=find_packages(), python_requires='>=3.8.9', project_urls={"Social Resources": 'https://taplink.cc/florestone4185', 'My bot':"https://t.me/postbotflorestbot"}, install_requires=["MukeshAPI", 'requests', 'g4f', 'curl_cffi', 'pytubefix', 'pillow', 'qrcode', 'gtts', 'google-api-python-client', 'faker', 'bs4', 'SpeechRecognition', 'pygame', 'colorama', 'pyinstaller'])
|
{florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{florestbotfunctions-1.2.3 → florestbotfunctions-1.2.4}/florestbotfunctions.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|