MCPcopy Create free account

hub / github.com/alperencubuk/fastapi-celery-redis-postgres-docker-rest-api / functions

Functions19 in github.com/alperencubuk/fastapi-celery-redis-postgres-docker-rest-api

↓ 2 callersFunctioncrud_error_message
(message)
api/crud.py:56
↓ 1 callersFunctionadd_user
Get random user data from randomuser.me/api and add database using Celery. Uses Redis as Broker and Postgres as Backend.
api/main.py:22
↓ 1 callersFunctionadd_weather
Get weather data from api.collectapi.com/weather and add database using Celery. Uses Redis as Broker and Postgres as Backend.
api/main.py:55
↓ 1 callersFunctioncrud_add_user
(user: UserIn)
api/crud.py:6
↓ 1 callersFunctioncrud_add_weather
(weather: WeatherIn)
api/crud.py:23
↓ 1 callersFunctioncrud_get_user
(user_id: int)
api/crud.py:15
↓ 1 callersFunctioncrud_get_weather
(city: str)
api/crud.py:39
Functionadd_user_default_delay
Get random user data from randomuser.me/api add database using Celery. Uses Redis as Broker and Postgres as Backend. (Delay = 10 sec)
api/main.py:33
Functionadd_weather_default_delay
Get weather data from api.collectapi.com/weather and add database using Celery. Uses Redis as Broker and Postgres as Backend. (Delay = 10
api/main.py:66
Functionget_db_session
()
api/database.py:12
Functionget_user
Get user from database.
api/main.py:43
Functionget_weather
Get weather from database.
api/main.py:76
Functionread_root
Developer: Alperen Cubuk
api/main.py:14
Functiontask_add_user
(count: int, delay: int)
api/tasks.py:16
Functiontask_add_weather
(city: str, delay: int)
api/tasks.py:34
Functiontask_status
Get task status. PENDING (waiting for execution or unknown task id) STARTED (task has been started) SUCCESS (task executed successful
api/main.py:90
Functiontest_read_root
()
api/tests/tests.py:7
Functiontest_task_add_user
()
api/tests/tests.py:12
Functiontest_task_add_weather
()
api/tests/tests.py:29