# robocorp-http
We are deprecating the `robocorp-http` -library and recommend using
[requests](https://pypi.org/project/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.
```python
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 in `robocorp` -package.
>
> Check out more under our [**Requests**](https://github.com/robocorp/robocorp/blob/master/docs/3rd_party/requests/README.md)
> 3rd-party library documentation.
Raw data
{
"_id": null,
"home_page": "https://github.com/robocorp/robocorp/",
"name": "robocorp-http",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Fabio Z.",
"author_email": "fabio@robocorp.com",
"download_url": "https://files.pythonhosted.org/packages/38/5a/2cf22ee4d01d26d248e668cdfa7203747a77347778687bceaab564a91443/robocorp_http-0.4.1.tar.gz",
"platform": null,
"description": "# robocorp-http\n\nWe are deprecating the `robocorp-http` -library and recommend using\n[requests](https://pypi.org/project/requests/) -library directly.\n\n`requests` is so widely used that just about any AI/LLM is able to provide you with the needed code so an extra wrapper\nfrom us is not needed.\n\n```python\nimport requests\n\n\ndef download_file(url, local_filename):\n response = requests.get(url)\n response.raise_for_status() # this will raise an exception if the request fails\n with open(local_filename, 'wb') as stream:\n stream.write(response.content) # write the content of the response to a file\n return local_filename\n```\n\n> Note: `requests` -library is already included in `robocorp` -package.\n> \n> Check out more under our [**Requests**](https://github.com/robocorp/robocorp/blob/master/docs/3rd_party/requests/README.md)\n> 3rd-party library documentation. \n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Robocorp HTTP library",
"version": "0.4.1",
"project_urls": {
"Homepage": "https://github.com/robocorp/robocorp/",
"Repository": "https://github.com/robocorp/robocorp/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6e5bc339a0e32f968e705c930d5f4683a3756ea26ad00e32501976884e9b96df",
"md5": "9970eb8678e8b5562f76640a5a2d0dc8",
"sha256": "0d83aaa67da3b36a43aa1e03dc2a7a448575e17b1dbaff896eae165add0cf55d"
},
"downloads": -1,
"filename": "robocorp_http-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9970eb8678e8b5562f76640a5a2d0dc8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 3096,
"upload_time": "2024-01-12T18:07:49",
"upload_time_iso_8601": "2024-01-12T18:07:49.640614Z",
"url": "https://files.pythonhosted.org/packages/6e/5b/c339a0e32f968e705c930d5f4683a3756ea26ad00e32501976884e9b96df/robocorp_http-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "385a2cf22ee4d01d26d248e668cdfa7203747a77347778687bceaab564a91443",
"md5": "e680d86ca5317713f6f4fed917c11544",
"sha256": "c16ca123201d08cc7684b7f2e3dc6208505d2ae0ff240b285a07d37399daaa95"
},
"downloads": -1,
"filename": "robocorp_http-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "e680d86ca5317713f6f4fed917c11544",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 2445,
"upload_time": "2024-01-12T18:07:51",
"upload_time_iso_8601": "2024-01-12T18:07:51.348992Z",
"url": "https://files.pythonhosted.org/packages/38/5a/2cf22ee4d01d26d248e668cdfa7203747a77347778687bceaab564a91443/robocorp_http-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-12 18:07:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "robocorp",
"github_project": "robocorp",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "robocorp-http"
}