Skip to content

QasimAfzal181/Python-Projects

Repository files navigation

READ BEFORE DOWNLOADING THE FILES

Terms of Use

• Feel free to explore, use, and modify the code for personal or educational purposes.

• You cannot claim this code as your own or redistribute it.

• If you use or reference this code, please credit the original author (me).

• This code is not open-source and cannot be used in commercial projects without permission.

💻Python-Projects

• Contains Python projects from my coursework at NAIT.

• These projects demonstrate my understanding of various Python concepts, such as network validation, file processing, and converting Python scripts to executable files.


  1. IPv4 Address Validation:

Objective:

• Validate an IPv4 address entered in dotted decimal format. Ensure proper input handling, display validity, and allow users to exit the program by typing "quit".

• Key Deliverables:

• Flowchart illustrating the validation process.

• Python program implementing the validation logic with clear documentation.


  1. Advanced IPv4 Address Validation:

Objective:

• Enhance IPv4 validation by supporting flexible separators (periods, spaces, commas).

• Include functionality to determine the address class, generate a binary representation, and display detailed information. Modularize the code with at least four functions (e.g., getip(), validateip(), errormessage(),showipinfo()).

Key Deliverables:

• Python program with modular, structured, and well-documented code.

• File Management: Tools for file operations and organization.

• Command Line Argument inspect: Handling files through command-line arguments.


  1. File Processing with Command-Line Arguments

Objective:

• Create a Python program to read, modify, and write file content based on command-line arguments.

• Handle file existence, default directories, and user interactions for overwriting files or creating new ones.

Key Deliverables:

• Python program with modular code.

• Features include:

• Generating file headers with system info, username, and timestamp.

• Writing prefixed content to an output file with error handling.


  1. Python program to .exe file

Objective:

• Develop a Python program that takes one or more command line arguments, prompts the user for something, does some calculations or processing, and writes a file.

• Program must be converted to and function as an executable.

Key Features:

• Command-Line Arguments: Accepts input file paths and output file paths as command-line arguments.

• User Interaction: Prompts the user for additional input, which modifies the content of the input file or affects calculations.

• File Processing: Reads content from the input file, processes it based on user input, and writes the result to an output file.

• File Writing: Includes error handling for file existence and writes content with a timestamp and system info in the header.

• Executable Conversion: The Python script is converted into a standalone executable file using PyInstaller for cross-platform compatibility.

About

Pythons projects creating during my school at NAIT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages