atlas news
    
Python for Engineers
25  janvier     04h00
Book Tracker
   nbsp;import sqlite from tkinter import Tk, Label, Entry, Button, ttk, messagebox Database setupdef setup database : conn sqlite .connect ’books.db’ cursor conn.cursor cursor.execute CREATE TABLE IF NOT EXISTS books ...
24  janvier     15h33
Python is TIOBE’s programming language of the year 2024
   nbsp;TIOBE Index for January January Headline: Python is TIOBE’s programming language of the year Programming language Python has won the title TIOBE’s programming language of the year . This award is given to the programming language with the highest increase in ratings in one year...
23  janvier     04h00
Pomodoro Timer
   nbsp;import tkinter as tkfrom tkinter import messageboximport time ConstantsWORK MIN Work duration in minutesSHORT BREAK MIN Short break duration in minutesLONG BREAK MIN Long break duration in minutesCYCLES Number of work sessions before a long...
18  janvier     04h00
News Aggregator
   Visit NewsAPI and sign up for a free API key.Replace your newsapi key in the code with your actual API key. import requestsAPI KEY your newsapi key Replace with your NewsAPI keyBASE URL https: newsapi.org v def fetch top headlines country us , category general , page size ...
14  janvier     04h00
Stock Price Tracker
   nbsp;import yfinance as yfimport matplotlib.pyplot as pltimport pandas as pddef get stock data ticker, period ’ mo’, interval ’ d’ : Fetch stock data for a given ticker. Args: ticker str : The stock ticker symbol. ...
11  janvier     04h00
Color Palette Generator
   nbsp;from PIL import Imagefrom sklearn.cluster import KMeansimport numpy as npimport matplotlib.pyplot as pltdef extract colors image path, num colors : Extracts dominant colors from an image. Args: image path str : Path to...
07  janvier     04h00
Image to ASCII Art
   nbsp;from PIL import Image Define ASCII characters for different levels of brightnessASCII CHARS , , S , , , , , ; , : ,, , . def resize image image, new width : Resizes the image while maintaining aspect ratio. width, height image...
04  janvier     04h00
Image Resizer with a GUI
   nbsp;import tkinter as tkfrom tkinter import filedialog, messageboxfrom PIL import Image, ImageTkdef select image : global img, img path img path filedialog.askopenfilename filetypes Image Files , .jpg; .jpeg; .png; .bmp; .gif ...
03  janvier     07h30
Unit Converter
   nbsp;def convert temperature value, from unit, to unit : if from unit Celsius and to unit Fahrenheit : return value elif from unit Fahrenheit and to unit Celsius : return value ...
01  janvier     04h00
Managing Students
   import osimport platformglobal listStd listStd Amal , Appu , Malavika , Seetha def manageStudent : global bye bye bye print Welcome To Student Management System Enter : To View Student’s List Enter : To Add New Student Enter : To Search...
31  octobre     04h00
Contact Storing
   names phone numbers num for i in range num : name input Name: phone number input Phone Number: names.append name phone numbers.append phone number print nName t t tPhone Number n for i in range num : print ...
25  octobre     04h00
Tic Tac Toe Board
   import turtle ws turtle.Screen t turtle.Turtle t.color Blue t.width t.speed for i in range : t.forward t.left t.penup t.goto, t.pendown t.forward t.penup t.goto, t.pendown t.forward t.penup t.goto , t.pendown t.left t.forward t.penup t...
20  octobre     04h00
Sorting Hotel info Using Given Data
   class Hotel : sortParam ’name’ def init self gt; None: self.name ’’ self.roomAvl self.location ’’ self.rating int self.pricePr def lt self,other : getattr self,Hotel.sortParam lt;getattr other,Hotel.sortParam classmethod def sortByName cls : cls.sortParam ’name’ ...
16  octobre     04h00
Sales Management App
   import tkinter as tkfrom tkinter import messageboximport sqlite root window tk.Tk root window.title Sales Management App root window.geometry x name entry text tk.StringVar id entry text tk.StringVar quantity sold entry text tk.StringVar quantity left entry text tk.StringVar...
09  octobre     04h00
App For Download File from URL
   from tkinter import from tkinter import messageboxfrom PIL import ImageTk, Imageimport tkinter.font as fontimport requestsimport reimport validatorsimport osfrom urllib.parse import urlparseroot Tk root.title Download File from URL icon PhotoImage file ’image.png’ root.iconphoto False, icon...
30  septembre     04h00
Loan Managing App
   import sqlite from tkinter import from tkinter import ttk, messageboxclass LoanManager: def init self, root : self.root root self.root.title Loan Managing app self.root.geometry x ...
26  septembre     04h00
Watermark on images
   import cv import numpy as npimport globimport osfrom numpy. distributor init import filenamelogo cv .imread logo.jpg h logo, w logo, logo.shapeimages path glob.glob flowers . print Adding watermark for img path in images path: img cv .imread img path h...
23  septembre     04h00
Document checker
   import hashlibfrom difflib import SequenceMatcherdef hash file fileName , fileName : h hashlib.sha with open fileName , rb as file: chunk while chunk b’’: chunk file.read h .update chunk with open fileName , rb as file: chunk while chunk...
17  septembre     04h00
Expense Tracker
   import datetimeimport sqlite from tkcalendar import DateEntryfrom tkinter import import tkinter.messagebox as mbimport tkinter.ttk as ttkconnector sqlite .connect Expense Tracker.db cursor connector.cursor connector.execute ’CREATE TABLE IF NOT EXISTS ExpenseTracker ID INTEGER PRIMARY KEY...
06  septembre     04h00
Webcam Sketch
   import cv import numpy as npdef webcam sketch image : img gray cv .cvtColor image, cv .COLOR BGR GRAY img gray blur cv .GaussianBlur img gray, ,, canny edges cv .Canny img gray blur, , ret, mask cv .threshold canny edges, ,...
31  août     04h00
controlling brightness by hand detection
   import cv import mediapipe as mpfrom math import hypotimport screen brightness control as sbcimport numpy as npmpHands mp.solutions.handshands mpHands.Hands static image mode False, model complexity, min detection confidence ., min tracking confidence ., max num hands Draw mp...
26  août     04h00
Youtube video downloader
   import tkinter as tkfrom tkinter import from pytube import YouTubefrom tkinter import messagebox, filedialogdef Widgets : head label Label root, text quot;YouTube Video Downloader quot;, padx , pady , font quot;SegoeUI quot;, bg quot;palegreen quot;, fg...
22  août     04h00
Counting Fingers
   import cv import mediapipe as mpcap cv .VideoCapture mp Hands mp.solutions.handshands mp Hands.Hands mpdraw mp.solutions.drawing utilsfinger Coord , , , , , , , thumb Coord , while True: success, image cap.read RGB image cv ...
12  août     04h00
sudoku
   board , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , , , , , , ,, , , ...
07  août     04h00
snowman
   import turtleturtle.speed turtle.setup , turtle.bgcolor black turtle.penup turtle.goto, turtle.pendown turtle.color c f b turtle.begin fill turtle.circle turtle.end fill turtle.penup turtle.goto, turtle.pendown turtle.color white turtle.begin fill turtle...