Skip to main content
Help us improve Python packaging – donate today!

Python client for the Serf orchestration tool

Project Description

The Python interface to Serf, the decentralised solution for service discovery and orchestration.

Travis-CI badge Gemnasium badge PyPI latest version badge Code coverage badge

Installation

serfclient requires a running Serf agent. See Serf’s agent documentation for instructions.

To install serfclient, run the following command:

$ pip install serfclient

or alternatively (you really should be using pip though):

$ easy_install serfclient

or from source:

$ python setup.py install

Getting Started

from contextlib import closing
from serfclient.client import SerfClient

with closing(SerfClient()) as client:
    client.event('foo', 'bar')

Stream usage:

from contextlib import closing
from serfclient.client import SerfClient

with closing(SerfClient(timeout=None)) as client:
    for response in client.stream('*').body:
        print(response)

Development

serfclient 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
$ python setup.py test

Release history Release notifications

This version
History Node

1.2.0

History Node

1.1.0

History Node

1.0.0

History Node

0.7.1

History Node

0.7.0

History Node

0.6.0

History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
serfclient-1.2.0.tar.gz (5.4 kB) Copy SHA256 hash SHA256 Source None Jan 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page