Skip to main content

Simple api collector

Project description


Modifided aiohttp.ClientSession. More Safety.


pip install pyllector 


from pyllector import ApiCollector
from models import HttpMethod, ContentType

import asyncio

async def main():
    api = ApiCollector('', main_params={'some_api_key': 'some...'})
    data = await api.push('some_api_method',
                        params={'some_method_param': 'some_value'},
    print(data['some keys'])

ApiCollector check allmost http errors, and repeat request limit times until he gets response, or will return None else limit is 0.

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

pyllector- (2.6 kB view hashes)

Uploaded source

Built Distribution

pyllector- (3.0 kB view hashes)

Uploaded py3

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