Lymph
lymph is an opinionated framework for Python services. Its features are
Discovery: pluggable service discovery (e.g. backed by ZooKeeper)
RPC: request-reply messaging (via ZeroMQ + MessagePack)
Events: pluggable and reliable pub-sub messaging (e.g. backed by RabbitMQ)
Process Management
There’s documentation on readthedocs.org.
Installation (as a dependency)
# py-monotime requires python headers, and gevent and cython require build-essential $ sudo apt-get install build-essential python-dev
$ pip install https://github.com/deliveryhero/lymph.git#egg=lymph
Development (of lymph itself)
$ git clone https://github.com/deliveryhero/lymph.git $ cd lymph $ pip install -r requirements/base2.txt -r requirements/dev.txt $ pip install -e .
Run tests with tox, build documentation with fab docs.
Running services
To run the example services, you can use the example node config in conf/sample-node.yml. You’ll also need a local installation of ZooKeeper (with the configuration provided in the Getting Started Guide) and RabbitMQ:
$ export PYTHONPATH=examples $ cp conf/sample-node.yml .lymph.yml $ lymph node
You can then discover running services:
$ lymph discover
and send requests to them from the commandline:
$ lymph request echo.upper '{"text": "transform me"}'
To see the log output of a running service, try:
$ lymph tail echo -l DEBUG
Metadata
Release files for lymph 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lymph-0.4.0.tar.gz | 56.5 kB | Details |
Release files / lymph-0.4.0.tar.gz
| Download URL | lymph-0.4.0.tar.gz |
|---|---|
| Size | 56.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d973b0cd9441a67f4aa0021f1147bae67cf2006e4f1de9a7b296d1afb2ceb61
|
|
BLAKE2b-256 checksum How to use checksums |
212d9c63679770faf1469f54cc7d62df8834f08b69c7afa85c22777d5e112167
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |