Closed RafaelWO closed 10 months ago
This PR enables users to create requests to different URLs in one call to up(). This is done by
up()
paths
urls
base_url
base_url, paths, method
urls, method, base_url
This is a breaking change! 💣
While you still can use Unparallel to make requests to one service
base_url = "https://httpbin.org" paths = [f"/get?i={i}" for i in range(5)] results = await up(paths, base_url=base_url)
you can now make requests to various URLs
urls = [ "https://httpbin.org/get?i=42", "https://petstore.swagger.io/v2/pet/findByStatus?status=available", "https://api.coindesk.com/v1/bpi/currentprice.json" ] results = await up(urls)
Additionally, this PR includes a fix for the docs CI to also run on tags.
Closes #99
CODE_OF_CONDUCT.md
CONTRIBUTING.md
make codestyle
Description
This PR enables users to create requests to different URLs in one call to
up()
. This is done bypaths
->urls
,base_url
optional, andup()
:base_url, paths, method
->urls, method, base_url
.This is a breaking change! 💣
While you still can use Unparallel to make requests to one service
you can now make requests to various URLs
Additionally, this PR includes a fix for the docs CI to also run on tags.
Related Issue
Closes #99
Type of Change
Checklist
CODE_OF_CONDUCT.md
document.CONTRIBUTING.md
guide.make codestyle
.