Metadata-Version: 2.1
Name: pyllector
Version: 0.0.5
Summary: Simple api collector
Home-page: https://github.com/KolesniCow/pyllector
Author: Billy Dumplington
Author-email: feedfeed369@gmail.com
Project-URL: Bug Tracker, https://github.com/KolesniCow/pyllector/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown

## pyllector
Modifided aiohttp.ClientSession. More Safety.

## Instalation

```Bash
pip install pyllector 
```

## Example

```Python
from pyllector import ApiCollector
from models import HttpMethod, ContentType

import asyncio


async def main():
    api = ApiCollector('https://some-api.com/v2/', main_params={'some_api_key': 'some...'})
    data = await api.push('some_api_method',
                        content_type=ContentType.JSON,
                        http_method=HttpMethod.POST,
                        params={'some_method_param': 'some_value'},
                        )
    print(data['some keys'])


asyncio.run(main())

```

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