This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| pip install psutil --quiet | |
| # Устанавливаем русскую локаль (разделитель тысяч — пробел) | |
| locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8') | |
| '''Процессор''' | |
| # Запускаем команду wmic для получения информации о процессоре |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| import pandas as pd | |
| import re | |
| import locale | |
| import os | |
| import csv | |
| import datetime | |
| from datetime import timedelta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| !pip install git+https://github.com/openai/whisper.git --quiet | |
| pip install ffmpeg --quiet | |
| import os | |
| import whisper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| pip install ffmpeg --quiet | |
| pip install pydub --quiet | |
| pip install vosk --quiet | |
| from vosk import Model, KaldiRecognizer, SetLogLevel | |
| from pydub import AudioSegment | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| pip install requests --quiet | |
| # Импорт библиотек | |
| import pandas as pd | |
| import requests | |
| from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Ставим библиотеку для запросов к серверу | |
| pip install requests --quiet | |
| # Импортируем все необходимые библиотеки | |
| # Импорт библиотек | |
| import numpy as np | |
| import pandas as pd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Код чтобы измерить время на выполнение всего скрипта | |
| %time import time | |
| time_start = time.time() # Начальное время | |
| '''Бибилиотеки''' | |
| pip install lxml --quiet # Либа для обработки HTML, XHTML и XML |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| import imaplib | |
| import os | |
| # Сохраняем полученный пароль лоя внешних приложений в EMAIL_PASS | |
| with open('keeper.txt', 'r') as f: | |
| EMAIL_PASS = f.read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Библиотеки | |
| import requests # Для запросов | |
| from http import HTTPStatus # Для статусов | |
| import json # Для JSON :) | |
| import pandas as pd # Куда же без него | |
| import locale # Для русской локали |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Developed by MikyPo | |
| # More code for DA here: https://dzen.ru/mikypo | |
| # Построение таблицы хи-квадрат | |
| import scipy.stats as stats | |
| import pandas as pd | |
| # p_values - это вероятность получения наблюдаемых результатов при условии, что нулевая гипотеза верна | |
| p_values = [0.995, 0.975, 0.20, 0.10, 0.05, 0.025, 0.02, 0.01, 0.005, 0.002, 0.001] |