From 30d9a057cd6a6ed03fdf9ba914624e110a3117bd Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Sun, 21 Nov 2021 11:12:19 +0530 Subject: [PATCH] add url_shortener & message notifier --- projects/Url_Shortener/README.md | 53 +++++++++++++++++++++ projects/Url_Shortener/code.py | 5 ++ projects/Windows_Message_Notifier/README.md | 53 +++++++++++++++++++++ projects/Windows_Message_Notifier/code.py | 10 ++++ 4 files changed, 121 insertions(+) create mode 100644 projects/Url_Shortener/README.md create mode 100644 projects/Url_Shortener/code.py create mode 100644 projects/Windows_Message_Notifier/README.md create mode 100644 projects/Windows_Message_Notifier/code.py diff --git a/projects/Url_Shortener/README.md b/projects/Url_Shortener/README.md new file mode 100644 index 00000000..0620575b --- /dev/null +++ b/projects/Url_Shortener/README.md @@ -0,0 +1,53 @@ +# Url Shortner + +This is a Simple Python Script which makes you're URL (Link) shortener. + +# Prerequisites + +- Little bit experience with Python programming language. +- Very basic terminal commands. + +# Library Used +``` +pip3 install pyshorteners +``` + +# How to run the code locally + +- Clone this Repository + +``` +git clone https://github.com/Python-World/python-mini-projects +``` + +- Go to the Project directory + +``` +cd python-mini-projects +``` + +- Go to the projects folder + +``` +cd projects +``` + +- Go to the project file folder + +``` +cd Url-Shortener +``` + +- Run the following command + +``` +python code.py +``` + +# About Author + +Hey, I am Gaurav 14 y/o New in Programing from India, I love to contribute to Open-Source in Python and Machine Learning. You can catch me on [Twitter](https://twitter.com/gaurtvin) and [LinkedIn](https://linkedin.com/in/gaurtvin). + +Any comments, suggestions or corrections are welcome. Contribution are welcome. + +## Happy Coding! diff --git a/projects/Url_Shortener/code.py b/projects/Url_Shortener/code.py new file mode 100644 index 00000000..80cbec15 --- /dev/null +++ b/projects/Url_Shortener/code.py @@ -0,0 +1,5 @@ +import pyshorteners + +s = pyshorteners.Shortener() + +print(s.gitio.short('https://github.com/gaurtvin')) \ No newline at end of file diff --git a/projects/Windows_Message_Notifier/README.md b/projects/Windows_Message_Notifier/README.md new file mode 100644 index 00000000..24daf178 --- /dev/null +++ b/projects/Windows_Message_Notifier/README.md @@ -0,0 +1,53 @@ +# Windows Message Notifier + +This is a Simple Python Script which notify a message. It works fine with Windows and It does't work with macOS + +# Prerequisites + +- Little bit experience with Python programming language. +- Very basic terminal commands. + +# Library Used +``` +pip3 install plyer +``` + +# How to run the code locally + +- Clone this Repository + +``` +git clone https://github.com/Python-World/python-mini-projects +``` + +- Go to the Project directory + +``` +cd python-mini-projects +``` + +- Go to the projects folder + +``` +cd projects +``` + +- Go to the project file folder + +``` +cd Windows-Message-Notifier +``` + +- Run the following command + +``` +python code.py +``` + +# About Author + +Hey, I am Gaurav 14 y/o New in Programing from India, I love to contribute to Open-Source in Python and Machine Learning. You can catch me on [Twitter](https://twitter.com/gaurtvin) and [LinkedIn](https://linkedin.com/in/gaurtvin). + +Any comments, suggestions or corrections are welcome. + +## Happy Coding! diff --git a/projects/Windows_Message_Notifier/code.py b/projects/Windows_Message_Notifier/code.py new file mode 100644 index 00000000..ebb66788 --- /dev/null +++ b/projects/Windows_Message_Notifier/code.py @@ -0,0 +1,10 @@ +from plyer import notification + +notification.notify( + title = "Hello World!", + message= "My test Message!", + # displaying time + timeout=10 +) + +# This works fine with Windows 10/11. I yet not tested in macOS as I tested I update. \ No newline at end of file