Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alperencubuk/fastapi-celery-redis-postgres-docker-rest-api
/ functions
Functions
19 in github.com/alperencubuk/fastapi-celery-redis-postgres-docker-rest-api
⨍
Functions
19
◇
Types & classes
6
↳
Endpoints
8
↓ 2 callers
Function
crud_error_message
(message)
api/crud.py:56
↓ 1 callers
Function
add_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 callers
Function
add_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 callers
Function
crud_add_user
(user: UserIn)
api/crud.py:6
↓ 1 callers
Function
crud_add_weather
(weather: WeatherIn)
api/crud.py:23
↓ 1 callers
Function
crud_get_user
(user_id: int)
api/crud.py:15
↓ 1 callers
Function
crud_get_weather
(city: str)
api/crud.py:39
Function
add_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
Function
add_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
Function
get_db_session
()
api/database.py:12
Function
get_user
Get user from database.
api/main.py:43
Function
get_weather
Get weather from database.
api/main.py:76
Function
read_root
Developer: Alperen Cubuk
api/main.py:14
Function
task_add_user
(count: int, delay: int)
api/tasks.py:16
Function
task_add_weather
(city: str, delay: int)
api/tasks.py:34
Function
task_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
Function
test_read_root
()
api/tests/tests.py:7
Function
test_task_add_user
()
api/tests/tests.py:12
Function
test_task_add_weather
()
api/tests/tests.py:29