with open(file_path, 'rb') as file:
    buff = bytearray(os.path.getsize(file_path))
file.readinto(buff)
resp = Resp(buff)
r = self.build_response(request, resp)
return r

def send(self, request, stream=False, timeout=None, verify=True, cert=None,
    proxies=None):
    return self.build_response_from_file(request)
requests_session = requests.session()
requests_session.mount('file://', LocalFileAdapter())
requests_session.get('file://<some_local_path>')
Python requests fetch a file from a local url