Skip to content

bogdan-zs/requests-thread-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

requests-thread-pool

Parallel sync requests.

Example

with RequestPoolExecutor(
    max_workers=100,
    default_args={'method': 'GET', 'url': 'https://httpbin.org/get', 'params': {'a': 1}}
) as executor:
    for _ in range(100):
        executor.push(
            on_success=lambda res: print(res.text),
            on_error=lambda err: print(err),
            params={'a': 123}
        )

About

Parallel sync requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages