Aurodiscovering #1266
Unanswered
albertalexandrov
asked this question in
Questions
Aurodiscovering
#1266
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Hi all!
Imagine there is a package1 that has an initialized Typer app:
The typer_app is imported into project1 (FastAPI application). I'd like to use the typer_app from package1 to add custom commands of project1. But the problem is that commands of project1 are not discovered by typer_app.
How to implement autodiscover or something like this?
UPD. As far as I can see it works in Django because libs that extend it are being registered via INSTALLED_APP.
Operating System
macOS
Operating System Details
No response
Typer Version
0.16.0
Python Version
3.11.9
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions