Long Lasting Mesos freshness for Python
The main goal is to provide a low-complexity and feature rich support for pure python Mesos Frameworks, but also to learn things.
There be dragons
mentos is still quite experimental right now. No production frameworks have been built using it.
Notable Features
Pure python so no C++ meddling
Full featured Zookeeper and Redirect based Master detection
Dict based for simplicity
Task scheduling should be quite fast due to the asynchronous nature of the networking engine
Nice policy based reconnect and retry system
Fancy Testing and Development enviroment based on docker-compose
Install
Not on pypi right now. Install from this repository.
Tested Python Versions: - 2.7 - 3.5 - 3.6
Requirements: - Mesos > 0.28 - Zookeeper
Development
Run docker-compose up to get a working instalation of Mesos going.
Requirements: - docker - docker-compose > 1.6.0
Examples
An example Mesos Scheduler and Executor can be found in the examples folder. It runs one task and then starts declining offers. The Task basically transmits and prints a message. Excuse the magic.
Tests
[x] utils
[x] states
[x] interface
[x] retry
[x] exceptions
[x] connection
[x] subscription
[x] executor
[x] scheduler
Documentation
Not there yet
Outlook
The long term goal is for this to serve as a base for Satyr and other more high level Python based frameworks.
Acknowledgements
This has been heavily based on zoonado and was influenced by Satyr and PyMesos and shares some utility code with both. The RecordIO format parsing was lifted from mrocklins gist.
Release files for mentos 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mentos-0.1.8.tar.gz | 15.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mentos-0.1.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 37.6 kB
Release files / mentos-0.1.8.tar.gz
| Download URL | mentos-0.1.8.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b19b8290376424cec5d74ef79ef4b1ff156a1da5640c920fc44e114d2ccc3fd
|
|
BLAKE2b-256 checksum How to use checksums |
db0ac897bea7f97ad3679ce029b6696f6215452812c39c60039e9a1ef1611a33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mentos-0.1.8-py2.py3-none-any.whl
| Download URL | mentos-0.1.8-py2.py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f4040fa5194b4f20cd96b2dd54de84bb5c8ff38060c2b1630b526ba32733b328
|
|
BLAKE2b-256 checksum How to use checksums |
17f9f1c4a950941dcbf0cf45c9052e186a474b7d9c4035a3b98967c703945543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |