Python

MS SQL Backup with Python and pyodbc

Hello readers, i have been in a situation where i wanted to take backup from a MS SQL database through the network and i didnt have any clue about it, so is started digging the internet for a solution, which came up quickly at “ryan’s tech blog” link on how to actually take the backup, […]

MS SQL Backup with Python and pyodbc Read More »

Get remote user’s IP address using Flask

This is a simple function to get remote user’s IP address using Flask’s request_object. It is very simple and takes a lot of tweaks, like reading also the X-Forwarded-For field from received header for users who use proxies. dependencies: from flask import request function: def get_ip(): # get creative here! return request.remote_addr

Get remote user’s IP address using Flask Read More »

Scroll to Top