I want to capture the command line arguments to create a Singleton and make it available to all the endpoints in a FastApi service. The (non-working) code below is for illustration only: the command line argument s: str is transformed into the Singleton thisobj and made available to the routes. Is this possible with punq?
I want to capture the command line arguments to create a Singleton and make it available to all the endpoints in a FastApi service. The (non-working) code below is for illustration only: the command line argument s: str is transformed into the Singleton thisobj and made available to the routes. Is this possible with punq?