Robocorp HTTP library
Project description
robocorp-http
We are deprecating the robocorp-http
-library and recommend using
requests -library directly.
requests
is so widely used that just about any AI/LLM is able to provide you with the needed code so an extra wrapper
from us is not needed.
import requests
def download_file(url, local_filename):
response = requests.get(url)
response.raise_for_status() # this will raise an exception if the request fails
with open(local_filename, 'wb') as stream:
stream.write(response.content) # write the content of the response to a file
return local_filename
Note:
requests
-library is already included inrobocorp
-package.Check out more under our Requests 3rd-party library documentation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
robocorp_http-0.4.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for robocorp_http-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d83aaa67da3b36a43aa1e03dc2a7a448575e17b1dbaff896eae165add0cf55d |
|
MD5 | 9970eb8678e8b5562f76640a5a2d0dc8 |
|
BLAKE2b-256 | 6e5bc339a0e32f968e705c930d5f4683a3756ea26ad00e32501976884e9b96df |