Framework for client-side load-balancing for inter-process communication between cloud services.
It is inspired in large part by Netflix’s Ribbon for java.
How to Use
In its most basic form, you can create a balast.Service with a static list of servers:
>>> import balast
>>> my_service = balast.Service(['127.0.0.1', '127.0.0.2'])
Now, just use it as you would use the requests package:
>>> response = my_service.get('/v1/path/to/resource')
<Response[200]>
NOTE: at this point in time, only the basic api features from the requests package are supported.
Metadata
Release files for balast 0.2.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 | |
|---|---|---|---|
| balast-0.2.0.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| balast-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 30.8 kB
Release files / balast-0.2.0.tar.gz
| Download URL | balast-0.2.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab8b784abbc01baf2a35d4e43a058eae6d0785c698f36f7dabdc68f24988436a
|
|
BLAKE2b-256 checksum How to use checksums |
185f3663ae0639f86e880cdd00e9ef6e5ee0f252927817e669f36e0e734a299b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / balast-0.2.0-py2.py3-none-any.whl
| Download URL | balast-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
46826892ecb90e890565db5e582844feeeb7ffad56f9fb706c92b66f36404d5a
|
|
BLAKE2b-256 checksum How to use checksums |
f2e2cef008bf9e9f899d9e48710bb537c33a53c5d7c586a3be78edef2a2de3cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |