Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve custom generator class discovery in load_generators method #137

Closed
1 task done
rszamszur opened this issue Aug 22, 2022 · 0 comments · Fixed by #138
Closed
1 task done

Improve custom generator class discovery in load_generators method #137

rszamszur opened this issue Aug 22, 2022 · 0 comments · Fixed by #138
Assignees
Labels
enhancement New feature or request

Comments

@rszamszur
Copy link
Member

  • I have searched the issues of this repo and believe that this is not a duplicate.

Feature Request

instead of using module __all__ attribute:
https://github.com/rszamszur/fastapi-mvc/blob/4c93d8e3e06046eb923ddcd57bac3ce6732956d7/fastapi_mvc/borg.py#L198
https://github.com/rszamszur/fastapi-mvc/blob/4c93d8e3e06046eb923ddcd57bac3ce6732956d7/fastapi_mvc/generators/generator/template/%7B%7Bcookiecutter.folder_name%7D%7D/lib/generators/%7B%7Bcookiecutter.generator_name%7D%7D/__init__.py#L4-L6

Define distinguishable meaningful attribute from which load_generators should extract custom generator class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant