Concurrentor
A simple wrapper class around anyio to help create programs that contain multiple concurrent but interacting parts.
Usage
from anyio import sleep
from concurrentor import Concurrentor, enter, loop, exit
class Application(Concurrentor):
@enter
async def run_once_at_enter(self):
print("I run only once at the beginning.")
@exit
async def run_once_at_exit(self):
print("I run only once at the end.")
@loop
async def run_repeatedly_one(self):
print("I am called repeatedly.")
await sleep(2)
@loop
async def run_repeatedly_two(self):
print("I am called repeatedly, too.")
await sleep(3)
if __name__ == "__main__":
app = Application()
app.run()
Metadata
Release files for concurrentor 0.1.1
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 | Actions |
|---|---|---|---|---|
| concurrentor-0.1.1.tar.gz | 2.7 kB | Without provenance | Details for concurrentor-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| concurrentor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for concurrentor-0.1.1-py3-none-any.whl |
Total release size: 4.9 kB
Release files / concurrentor-0.1.1.tar.gz
| Download URL | concurrentor-0.1.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8867edde9649f24e83c29ebae65f6be8dd1ddeb341678e2d7f34d3bb07880961
|
|
BLAKE2b-256 checksum How to use checksums |
f23d52c8ac0a8b955ce7499dd4a60818194d697d481bbf76de41e6c617236580
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.16
|
Release files / concurrentor-0.1.1-py3-none-any.whl
| Download URL | concurrentor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1d92209a01f996911684c41701118abc38f7034b539c8956f82172a19dc49d5
|
|
BLAKE2b-256 checksum How to use checksums |
7853439cbfabdf95e6b932cbc52acabba70e0f35da260cc222b2a44e989f2939
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.16
|
Security for concurrentor 0.1.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.