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/dev.txt
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.13.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.13.0.tar.gz | 61.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lymph-0.13.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 156.7 kB
Release files / lymph-0.13.0.tar.gz
| Download URL | lymph-0.13.0.tar.gz |
|---|---|
| Size | 61.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32bd47e534c16afb112769604ade871ed1a2de99964f0c9800906310b2fa0e90
|
|
BLAKE2b-256 checksum How to use checksums |
fb8d04e9443d88012aecb8bacce140370c4e5aacd96a086d7fbc32c342e02242
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lymph-0.13.0-py2.py3-none-any.whl
| Download URL | lymph-0.13.0-py2.py3-none-any.whl |
|---|---|
| Size | 95.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
64277356664fd98e3fbc2d472e00f0bdc396e91ead504aa230895048c6e991c9
|
|
BLAKE2b-256 checksum How to use checksums |
673a6cb770ba42db57128fc5fea98da353b8ac52f93c12994dac9f581e5998e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |