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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: florestbotfunctions
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Функции бота Флореста в одной библиотеке.
5
5
  Author: florestdev
6
6
  Author-email: florestone4185@internet.ru
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: florestbotfunctions
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Функции бота Флореста в одной библиотеке.
5
5
  Author: florestdev
6
6
  Author-email: florestone4185@internet.ru
@@ -12,3 +12,4 @@ bs4
12
12
  SpeechRecognition
13
13
  pygame
14
14
  colorama
15
+ pyinstaller
@@ -1,3 +1,3 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- setup(name='florestbotfunctions', version='1.2.3', 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'])
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'])