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 asyncio 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.0.tar.gz (17.8 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.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: serfio-0.2.0.tar.gz
  • Upload date:
  • Size: 17.8 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.0.tar.gz
Algorithm Hash digest
SHA256 a3eb9fe80bcbdac2829e243ecb65b71e52412092d5281ed7be34d21701d13b91
MD5 0f4dfa383fd7a2b48dbf0f3b6f8b9f17
BLAKE2b-256 61111a0181cb7240dffdde7a9fd0e23931c06ed8c78e531352aba926955eb870

See more details on using hashes here.

File details

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

File metadata

  • Download URL: serfio-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cc37f84e4d55c8602eb36a7022aea41c4f47efb2d6486a287adedb2166f9052
MD5 7317843eb1a17098e49f7967285d2876
BLAKE2b-256 48a0ba16f154892f2636fabe08ef99c5c3011ffb05c4da81b52551a1e439d1f4

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