Syncio is inspired by asyncio. you can easy to create task and gather with syncio.gather() (multiprocessing) or syncio.thread_gather() (threading).
Example
from syncio import create_task, gather
def hello(n: int) -> str:
return f"hello {n + 1}"
tasks = [create_task(hello)(i) for i in range(3)]
results = gather(*tasks)
print("output task_1:", results["task_1"])
print("output task_2:", results["task_2"])
print("output task_3:", results["task_3"])
# or using iterator
for result in results:
print(result)
author: guangrei.
Metadata
Release files for syncio 0.0.4
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 | |
|---|---|---|---|---|
| syncio-0.0.4.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| syncio-0.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 6.8 kB
Release files / syncio-0.0.4.tar.gz
| Download URL | syncio-0.0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
853e422e30669e0f82ba02ebdb8905e932e50fe59414ec2e015e9568bc752d8f
|
|
BLAKE2b-256 checksum How to use checksums |
ad37abe579268da27d827c4e7bd35413eb7fafdb81579bfb0e00e9d7ef4bc11d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / syncio-0.0.4-py2.py3-none-any.whl
| Download URL | syncio-0.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
be6bd5fb07d998bd9f46da92f921d7adb9e4769052f9d1c6501c6f0d93718b11
|
|
BLAKE2b-256 checksum How to use checksums |
8ab9b31a4c0f32957f5f585ab1894727c96c078493c6bb3917b49addbba4ab2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for syncio 0.0.4
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.