Closed AmirLavasani closed 2 weeks ago
Hi @AmirLavasani
Thank you for this pull request. I am truly appreciate your code contribution to pynest.
I'll go over the pr asap and added comments if needed 🫡
Thanks @ItayTheDar
Well done on PyNest, it is a very cool idea, and the current Python ecosystem lacks a modular backend framework.
I've started reading through the codebase and am working on adding documentation and making simple refactors to improve PyNest's readability and maintainability. I hope I can help PyNest reach its full potential. 🫡
@AmirLavasani Hi!
I've noticed some unwanted behaviour so i pushed a fix.
When we define the HTTP decorators as lambda functions, the ide raises some issue when trying to add the different kwargs to the route (response_model, description and etc...)
Add HTTP Status Code Feature and Some Refactors
Description
This merge request includes various refactorings, documentation improvements, and a new feature addition to the PyNest framework. Below are the detailed changes:
Changes Made:
Code Formatting and Cleanup:
black
for consistent code style.Refactoring:
HTTPMethod
enum for route decorators to enhance readability and maintainability.PyNestFactory
class and added docstrings to improve clarity and readability of the code.HTTPCode
decorator to streamline its functionality.Documentation:
New Feature: HTTP Status Code Decorator:
@HTTPCode
decorator.Please review the changes and provide feedback. Thanks