CoolFace
Apppublic

Chittrarasu/Population_FastAPI

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
continents.cpython-313.pyc11 linesDownload Raw Back to __pycache__
123�g����SSKJrJr SSKJrJr SSKJr SSKJ	r	 \"5r3\4RS5S5r\5RS5SS	\
S6\
4Sjj5rg)
�)�	APIRouter�
HTTPException)�get_continents�get_continent_data)�logger)�ContinentStatsz/continents/c�F�[R"S5 S[50$)z!Fetch the list of all continents.zFetching list of continents.�7continents)r�infor���-C:\chitu\population_api\backend\continents.py�fetch_all_continentsr	s���K�K�.�/��.�*�+�+r
z/continents/{continent}/N�	continent�statc�>�[R"SU35 [U5nU(d#[R"SU35 [	SSS9eU(aGX;a[R"SU35 XU0$[R8"SU35 [	SS	S9eU$)9z*Fetch statistics for a specific continent.z#Fetching statistics for continent: zContinent not found: i�zContinent not found)�status_code�detailzFetching specific statistic: zInvalid statistic requested: i�zInvalid statistic requested)rrr�errorr�warning)rr�continent_datas   r�fetch_continent_statsrs����K�K�5�i�[�A�B�'�	�2�N�����,�Y�K�8�9���4I�J�J���!��K�K�7��v�>�?���.�/�/��N�N�:�4�&�A�B��C�8U�V�V��r
)N)�fastapirr�backend.population_pandasrr�backend.loggerr� backend.models.population_modelsr�router�getr�strrrr
r�<module>r sa��,�H�!�;�10������N��,��,�11���&�'��S����(�r