Skip to content

BrunoBarroso09/python-mini-projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Mini Projects

📌 Guess the number

✔️ Description – This is a strategy game developed in Python, where the main challenge is to discover a secret number between 1 and 20 before running out of lives. At the start, the player receives 5 health points and must enter their guesses successively. With each incorrect attempt, the program provides immediate feedback, indicating whether the number entered is greater or less than the correct value, helping the player adjust their logic for the next move. Each mistake results in the loss of a life point, and the game ends when the user guesses the number correctly, or when the life reaches zero, revealing the hidden number in a defeat scenario.

[Guess the number] - https://github.com/BrunoBarroso09/python-mini-projects/blob/Dev/GuessTheNumber/script.py

📌 ToDo List

✔️ Description – This application is a simple and functional task manager, developed in Python, that handles lists. Through a command-line interface based on an interactive menu, the application allows the user to register new activities, view the current task list, and delete completed or unwanted tasks. The program uses a class structure to maintain the list state persistently during execution, employing specific methods for each CRUD (Create, Read, Delete) operation.

[ToDo List] - https://github.com/BrunoBarroso09/python-mini-projects/blob/Dev/TodoList/script.py

📌 Calculator

✔️ Description - This is an interactive calculator application for the terminal, developed in Python with an Object-Oriented Programming framework. The program works through a loop menu that allows the user to choose between the four basic arithmetic operations or terminate execution.

[Calculator] - https://github.com/BrunoBarroso09/python-mini-projects/blob/Dev/Calculator/script.py

🌦️ IPMA Weather Service

✔️ Description - A robust Python Service Class for consuming the open API of IPMA (Portuguese Institute of the Sea and the Atmosphere). This project demonstrates skills in API integration, Object-Oriented Programming (OOP), and data manipulation.

🚀 Features

Session Management: Uses requests.Session() to optimize performance across multiple requests.

Error Handling: Implements try/except blocks to handle network failures and HTTP errors (404, 500, etc.).

Data Aggregation: Specialized method to consolidate forecasts from all national districts into a single enriched dataset.

Design Patterns: Clear separation between communication logic (private methods) and business logic (public methods).

[IPMA Weather] - https://github.com/BrunoBarroso09/python-mini-projects/blob/Dev/IPMA_API/script.py

[UUID] - https://github.com/BrunoBarroso09/python-mini-projects/blob/Dev/uuid/

Core Identifiers 🚀

✔️ Description - Centralize service and robust to manage unique identifier (UUID) inside Python ecosistem. This component was designed to be agnostic, allow multiple project (APIs , microservices) using the same logic to generate IDs, ensuring consistency

✨ Functionalities

  • UUID v4: Generate IDs totally random for session and transactions
  • UUID v4 Hex: Compact version (without dashes) ideal for file names or url key
  • UUID v5: Generate IDs based Namespace and Input (ex: email). The same input generate always the same ID - perfect to avoid duplicates in the database like MongoDB or MySQL
  • Static Typing: Fully compatible with mypy and modern IDEs (Type Hints).

About

Repository for my mini project to practice python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages