Python/ django
60.2K subscribers
2.12K photos
76 videos
48 files
2.85K links
по всем вопросам @haarrp

@itchannels_telegram - 🔥 все ит-каналы

@ai_machinelearning_big_data -ML

@ArtificialIntelligencedl -AI

@datascienceiot - 📚

@pythonlbooks

РКН: clck.ru/3FmxmM
Download Telegram
🖥 8 delightful Python scripts that will brighten your day

8 крутых скриптов Python, которые скрасят ваш день.

Эти маленькие драгоценные камни добавят немного веселья в ваши проекты по программированию.

1. Тест скорости *изображение 1.
2. Конвертация фотографии в мультяшный формат *изображение 2.
3. Вывод статуса сайта *изображение 3.
4. Улучшение изображений *изображение 4.
5. Создание веб-бота *изображение 5.
6. Преобразование: Hex в RGB *изображение 6.
7. Преобразование PDF в изображения *изображение 7.
8. Получить текст песни *изображение 8.

@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
🖥 Excel File Automation

Создание и работа с excel-файлами с помощью python-скрипта.

from openpyxl import Workbook
from openpyxl.utils import get_column_letter
from openpyxl.styles import Font

#making the grid and giving the data
data = {
"Joe": {
"math": 65,
"science": 78,
"english": 98,
"gym": 89
},
"Bill": {
"math": 55,
"science": 72,
"english": 87,
"gym": 95
},
"Tim": {
"math": 100,
"science": 45,
"english": 75,
"gym": 92
},
"Sally": {
"math": 30,
"science": 25,
"english": 45,
"gym": 100
},
"Jane": {
"math": 100,
"science": 100,
"english": 100,
"gym": 60
}
}

wb = Workbook()
ws = wb.active
#assigning the title
ws.title = "Grades"
#giving proper formatting for columns
headings = ['Name'] + list(data['Joe'].keys())
ws.append(headings)

#reading the data for persom
for person in data:
grades = list(data[person].values())
ws.append([person] + grades)

for col in range(2, len(data['Joe']) + 2):
char = get_column_letter(col)
ws[char + "7"] = f"=SUM({char + '2'}:{char + '6'})/{len(data)}"
#assigning the colour and text type
for col in range(1, 6):
ws[get_column_letter(col) + '1'].font = Font(bold=True, color="0099CCFF")

#saving the excel file in the same folder
wb.save("NewGrades.xlsx")


@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
🔥🔥 VideoCrafter:A Toolkit for Text-to-Video Generation and Editing

A Toolkit for Text-to-Video Generation and Editing

Опенсоурс алгоритм для генерации видеоконтента и преобразования текста в видео.


Github
Colab

@pythonl
⚡️Маст-хэв список для программистов, каналы с последними книжными новинками, библиотеками, разбором кода и актуальной информацией, связанной с вашим языком программирования.
Лучший способ получать свежие обновлении и следить за трендами в разработке.

Машинное обучение: t.me/ai_machinelearning_big_data
Python: t.me/pro_python_code
C#: t.me/csharp_ci
C/C++/ t.me/cpluspluc
Data Science: t.me/data_analysis_ml
Devops: t.me/devOPSitsec
Go: t.me/Golang_google
Базы данных: t.me/sqlhub
Rust: t.me/rust_code
Javascript: t.me/javascriptv
React: t.me/react_tg
PHP: t.me/phpshka
Android: t.me/android_its
Мобильная разработка: t.me/mobdevelop
Linux: t.me/+A8jY79rcyKJlYWY6
Big Data: t.me/bigdatai
Хакинг: t.me/linuxkalii
Тестирование: https://t.me/+F9jPLmMFqq1kNTMy
Java: t.me/javatg

💼 Папка с вакансиями: t.me/addlist/_zyy_jQ_QUsyM2Vi
Папка Go разработчика: t.me/addlist/MUtJEeJSxeY2YTFi
Папка Python разработчика: t.me/addlist/eEPya-HF6mkxMGIy

📕 Бесплатные Книги для программистов: https://t.me/addlist/YZ0EI8Ya4OJjYzEy

🎞 YouTube канал: https://www.youtube.com/@uproger

😆ИТ-Мемы: t.me/memes_prog

🇬🇧Английский: t.me/english_forprogrammers
Please open Telegram to view this post
VIEW IN TELEGRAM
🐍Ten New Features of Python 3.11 That Make Your Code More Efficient

10 новых возможностей Python 3.11, которые сделают ваш код более эффективным.

01 Pattern Matching
*изображение 1.

02 Structural Pattern Matching
*изображение 2.

03 Type Hints and Checks
*изображение 3.

04 Оптимизация производительности
*изображение 4.

05 Улучшения отчетов об ошибках
*изображение 5.

06 Новая стандартная библиотека zoneinfo
*изображение 6.

07 iterate
*изображение 7.

08 Merge Dictionary Operator
*изображение 8.

09 Новая функция точки прерывания отладки
*изображение 9.

10 Синхронная итерация
*изображение 10.

@pythonl
🖥 Create a Simple User Form with Python and Tkinter in 5 Minutes

Создание простой пользовательской формы с помощью Python и Tkinter за 5 минут - руководство для начинающих.

import openpyxl
from tkinter import *
from tkinter import messagebox


def register():
# Get the user input from the form
first_name = first_name_entry.get()
Last_name = Last_name_entry.get()
email = email_entry.get()
Mobile = Mobile_entry.get()

# Create a new row with the user input
new_row = [first_name, Last_name, email,Mobile]

# Append the new row to the Excel sheet
workbook = openpyxl.load_workbook("registration_data.xlsx")
sheet = workbook.active
sheet.append(new_row)
workbook.save("registration_data.xlsx")
messagebox.showinfo("Success", "Registration successful!")


# Create the main tkinter window
root = Tk()
root.title("Registration Form")
root.geometry('300x300')

# Create labels and entry fields for each input
first_name_label = Label(root, text="First Name:")
first_name_label.pack()
first_name_entry = Entry(root)
first_name_entry.pack()

Last_name_label = Label(root, text="Last Name:")
Last_name_label.pack()
Last_name_entry = Entry(root)
Last_name_entry.pack()

email_label = Label(root, text="Email:")
email_label.pack()
email_entry = Entry(root)
email_entry.pack()

Mobile_label = Label(root, text="Mobile:")
Mobile_label.pack()
Mobile_entry = Entry(root)
Mobile_entry.pack()

register_button = Button(root, text="Register", command=register)
register_button.pack()

root.mainloop()


@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM