Python asyncio railgun
A python3.4+ asyncio library wrapper for utilzing asyncio tasks and gather(*) functionality. Library is meant to make concurrent tasks easier and safer through the use of semaphores.
Table of contents
Requirements
This library requires Python 3.6 and above.
Note: You may need to use
python3before your commands to ensure you use the correct Python path. e.g.python3 --version
python --version
-- or --
python3 --version
Installation
We recommend using PyPI to install the Slack Developer Kit for Python.
pip3 install asyncio-railgun==0.0.1
Basic Usage examples
Run
from asyncio import get_event_loop
from railgun.railgun import Railgun
from http import client
def example_call_api(host='www.google.com', url='/'):
conn = client.HTTPSConnection(host, port=443, timeout=5)
conn.request(method='GET', url=url)
response = conn.getresponse()
return response.status
rail_gun = Railgun(semaphores_count=10)
results = rail_gun.run([example_call_api(), example_call_api()])
print(results)
Run async
TBD
Repeat
TBD
Support
TBD
Contact me on christogoosen@gmail.com
Otherwise see the examples and log an issue.
Metadata
Release files for asyncio-railgun 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| asyncio-railgun-0.0.3.linux-x86_64.tar.gz | 4.8 kB | Without provenance | Details |
Release files / asyncio-railgun-0.0.3.linux-x86_64.tar.gz
| Download URL | asyncio-railgun-0.0.3.linux-x86_64.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d78454334f8657572f632f04d09915ccd6c0e6f7aaa2f4c1e31f26dfc7210246
|
|
BLAKE2b-256 checksum How to use checksums |
789174ff15979f625baa0ef056f897210d6dfcd4d17a4bfabb01ec388553768b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for asyncio-railgun 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.