Skip to content

Instantly share code, notes, and snippets.

View SanjarbekSaminjonov's full-sized avatar
👋
I may be slow to respond.

Sanjarbek SanjarbekSaminjonov

👋
I may be slow to respond.
View GitHub Profile
@liviaerxin
liviaerxin / README.md
Last active July 10, 2025 22:56
FastAPI and Uvicorn Logging #python #fastapi #uvicorn #logging

FastAPI and Uvicorn Logging

When running FastAPI app, all the logs in console are from Uvicorn and they do not have timestamp and other useful information. As Uvicorn applies python logging module, we can override Uvicorn logging formatter by applying a new logging configuration.

Meanwhile, it's able to unify the your endpoints logging with the Uvicorn logging by configuring all of them in the config file log_conf.yaml.

Before overriding:

uvicorn main:app --reload

Saodat Sadirbaeva

I have no inhibitions about making my opinions known

Download CV

Web Developer | Software Engineer | Tashkent

@prasathmani
prasathmani / upload-to-google-drive.py
Last active July 9, 2025 01:10
upload files to google drive using python
import requests
import json
from typing import Dict
# ==== CONFIGURATION ====
CLIENT_ID = '####'
CLIENT_SECRET = '####'
REFRESH_TOKEN = '####'
FOLDER_ID = '####'
UPLOAD_FILE = 'my-upload-test.zip' # Change this to your file