Closed justinjohnson-dev closed 5 months ago
Greetings! This is an automated message from GitHub Actions. :robot: Your pull request has been received and is awaiting for a review by the repository owner or a maintainer. This may take some time, so please be patient. While you wait, you can continue to work on other issues or pull requests, or explore the project further. Or you can simply relax and enjoy your day. Thank you for your contribution to this project! You are awesome! :star:
@Mrinank-Bhowmick
Great work @justinjohnson-dev 🚀
Type of change
Changes proposed in this pull request
Project name : URL Shortener
Short description :
URL Shortener Project
The URL Shortener project is a Python-based application designed to create shortened versions of long URLs, making them easier to share and manage. The project leverages Pydantic for data validation and type checking, ensuring robust input handling and error management. It uses the
pyshorteners
library to interface with various URL shortening services, providing flexibility in choosing different providers.Key Features
HttpUrl
type for strict URL validation.Components
Model:
UrlShortenerValidation
: A Pydantic model that validates the input URL.Service:
URLShortener
: A class that encapsulates the URL shortening logic, usingpyshorteners
to shorten the URLs and handling potential errors.Main Script:
URLShortener
service to generate and display the shortened URL.Example Usage
Technology Stack Python: The core programming language. Pydantic: For data validation and type enforcement. pyshorteners: To interface with URL shortening services.
This project is ideal for demonstrating the integration of third-party services in Python, data validation using Pydantic, and implementing a simple yet effective CLI application.
Checklist