Package: idftools
Ideia do Futuro - IdFtoolspypigithubinstalação do pythoncriando .venv para o pythonprimeiro baixar o pythonwww.python.orgno windows, no cmd do DOS:C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python39\python.exe -m venv .venvno windows, no gitbash:/c/Users/$(whoami)/AppData/Local/Programs/Python/Python39/python.exe-mvenv.venvno linux, no shell/home/$(whoami)/.pyenv/shims/python3-mvenv.venvrequirements.txtwebdriver_manager
wincertstore
undetected_chromedriver
winreg
pywin32
pyautogui
subprocess
database
json
cv2
intertools
cryptography
openpyxl
PyInstaller
pip
pandas
winreg
csv
configparser
sys
os
selenium
pyautogui
time
datetime
pytz
openpyxl
numpy
subprocess
os
sys
re
sys
os
anticaptchaofficial
psycopg2-binary
Pillow
opencv-python
img2pdf
xlsxwriter
setuptools
colorama
pyautogui
impdica para instalar os requirements.txt na mãousando o gitbashcatequirements.txt|grep-v"#"|sort|uniq|xargs-n1.venv/Scripts/pip3.exeinstall;.venv/Scripts/pip3.exe--upgradepip;.venv/Scripts/python.exe-mpipinstall--upgradepipusando o shell do linuxcatrequirements.txt|grep-v"#"|sort|uniq|xargs-n1.venv/bin/pipinstall;.venv/bin/pip--upgradepip;.venv/bin/python3-mpipinstall--upgradepipinstalandopipinstallidftoolsatualizandopipinstall--upgradepip
pipinstall--upgradeidftoolsimportando e exemplo de uso#exemplofromidftools.driversfactoryimportDriverFactoryfromidftools.utilitiesimportUtilitiesimportos,sys,time# use as funções do seu pacotenome_robo_exec='teste-v1.0'arquivo_de_config='src/config.ini'self.util=Utilities(nome_robo_exec=nome_robo_exec,robo_pid_exec=os.getpid(),arquivo_de_config=arquivo_de_config)self.logger=self.util.pega_logger_atual()self.logger.info('Olá mundo')self.headless=Falsedir_download='TMP'driverfactory=DriverFactory()driver=driverfactory.create_driver(type='chrome',headless=self.headless,path_to_download=dir_download,install_extension=False,largura=1200,altura=900,kiosk=False,nome_robo_exec=sys.argv[0],robo_pid_exec=os.getpid(),logger=self.logger,scale_factor=0.8,posX=0,posY=0)driver.get('http://www.google.com.br')time.sleep(5)self.util.saindo_driver(driver=driver,logger=self.logger)criando e enviando para o PyPi.venv/bin/python3-mpipinstallwheelrm-rfdist/;.venv/bin/python3setup.pysdistbdist_wheel;twineupload--skip-existingdist/*comandos úteisGITlembre se trocar o nome dobranchde acordo com a necessidadeiniciar o repogitinit
gitremoteaddoriginhttps://github.com/eniodefarias/pypi-idftools.gitpuxar "git pull" da branchgitpull-foriginmaintrocar branch maingitbranchmain;gitcheckoutmaingerar o venvprimeiro baixar o pythonwww.python.orgno windows, no cmd do DOS:C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python39\python.exe -m venv .venvno windows, no gitbash:/c/Users/$(whoami)/AppData/Local/Programs/Python/Python39/python.exe-mvenv.venvno linux, no shell/home/$(whoami)/.pyenv/shims/python3-mvenv.venvinstalar os requirements.txt na mãousando o gitbashcatrequirements.txt|grep-v"#"|sort|uniq|xargs-n1.venv/Scripts/pip3.exeinstall;.venv/Scripts/python.exe-mpipinstall--upgradepipusando o shell do linuxcatrequirements.txt|grep-v"#"|sort|uniq|xargs-n1.venv/bin/pipinstall;.venv/bin/python3-mpipinstall--upgradepipatualizar modulos no Gitbash.venv/Scripts/python.exe-mpipinstallPyInstaller
.venv/Scripts/python.exe-mpipinstall--upgradepip
.venv/Scripts/python.exe-mpipinstall--upgradeidftoolsenviar "git push" da branchgitadd.;gitadd*;gitcommit-m"update: ajuste";gitpush-foriginmainexecutar:terminal gitbash.venv/Scripts/python.exeapp.pyterminal shell do linux:.venv/bin/python3app.pycompilar:lembre-se de alterar o nome do executavel".exe"e script python".py"de acordo com a versão e script que vai compilarterminal do pycharm.venv/bin/python3-mPyInstaller--onefile--paths.\venv\Lib\site-packages--icon=icone\logo_circle.ico-napp.\app.py;rmapp.exe;mvdist/app.exe.terminal do gitbashsetUPX=--ultra-brute--best--compress-icons#0;time.venv/Scripts/python.exe-mPyInstaller--upx-dir=./--noconfirm--onefile--paths.venv/Lib/site-packages--icon=icone/logo.ico-nappapp.py;rmapp.exe;mvdist/app.exe.;ls-latrh*.exelinks uteishttps://coderslegacy.com/python/pyautogui-keyboard-automation/https://pyautogui.readthedocs.io/en/latest/quickstart.htmlhttps://automatetheboringstuff.com/2e/chapter20/https://www.bannerbear.com/blog/how-to-extract-images-from-a-video-using-ffmpeg/https://ottverse.com/create-video-from-images-using-ffmpeg/https://shotstack.io/learn/use-ffmpeg-to-convert-images-to-video/https://codeigo.com/python/make-a-video-out-of-images/https://pyautogui.readthedocs.io/en/latest/mouse.htmlhttps://aoredordoburacotudoebeira.wordpress.com/?s=videohttps://crashlaker.github.io/2021/01/18/selenium_+_chromium_+_flash_+_vnc.html