PythonNest / PyNest

PyNest is a Python framework built on top of FastAPI that follows the modular architecture of NestJS
https://pythonnest.github.io/PyNest
MIT License
643 stars 45 forks source link

Change Absolute imports to Relative imports into examples #22

Closed simonandres182 closed 6 months ago

simonandres182 commented 7 months ago

Hello, I cloned the PyNest repository to try out the examples and find out that the imports in the examples project are Absolute and it would be easy to use Relative imports so it can be run in a easy way.. I have already made the changes so if the community like the idea I will push the changes.

From from examples.nest_products.src.users.users_service import UsersService from examples.nest_products.src.users.users_model import User

to

from .users_service import UsersService from .users_model import User

ItayTheDar commented 7 months ago

Hi @simonandres182! that's sound like a great fix to add, could you open pr with those changes? tag me as a reviewer (Oh, and pull before because iv'e pushed new changes)