-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Factory with a ProcessContext
The purpose of this refactor is to make it easier to get a factory in circumstances other than the FastAPI request handler (such as in a CLI handler). The ProcessContext holds all clients that can persist across requests. This design also nicely refactors the code for initializing FastAPI dependencies out of the main module and into the ProcessContext.create class method. This is mimicking the structure of Gafaelfawr's Factory and ProcessContext.
- Loading branch information
1 parent
8b8483f
commit 75bbc6e
Showing
4 changed files
with
146 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters