Files
LifeFaq/app/__pycache__/main.cpython-312.pyc

20 lines
4.3 KiB
Plaintext
Raw Normal View History

2024-12-12 19:58:26 +01:00
<EFBFBD>
2024-12-30 23:20:54 +01:00
dsg<73>
2024-12-29 04:34:25 +01:00
<00><00><><00>ddlmZddlmZddlmZddlmZddlm Z ddl
2024-12-21 02:16:29 +01:00
m Z ddl m Z ddlmZdd lmZGd
<EFBFBD>d <0B>Ze<12>Zej)<00>Zy ) <0A>)<01>FastAPI)<01>asynccontextmanager)<01> StaticFiles)<01>
2024-12-29 04:34:25 +01:00
RouteToWeb)<01>MarkdownProcessor)<01>MetadataProcessor)<01>CategoryController)<01>GZipMiddleware)<01> ImageServicec<00>F<00>eZdZd<01>Zedefd<03><04>Zd<04>Zd<05>Zd<06>Z d<07>Z
d<08>Z y )
2024-12-30 21:37:36 +01:00
<EFBFBD> Applicationc<00><><00>t|j<00><01>|_|j<00>|j <00>|j <00>|j <00>y)z,Initialize the FastAPI app and configure it.)<01>lifespanN)r<00>_lifespan_event<6E>app<70>_set_image_sizes<65>_setup_static_files<65>_include_routers<72>_include_middelware<72><01>selfs <20>//home/hjess/PycharmProjects/LifeFaq/app/main.py<70>__init__zApplication.__init__sD<00><00><1A>t<EFBFBD>';<3B>';<3B>=<3D><04><08> <0C><1D><1D><1F> <0C> <20> <20>"<22> <0C><1D><1D><1F> <0C> <20> <20>"<22>rc<00><>K<00>td<01>tdd|j<00><04>}|j<00>td<05>t dd|j<00><07>}|j <00>d<08><04><01>td <09>y<08>w)
z.Lifespan event for startup and shutdown logic.z)App startup: Processing Markdown files...z./datazgenerated_data.json)<03> input_dir<69> output_filerzGenerated dynamic data file.z ./templates)r<00> templates_dirrNzApp shutdown: Cleanup complete.)<06>printrr<00> generate_jsonr<00>run)rr<00>metadata_processor<6F> processors rrzApplication._lifespan_eventsg<00><00><><00> <0E>9<>:<3A>.<2E><18>Od<4F>im<69>iq<69>iq<69>r<><1A><1A>(<28>(<28>*<2A> <0A>,<2C>-<2D>%<25><08> <0A>Z^<5E>Zb<5A>Zb<5A>c<> <09><11> <0A> <0A><0F> <0A> <0A>/<2F>0<>s<00>A8A:c<00><><00>|jjdtd<02><03>d<02><04>|jjdtd<06><03>d<06><04>|jjdtd<08><03>d <09><04>y
) zMount static file directories.z/data<74>data)<01> directory)<01>namez/static<69>staticz/imagesz static/images<65>imagesN)r<00>mountrrs rrzApplication._setup_static_files'sT<00><00> <0C><08><08><0E><0E>w<EFBFBD> <0B>f<EFBFBD> =<3D>F<EFBFBD><0E>K<> <0C><08><08><0E><0E>y<EFBFBD>+<2B><08>"A<><08><0E>Q<> <0C><08><08><0E><0E> <09>;<3B>O<EFBFBD>#M<>V^<5E><0E>`rc<00>J<00>t<00>}t|j<00>}t|j<00>}|jj |j
2024-12-29 04:34:25 +01:00
<00>|jj |j
<00>|jj |j
2024-12-30 21:37:36 +01:00
<00>y)zInclude all route controllers.N)r r rr<00>include_router<65>router)r<00>category_controller<65> image_service<63> route_to_webs rrzApplication._include_routers-sp<00><00>0<>2<><1B>$<24>T<EFBFBD>X<EFBFBD>X<EFBFBD>.<2E> <0A>!<21>$<24>(<28>(<28>+<2B> <0C> <0C><08><08><1F><1F>!4<>!;<3B>!;<3B>=<3D> <0C><08><08><1F><1F> <0C> 3<> 3<>4<> <0C><08><08><1F><1F><1D>!5<>!5<>7rc<00>F<00>|jjtd<01><02>y)Ni<4E>)<01> minimum_size)r<00>add_middlewarer
2024-12-30 23:20:54 +01:00
rs rrzApplication._include_middelware8s<00><00> <0C><08><08><1F><1F><1E><03><1F>Erc<00>\<00>ddd<02>ddd<02>ddd<02>ddd<02>d<06>|jj_y)N<><4E>)<02>width<74>heighti iXi,)<04>
2024-12-30 21:37:36 +01:00
thumbnails<EFBFBD>large<67>small<6C>original)r<00>state<74> IMAGE_SIZESrs rrzApplication._set_image_sizes;s4<00><00>$'<27>3<EFBFBD>7<>"<22>c<EFBFBD>2<>"<22>c<EFBFBD>2<>"&<26>$<24>7<> &
<EFBFBD><04><08><08><0E><0E>"rc<00><00>|jS)z Return the FastAPI app instance.)rrs r<00>get_appzApplication.get_appCs <00><00><13>x<EFBFBD>x<EFBFBD>rN) <0C>__name__<5F>
2024-12-30 23:20:54 +01:00
__module__<EFBFBD> __qualname__rrrrrrrrr?<00>rrr r s=<00><00>#<23><19> 1<><17> 1<><19> 1<>a<01> 8<>F<01>
2024-12-29 04:34:25 +01:00
<EFBFBD>rr N)<16>fastapir<00>
2024-12-24 00:14:44 +01:00
contextlibr<00>fastapi.staticfilesr<00>app.controllers.route_to_webr<00>app.services.markdown_processorr<00>app.services.metadata_processorr<00>#app.controllers.category_controllerr <00>fastapi.middleware.gzipr
2024-12-30 23:20:54 +01:00
<00>app.services.image_servicer r <00> applicationr?rrCrr<00><module>rNsB<00><01><1B>*<2A>+<2B>3<>=<3D>=<3D>B<>2<>3<>8<18>8<18>v<1A>m<EFBFBD> <0B><11><19><19><1B>r