Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit 23bfb4d

Browse files
authored
Merge branch 'Python-World:master' into poi
2 parents 58f08df + a85c140 commit 23bfb4d

File tree

80 files changed

+2592
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2592
-37
lines changed

‎README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
A collection of simple python mini projects to enhance your Python skills.
1717

18-
If you want to learn about python, visit [here.](https://github.com/Python-World/PythonScript)
18+
If you want to learn about python, visit [here.](https://github.com/Python-World/Py-Resources)
1919

2020
If you are new to Github and open source then, visit [here.](https://towardsdatascience.com/getting-started-with-git-and-github-6fcd0f2d4ac6)
2121

@@ -196,3 +196,4 @@ SR No | Project | Author
196196
99 | [Find IMDB Ratings](https://github.com/Python-World/python-mini-projects/tree/master/projects/Find_imdb_rating)| [Utkarsh Bajaj](https://github.com/utkarshbajaj)
197197
100 | [Terminal Based Hangman Game](https://github.com/Python-World/python-mini-projects/tree/master/projects/Terminal_Based_Hangman_Game)| [neohboonyee99](https://github.com/neohboonyee99)
198198
101 | [Whatsapp Bot](https://github.com/Python-World/python-mini-projects/tree/master/projects/whatsapp_Bot)| [urmil89](https://github.com/urmil89)
199+
102 | [Zip Bruter](https://github.com/Python-World/python-mini-projects/tree/master/projects/Zip_Bruter) | [Erdoğan YOKSUL](https://www.github.com/eredotpkfr)

‎docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ SR No | Project | Author
105105
98 | [PNG to ICO converter](https://github.com/chavarera/python-mini-projects/tree/master/projects/convert_png_images_to_ico_format)| [weicheansoo](https://github.com/weicheansoo)
106106
99 | [Find IMDB Ratings](https://github.com/chavarera/python-mini-projects/tree/master/projects/Find_imdb_rating)| [Utkarsh Bajaj](https://github.com/utkarshbajaj)
107107
100 | [Terminal Based Hangman Game](https://github.com/chavarera/python-mini-projects/tree/master/projects/Terminal_Based_Hangman_Game)| [neohboonyee99](https://github.com/neohboonyee99)
108+
101 | [Diff Utility](https://github.com/Python-World/python-mini-projects/tree/master/projects/Diff_Util)| [KILLinefficiency](https://github.com/KILLinefficiency)

‎projects/Alarm clock/alarm_clock.py

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Import Required Library
2+
from tkinter import *
3+
import datetime
4+
import time
5+
import winsound
6+
from threading import *
7+
8+
# Create Object
9+
root = Tk()
10+
11+
# Set geometry
12+
root.geometry("400x200")
13+
14+
# Use Threading
15+
def Threading():
16+
t1=Thread(target=alarm)
17+
t1.start()
18+
19+
def alarm():
20+
# Infinite Loop
21+
while True:
22+
# Set Alarm
23+
set_alarm_time = f"{hour.get()}:{minute.get()}:{second.get()}"
24+
25+
# Wait for one seconds
26+
time.sleep(1)
27+
28+
# Get current time
29+
current_time = datetime.datetime.now().strftime("%H:%M:%S")
30+
print(current_time,set_alarm_time)
31+
32+
# Check whether set alarm is equal to current time or not
33+
if current_time == set_alarm_time:
34+
print("Time to Wake up")
35+
# Playing sound
36+
winsound.PlaySound("sound.wav",winsound.SND_ASYNC)
37+
38+
# Add Labels, Frame, Button, Optionmenus
39+
Label(root,text="Alarm Clock",font=("Helvetica 20 bold"),fg="red").pack(pady=10)
40+
Label(root,text="Set Time",font=("Helvetica 15 bold")).pack()
41+
42+
frame = Frame(root)
43+
frame.pack()
44+
45+
hour = StringVar(root)
46+
hours = ('00', '01', '02', '03', '04', '05', '06', '07',
47+
'08', '09', '10', '11', '12', '13', '14', '15',
48+
'16', '17', '18', '19', '20', '21', '22', '23', '24'
49+
)
50+
hour.set(hours[0])
51+
52+
hrs = OptionMenu(frame, hour, *hours)
53+
hrs.pack(side=LEFT)
54+
55+
minute = StringVar(root)
56+
minutes = ('00', '01', '02', '03', '04', '05', '06', '07',
57+
'08', '09', '10', '11', '12', '13', '14', '15',
58+
'16', '17', '18', '19', '20', '21', '22', '23',
59+
'24', '25', '26', '27', '28', '29', '30', '31',
60+
'32', '33', '34', '35', '36', '37', '38', '39',
61+
'40', '41', '42', '43', '44', '45', '46', '47',
62+
'48', '49', '50', '51', '52', '53', '54', '55',
63+
'56', '57', '58', '59', '60')
64+
minute.set(minutes[0])
65+
66+
mins = OptionMenu(frame, minute, *minutes)
67+
mins.pack(side=LEFT)
68+
69+
second = StringVar(root)
70+
seconds = ('00', '01', '02', '03', '04', '05', '06', '07',
71+
'08', '09', '10', '11', '12', '13', '14', '15',
72+
'16', '17', '18', '19', '20', '21', '22', '23',
73+
'24', '25', '26', '27', '28', '29', '30', '31',
74+
'32', '33', '34', '35', '36', '37', '38', '39',
75+
'40', '41', '42', '43', '44', '45', '46', '47',
76+
'48', '49', '50', '51', '52', '53', '54', '55',
77+
'56', '57', '58', '59', '60')
78+
second.set(seconds[0])
79+
80+
secs = OptionMenu(frame, second, *seconds)
81+
secs.pack(side=LEFT)
82+
83+
Button(root,text="Set Alarm",font=("Helvetica 15"),command=Threading).pack(pady=20)
84+
85+
# Execute Tkinter
86+
root.mainloop()

‎projects/AudioBook/Audio-book.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#Importing Libraries
2+
#Importing Google Text to Speech library
3+
from gtts import gTTS
4+
5+
#Importing PDF reader PyPDF2
6+
import PyPDF2
7+
8+
#Open file Path
9+
pdf_File = open('name.pdf', 'rb')
10+
11+
#Create PDF Reader Object
12+
pdf_Reader = PyPDF2.PdfFileReader(pdf_File)
13+
count = pdf_Reader.numPages # counts number of pages in pdf
14+
textList = []
15+
16+
#Extracting text data from each page of the pdf file
17+
for i in range(count):
18+
try:
19+
page = pdf_Reader.getPage(i)
20+
textList.append(page.extractText())
21+
except:
22+
pass
23+
24+
#Converting multiline text to single line text
25+
textString = " ".join(textList)
26+
27+
print(textString)
28+
29+
#Set language to english (en)
30+
language = 'en'
31+
32+
#Call GTTS
33+
myAudio = gTTS(text=textString, lang=language, slow=False)
34+
35+
#Save as mp3 file
36+
myAudio.save("Audio.mp3")

‎projects/Battery_notification/battery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
plugged = battery.power_plugged
66
percent = battery.percent
77

8-
if percent >= 30:
8+
if percent <= 30andplugged!=True:
99

1010
# pip install py-notifier
1111
# pip install win10toast
@@ -15,5 +15,5 @@
1515
title="Battery Low",
1616
description=str(percent) + "% Battery remain!!",
1717
duration=5, # Duration in seconds
18-
urgency=Notification.URGENCY_CRITICAL,
18+
1919
).send()

‎projects/Billing_system/Bill.PNG

80.3 KB
Loading[フレーム]

‎projects/Billing_system/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<h1>Billing system using Tkinter</h1>
2+
<p>This project can be used for any shops. User can store all the data and generate the bill.</p>
3+
4+
<h2>Tech stack:</h2>
5+
<ul>
6+
<li>Python</li>
7+
</ul>
8+
9+
<h2>Libraries used:</h2>
10+
<ul>
11+
<li>Tkinter</li>
12+
<li>Os</li>
13+
<li>Messagebox</li>
14+
</ul>
15+
16+
<h3>To install external modules:</h3>
17+
<p><li>Run pip install tkinter</li></p>
18+
19+
<h3>To execute the project:</h3>
20+
<p><li>Run billing system.py</li></p>
21+
22+
<h3>Screenshot/GIF of this project.</h3>
23+
24+
![Bill](https://user-images.githubusercontent.com/72568715/134779769-7695a727-adbb-43b7-9e60-1205dc982ae7.PNG)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /