Light weight job scheduling tool with more performance and scalability.
Project description
## Marius
--------
Light weight job scheduling tool with more performance and scalability.<br/>
Name come from [Gaius Marius](https://en.wikipedia.org/wiki/Gaius_Marius)
### Installation
```shell
pip install marius
```
### Usage Example
```python
import time
from marius import Task, TimeLine
def func(num):
print('task-{0}'.format(num))
if __name__ == '__main__':
tl = TimeLine()
now = time.time()
tl.add(Task(iter([now + i for i in [2, 3, 5]]), func, 3))
while tl.has_tasks():
tl.wait_next()
tl.run()
else:
print("all job run over")
```
### TODO
1. add automatic test support
2. add more helper function
3. add doc
### Welcome to contribute
Feel free to open a issue or start a pull request. <br/>
You are welcome.
--------
Light weight job scheduling tool with more performance and scalability.<br/>
Name come from [Gaius Marius](https://en.wikipedia.org/wiki/Gaius_Marius)
### Installation
```shell
pip install marius
```
### Usage Example
```python
import time
from marius import Task, TimeLine
def func(num):
print('task-{0}'.format(num))
if __name__ == '__main__':
tl = TimeLine()
now = time.time()
tl.add(Task(iter([now + i for i in [2, 3, 5]]), func, 3))
while tl.has_tasks():
tl.wait_next()
tl.run()
else:
print("all job run over")
```
### TODO
1. add automatic test support
2. add more helper function
3. add doc
### Welcome to contribute
Feel free to open a issue or start a pull request. <br/>
You are welcome.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
marius-0.1.2-py3.6.egg
(9.0 kB
view hashes)
marius-0.1.2-py3-none-any.whl
(5.7 kB
view hashes)
marius-0.1.2-py2.7.egg
(8.3 kB
view hashes)
Close
Hashes for marius-0.1.2.macosx-10.13-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1a2a10a86f2680d56a9819616c34aba277dadd6f419fd6cf536f025082fdf6d |
|
MD5 | 24de7ba0fd873ade0ce7d621372458bc |
|
BLAKE2b-256 | 3b60626582e25b1281a06b5faf8b4998f981d76dfd40518be024683d876fb30f |