📄️ Modules
This document provides an overview of Python modules, including what they are, how to create them, and various methods of importing and using them in your Python scripts.
📄️ Avoiding Star Imports
Star imports in Python, such as from module import *, can be convenient but are often discouraged due to their potential to cause conflicts and obscure the origin of imported names. While they might seem harmless in small projects or simple scripts, they can lead to unexpected behavior as projects grow in complexity. This README outlines the risks associated with star imports and provides guidance on how to avoid them.
📄️ if __name__ == "__main__"
The if name == "main" construct in Python is used to execute a specific block of code only if the script is run directly. It helps in distinguishing whether the Python script is being run as the main program or being imported as a module in another script.
📄️ Creating and Using Packages
Welcome to this guide on creating and using Python packages! In this tutorial, we'll walk through the process of creating your own Python package, which is essentially a collection of modules organized within a directory. Packages are a fundamental concept in Python development, allowing you to organize and distribute your code more efficiently.
📄️ Library vs. Package
This repository serves as an explanatory guide on the distinctions between Python libraries and packages, often used interchangeably but carrying specific meanings within the Python ecosystem.
📄️ Website Status Project
This project aims to create a simple website status checker in Python. The program allows users to input a URL and provides information about the status of the website, including its online status, response code, presence of links, encoding, and whether it's a redirect or a permanent redirect.