AioSerf is an async Python interface to Serf, the decentralised solution for service discovery and orchestration.
It uses anyio <https://github.com/agronholm/anyio>, thus should work with asyncio, trio, and curio. Hopefully.
Installation
aioserf requires a running Serf agent. See Serf’s agent documentation for instructions.
To install aioserf, run the following command:
$ pip install aioserf
or alternatively (you really should be using pip though):
$ easy_install aioserf
or from source:
$ python setup.py install
Getting Started
These examples require a running async loop. Trio <https://github.com/python-trio/trio> is recommended, though asyncio works too.
from aioserf import serf_client
async with serf_client() as client:
await client.event('foo', 'bar')
Stream usage:
from aioserf import serf_client
async with serf_client() as client:
async with client.stream('*') as stream:
async for resp in stream:
print(resp)
Development
aioserf requires a running Serf agent. See Serf’s agent documentation for instructions.
You can run the tests using the following commands:
$ serf agent --tag foo=bar & # start serf agent
$ python3 -mpytest tests
Metadata
Release files for aioserf 0.3.3.post3
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 |
|---|---|---|---|---|
| aioserf-0.3.3.post3.tar.gz | 30.0 kB | Without provenance | Details for aioserf-0.3.3.post3.tar.gz |
Release files / aioserf-0.3.3.post3.tar.gz
| Download URL | aioserf-0.3.3.post3.tar.gz |
|---|---|
| Size | 30.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54267f3c0ceb2a3c214fc9a2fcc1a7c3b9bfdc44307dce57e1bd76534c28fdd9
|
|
BLAKE2b-256 checksum How to use checksums |
fdcc6794626a150cec9a6e27796bb761f7ab59e10b3916c02cfe40251dbf5767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|
Security for aioserf 0.3.3.post3
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.