Skip to main content

serfclient

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

Metadata

Release files for serfclient 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serfclient 1.2.0
File Size Uploaded
serfclient-1.2.0.tar.gz 5.4 kB Details

Release files / serfclient-1.2.0.tar.gz

Download URL serfclient-1.2.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2aaa3d1dba4262e226d3e691f8f6af1da1f3a30c129013edfdf69b0af7a61a37
BLAKE2b-256 checksum
How to use checksums
a7b3d06400fe56b9a4d9d3e13c84c2c030d813241a3ab40aa6776fac2f383f75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.2

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page