Объединение PDF-файлов с помощью PyPDF2
Установите библиотеку с помощью pip.
pip install PyPDF2
Вы можете легко объединить PDF-файлы, используя приведенный Ввше код. Просто замените имена в списке pdf-файлов на имена pdf-файлов, которые вы хотите объединить (если они находятся в том же каталоге, что и ваш Python-скрипт), или на ссылки на pdf-файлы.
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Преобразование Excel в CSV с помощью Pandas в Python
https://morioh.com/a/75e6ba1e0351
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
🎁 #Django 5.0 RC 1 is out.
Вышел Django 5.0 RC 1:
https://djangoproject.com/weblog/2023/nov/20/django-50-rc1/
Это последний шанс протестировать его перед финальным релизом, который ожидается в начале декабря.
@pythonl
Вышел Django 5.0 RC 1:
https://djangoproject.com/weblog/2023/nov/20/django-50-rc1/
Это последний шанс протестировать его перед финальным релизом, который ожидается в начале декабря.
@pythonl
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
https://www.youtube.com/watch?v=b7BFQB2MF2w
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Start managing experiments, logging prompts, and tracking your code.
Самый простой способ улучшения среды разработки:
Начните управлять тестами, регистрировать подсказки и отслеживать свой код.
Вы можете сделать все sэто бесплатно, используя такой инструмент, как
Cometml,
с помощью пары строк кода.Посмотрите на прилагаемый скриншот:
Интеграция
Comet + OpenAI
будет отслеживать все автоматически:- сообщения и function_call как входы
- варианты как выходы
- токен использования как метаданные
- работми с метаданными
pip install comet_llm
Этот блокнот Colab продемонстрирует вам пример работы
Cometml
:https://colab.research.google.com/github/comet-ml/comet-examples/blob/master/integrations/llm/openai/notebooks/Comet_and_OpenAI.ipynb#scrollTo=A0-thQauBRRL
▪ Github
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
We recommend storing sensitive information in an .env file and loading it into a Python script using python-dotenv.
🔒Безопасность хранения данных в Python🔒
Рекомендуется хранить конфиденциальную информацию в файле .env и загружать ее в сценарий Python с помощью python-dotenv.
Это позволяет защитить информацию от раскрытия в кодовой базе или системах контроля версий.
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
https://www.youtube.com/watch?v=Rj4qq-iQepg
Вот Google Colab с кодом для обоих способов:
1 - https://colab.research.google.com/drive/1gYaKcQ1-wDjzoVK5k8QQ13M7XcyP--rE?usp=sharing
2 - https://colab.research.google.com/drive/1vN84lTEeACqu4EmVdQiVLgGDMSQBn_ij?usp=sharing
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
GAOJGY8XMAAiqAQ.jpeg
706.7 KB
💥 Here is an amazing Python cheat sheet for you all!
Объемная шпаргалка по Python по всем основным темам.
@pythonl
Объемная шпаргалка по Python по всем основным темам.
@pythonl
🦾 nrich
A command-line tool to quickly analyze all IPs in a file and see which ones have open ports/ vulnerabilities.
Инструмент командной строки, позволяющий быстро проанализировать все IP-адреса в файле и увидеть, какие из них имеют открытые порты/уязвимости. Также может передавать данные из stdin для использования в конвейере данных.
▪ GIthub
@pythonl
A command-line tool to quickly analyze all IPs in a file and see which ones have open ports/ vulnerabilities.
Инструмент командной строки, позволяющий быстро проанализировать все IP-адреса в файле и увидеть, какие из них имеют открытые порты/уязвимости. Также может передавать данные из stdin для использования в конвейере данных.
wget https://gitlab.com/api/v4/projects/33695681/packages/generic/nrich/latest/nrich_latest_x86_64.deb
$ sudo dpkg -i nrich_latest_x86_64.deb
▪ GIthub
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Python-модуль для получения данных о акциях/криптовалютах из API Alpha Vantage
Бесплатный API для получения финансовых данных и индикаторов в реальном времени.
pip install alpha_vantage
from alpha_vantage.timeseries import TimeSeries
import matplotlib.pyplot as plt
ts = TimeSeries(key='YOUR_API_KEY', output_format='pandas')
data, meta_data = ts.get_intraday(symbol='MSFT',interval='1min', outputsize='full')
data['4. close'].plot()
plt.title('Intraday Times Series for the MSFT stock (1 min)')
plt.show()
▪Github@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM