asyncio socket manager
Classes extending the Client class can overload the run function to connect, subscribe and run a loop in parallel
async def run(self):
await self.connect()
await self.request("subscribe", "clinet1")
await asyncio.gather(
super().run(),
self.loop()
)
A loop function can deal with outgoing communication as long as it periodically calls self.wait
async def loop(self):
asyncio.current_task().set_name(self.__name__ + "-Transmitter")
while True:
#
await self.wait()
To expose functions to RPC calling, add their name to the white_list_functions list. To call a function running on a serer node, use self.request():
await self.request("<name of function>", *args)
To call a function running on another client, use self.broadcast():
await self.request("<subscription tag>", "<name of function>", *args)
To subscribe to a new tag, call the subscribe function:
await self.request("subscribe", "clinet1")
Metadata
Release files for aiosm 0.0.6
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 |
|---|---|---|---|---|
| aiosm-0.0.6.tar.gz | 5.4 kB | Without provenance | Details for aiosm-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiosm-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for aiosm-0.0.6-py3-none-any.whl |
Total release size: 12.0 kB
Release files / aiosm-0.0.6.tar.gz
| Download URL | aiosm-0.0.6.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7c6789fea39e068584c2bcea39f44c03c8af1502c31398d4b11b51b84c4288e
|
|
BLAKE2b-256 checksum How to use checksums |
f6a823e615e293957d7658b2b77ff2fe97f894e63d27348df3cf49e56098b9f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / aiosm-0.0.6-py3-none-any.whl
| Download URL | aiosm-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c9559a1ed50290b7ee0865d9df5a7827dc9775f87610d1a591077c7d5d0afbb
|
|
BLAKE2b-256 checksum How to use checksums |
d59ce1e6e3b03ae85fb9adca492d7847a7d52bd9db4a335415185e75c228b6c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for aiosm 0.0.6
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.