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.2.3.tar.gz (26.7 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.2.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for serfio-0.2.3.tar.gz
Algorithm Hash digest
SHA256 e2946804751d19687c841f9bea7ca76b0bccee7c0bb47bebef603dfc92e5f247
MD5 32e9ca9e4a06c5e8187943e4bf09d5dd
BLAKE2b-256 4f48ded341f7f460c8db9d62cddbec99bbcdd50c0d4e2eb035af104fce2f8f41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: serfio-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb783709f633937e0684173313b8b78dd08903faa87674b6ee6852d9e6f66383
MD5 1defa458f9dab81aa9af405c8280152c
BLAKE2b-256 8b6acde1fa78fae640ae5586409a3110cb4fc57e58143adceae3a47048034496

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