Skip to content

Little projects under 100 lines to help you discover some interesting python libraries

Notifications You must be signed in to change notification settings

andreaonorato/Under100Lines

Repository files navigation

Under100Lines

Welcome to Under100Lines! This repository contains a collection of small, concise projects and code snippets, each comprising less than 100 lines of code. Whether you're a beginner looking to explore bite-sized coding challenges or an experienced developer seeking inspiration, you'll find something interesting here.

About

Under100Lines aims to demonstrate the power of simplicity in programming. Each project or code snippet is designed to be easy to understand and modify, making it ideal for learning and experimentation. Explore the repository and discover new ideas to enhance your coding skills!

List of projects

Automation:

  1. Bot Email for Gmail: Automate sending emails using Gmail.
  2. Bot WhatsApp Message: Automate sending messages on WhatsApp.
  3. Files Converter: Convert files between different formats (e.g., PDF to Word).
  4. Speech to Text and Vice-Versa: Convert speech to text and text to speech.
  5. Merge PDF: Combine multiple PDF files into one.
  6. Python Autodraw: Use pyautogui to auto-draw sketches.

Manage Files:

  1. Compress Files: Compress files to reduce their size.
  2. Duplicate Files Remover: Find and remove duplicate files.
  3. Encrypt Files: Encrypt files to secure them.
  4. QR Code Generator: Generate QR codes for links or text.
  5. Search String from Multiple Files: Search for a string across multiple files.

Simple Apps:

  1. Alarm Clock: Set alarms and reminders.
  2. ASCII Art: Generate ASCII art from text or images.
  3. Battery Notification: Notify when the battery level is low.
  4. Bouncing Ball: Simple animation of a bouncing ball.
  5. CAPTCHA Generator: Generate CAPTCHA images for security.
  6. Capture Screenshot: Take screenshots of the screen.
  7. Chatbot: Create a simple conversational chatbot.
  8. Convert Numbers to Words: Convert numerical digits to words.
  9. Create Simple Stopwatch: Track time with a stopwatch.
  10. Decimal to Binary Converter: Convert decimal numbers to binary.
  11. Encrypt and Decrypt Text: Encrypt and decrypt text messages.
  12. Password Generator: Generate strong passwords.
  13. Sine Wave Generator: Generate sine wave patterns.
  14. To-Do GUI: Simple to-do list with a graphical user interface.

Web Tools:

  1. All Links from Given Webpage: Extract all links from a webpage.
  2. Check Website Connectivity: Test the connectivity of a website.
  3. Fetch Current Weather: Get the current weather conditions.
  4. Fetch Open Ports: Scan for open ports on a server.
  5. Generate WordCloud from Wikipedia: Create word clouds from Wikipedia articles.
  6. Get Content from Locked Page: Extract content from password-protected or locked web pages.
  7. Get DNS Record: Retrieve DNS records for a domain.
  8. Get YouTube Comments from Link: Fetch comments from a YouTube video link.

Installation

To run the programs in this repository, you'll need to have Python and pip installed on your system. Follow the steps below to install Python and pip:

Step 1: Install Python

Windows

  1. Visit the Python Downloads page.
  2. Download the latest version of Python for Windows.
  3. Run the installer and follow the installation instructions.
  4. Check the "Add Python to PATH" option during installation.

macOS

  1. macOS usually comes with Python pre-installed. Open Terminal and type python --version to check the installed version.
  2. If Python is not installed or you want to install a different version, consider using Homebrew to install it. Run brew install python in Terminal.

Linux

  1. Python is usually pre-installed on most Linux distributions. Open Terminal and type python --version to check the installed version.
  2. If Python is not installed or you want to install a different version, use your package manager to install it. For example, on Ubuntu, run sudo apt-get install python3.

Step 2: Install pip

Windows

  1. Download get-pip.py to a folder on your computer.
  2. Open Command Prompt and navigate to the folder where get-pip.py is located.
  3. Run the following command to install pip:
  4. Add the Python and pip installation directories to your system's PATH environment variable:
  • Right-click on "This PC" or "My Computer" and select "Properties".
  • Click on "Advanced system settings" on the left.
  • Click on the "Environment Variables..." button.
  • Under "System variables", select the "Path" variable and click "Edit...".
  • Click "New" and add the path to Python (e.g., C:\Python39) and pip (e.g., C:\Python39\Scripts).
  • Click "OK" to save the changes.

macOS, Linux

  1. After installing Python, pip should be automatically installed.
  2. To verify that pip is installed, open Terminal and type pip --version.

Usage

  1. Clone this repository to your local machine.
  2. Navigate to the project directory you want to launch.
  3. Install external libraries with pip install -r requirements.txt
  4. Open a terminal or command prompt.
  5. Run the Python files.

Contributing

Contributions to Under100Lines are welcome! Whether you want to add a new project, fix a bug, or improve documentation, feel free to open a pull request.

About

Little projects under 100 lines to help you discover some interesting python libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages