Others
configuration.py
Configuration declaration & parsing.
DefaultConfig
dataclass
Default configuration, with sensible defaults whenever possible.
Source code in oblique/configuration.py
19 20 21 22 23 24 25 26 27 28 29 30 | |
dependencies.py
Dependencies used in both the web-app and the API.
get_db()
FastAPI dependency to create a DB Session.
Yields:
| Name | Type | Description |
|---|---|---|
SessionLocal |
SessionLocal
|
DB Session. |
Source code in oblique/dependencies.py
5 6 7 8 9 10 11 12 13 14 15 | |
server.py
File containing the main function, serving the app.
get_main_app()
Create the main FastAPI app, which is made of the web-app and the API.
Source code in oblique/server.py
13 14 15 16 17 18 19 20 21 22 23 | |
run()
The function called to run the server.
It will simply run the FastAPI app. Also, if the selected DB is in-memory, it will ensure the tables are created.
Source code in oblique/server.py
26 27 28 29 30 31 32 33 34 35 36 | |
Constants
These constants are located in oblique/__init__.py.