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
marius-0.1.3.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file marius-0.1.3.tar.gz.
File metadata
- Download URL: marius-0.1.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa0972762691283f86d2ae965024260c7f0a080694c2baa173c7b378f7d7c264
|
|
| MD5 |
adff7a1df8e5d4bdb32d220c625fc76d
|
|
| BLAKE2b-256 |
e270fe2f07513aafdbe46f1cc2913c09f0e702a4ab48d2c032a08368a0cb2bff
|
File details
Details for the file marius-0.1.3-py3-none-any.whl.
File metadata
- Download URL: marius-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
342ced7462585d451dc0073602cac3c77f0a080403f84eaf592529412fcb2cb7
|
|
| MD5 |
8a5f707af51154d202597826ca57e3c8
|
|
| BLAKE2b-256 |
c46e93a026bc33405e8c4760f7c90ec7cfc9da204fbebc25834fab8e34c58674
|