Skip to main content

MultiGather

You can install package by:

pip install MultiGather

Simple example for POST:

import asyncio
from MultiGather.Client import Connection
from MultiGather.Types import Config, Request

# Replace with the actual URL for your POST endpoint.
url = "https://your-api-endpoint/posts"

# Replace with the data you want to send in the POST request
data = {"title": "New Post", "body": "This is a sample post content", "userId": 1}

async def main():
    client = Connection(Config(timeout=10))  # Set timeout to 10 seconds (optional)

    # Prepare a POST request object
    post_request = Request(method="POST", url=url, json=data, amount=5) ## gonna send 5 requests

    # Send the requests asynchronously and collect responses
    responses = await client.sendRequest(post_request)

    # Print the status code for each response
    for response in responses:
        print(f"POST response status: {response.status}")

asyncio.run(main())

Simple example for GET:

import asyncio
from MultiGather.Client import Connection
from MultiGather.Types import Config, Request

# Replace with the actual URL for your GET endpoint.
url = "https://your-api-endpoint/posts"

async def main():
    client = Connection(Config(timeout=10))  # Set timeout to 10 seconds (optional)

    # Prepare a GET request object
    get_request = Request(method="GET", url=url, amount=5) # send 5 requests.

    # Send the requests asynchronously and collect responses
    responses = await client.sendRequest(get_request)

    # Print the status code for each response
    for response in responses:
        print(f"GET response status: {response.status}")

asyncio.run(main())

Metadata

Release files for MultiGather 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MultiGather 0.0.8
File Size Uploaded
multigather-0.0.8.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MultiGather 0.0.8
File Interpreter ABI Platform
MultiGather-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 kB

Release files / multigather-0.0.8.tar.gz

Download URL multigather-0.0.8.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
96b49078f6b04934ae799d8047b57e9c962c78c54a33e4aabc2ee035c2070e2c
BLAKE2b-256 checksum
How to use checksums
5854b902d0e5c606a81fa9af95a7e09523ee0fcf743c353b5486ae6ca50666e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.0

Release files / MultiGather-0.0.8-py3-none-any.whl

Download URL MultiGather-0.0.8-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9321e0eab61595cc5199e9c58484a97060139fc85ee9fcf3041b99778a717f1
BLAKE2b-256 checksum
How to use checksums
db8730a6efb071ec2b7557f9615ab413e9a8da7c1e6d7f53d685c75b65dcd1bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.8.0

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page