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 ballast.Service with a static list of servers:
>>> import ballast
>>> my_service = ballast.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.
For advanced usage, checkout the docs
Metadata
Release files for ballast 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 | |
|---|---|---|---|
| ballast-0.4.0.tar.gz | 18.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ballast-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 37.6 kB
Release files / ballast-0.4.0.tar.gz
| Download URL | ballast-0.4.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c72569306b3ec8198d8de49a21ecc63f02f97081f3dc4191147e24367d017a4d
|
|
BLAKE2b-256 checksum How to use checksums |
ed4b3f08620341f1f2a802634b3a663d8dd66d85ba9aaf09e8f4beb80ec60ed6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ballast-0.4.0-py2.py3-none-any.whl
| Download URL | ballast-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
20c4d8a7831dffa8a6f7e924dc7132660df46ac80fd1de26f5ff597d2aa4ee6d
|
|
BLAKE2b-256 checksum How to use checksums |
2b463f7ce2584a8a76205925c22c382a733096af89ee1773bffab0eb00db11d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |