Skip to main content

Python interface to Serf

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Serfio: Python client for Serf

License

serfio is a Python asyncio client for Serf. The goal was to create client with zero or minimal dependencies. It allows to use it with Debian 12 (Bookworm) without installing any additional packages, besides python3 and python3-msgpack. As far as I know, this eliminates licensing and security concerns, relieving my headaches.

serfio implements all Serf RPC commands. It includes streams implemented as async iterators (everything is implemented as an async iterator 🧐). That was another goal: to make easy to use interface. At this stage of development is very straightforward and simple, and might not change in future.

serfio is under development, it is not yet tested in production. It was tested with Serf 0.8.2. For more mature client see alternatives.

Installation

PyPi: https://pypi.org/project/serfio/

pip install serfio

Usage

import asyncio
import serfio

async def main():
    async with serfio.Serf() as serf:
        response = await serf.members()
    print(response)

Development

direnv allow .
pipenv install --dev
make lint
make test

Prerequisites:

Reference

Serf:

Alternatives

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serfio-0.3.1.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

serfio-0.3.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file serfio-0.3.1.tar.gz.

File metadata

  • Download URL: serfio-0.3.1.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for serfio-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0eca07073f263928baaee6abec0aaded6551256b09c599e6b34d55b6e80698fb
MD5 8eb7142adc822a3d1560d9edf70f0df0
BLAKE2b-256 61536fe11cc4d2f2db82747859ec1e85309802a66f9d5071e4f0a660c723cd70

See more details on using hashes here.

File details

Details for the file serfio-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: serfio-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for serfio-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8a218821474c62da71d2137a8ea981799a5e4f2fbf487015e02fb08c0ef2c41f
MD5 edbfa1972b793a98e6516b709d6454cb
BLAKE2b-256 bec0ba1b23032f1251d9b96bafdd572195cb3fbdd0e6dc6bd8b3350ea9aa9a54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page