Skip to main content

A small example package

Project description

parallel_requests

Perfomance

See benchmarks

Usage

POST HTTP request usage:

>>> import parallel_requests
>>> from typing import List
>>>
>>>
>>> responses: parallel_requests.ListResponse = parallel_requests.post(
>>>     method_args=[{"url": "https://www.python.org"}],
>>>     max_workers=10
>>> )
>>> responses
[<Response [200]>]

GET HTTP request usage

>>> import parallel_requests
>>> from typing import List
>>>
>>>
>>> responses: parallel_requests.ListResponse = parallel_requests.get(
>>>     method_args=[{"url": "https://www.python.org"}],
>>>     max_workers=10
>>> )
>>> responses
[<Response [200]>]

request function usage:

>>> import parallel_requests
>>> from typing import List
>>>
>>>
>>> responses: parallel_requests.ListResponse = parallel_requests.request(
>>>     method_args=[{"url": "https://www.python.org", "method": "post"}],
>>>     max_workers=10
>>> )
>>> responses
[<Response [200]>]

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

parallel_requests-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

parallel_requests-0.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file parallel_requests-0.0.1.tar.gz.

File metadata

  • Download URL: parallel_requests-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0

File hashes

Hashes for parallel_requests-0.0.1.tar.gz
Algorithm Hash digest
SHA256 006c3bae122f8d77bc55946c08306e0a969ca1a1666b711ba8adce7e560bdb0a
MD5 1c48ddf39c94785347959dc37c93be10
BLAKE2b-256 453f66d3d1e654d419b8145d766d96c8b14bbc0026b7880b5a41f625abf677d6

See more details on using hashes here.

File details

Details for the file parallel_requests-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: parallel_requests-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0

File hashes

Hashes for parallel_requests-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c6a491395a8d819f83244056792b87d49a171f3a24f3a9792da854159155341
MD5 4a3eebc785f394b1ca4d5fa827404827
BLAKE2b-256 c41e62138999c6bb44aaf3c7810ffd38c9d38c95540387ec6d4605b0b004f067

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page