A tiny tool using script for schema to schedule one day and remind you to do something during a day.
Project description
Schemdule
Schemdule is a tiny tool using script for schema to schedule one day and remind you to do something during a day.
- Platform
- Python
Usage
$ pip install schemdule
Write a Schema
It's a pure python script, so you can use any python statement in it.
Schemdule provide at
and cycle
functions for registering events.
# time_str can be {hh:mm} or {hh:mm:ss}
def at(time_str: str, message: str):
# register an event at time with message
...
def cycle(start_str: str, end_str: str, work_duration_str: str, rest_duration_str: str, message: str):
# register a series of events in cycle during start to end
# the duration of one cycle = work_duration + rest_duration
# For each cycle, register 3 event: cycle starting, cycle resting, cycle ending
...
An example schema.
# Type annotions
from typing import Callable
at: Callable[[str, str], None]
cycle: Callable[[str, str, str, str, str], None]
# Schema
at("6:30", "Get up")
cycle("8:00", "12:00", "00:30:00", "00:10:00", "Working")
Run
$ schemdule --schema schema.py
$ python -m schemdule --schema schema.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
schemdule-0.0.2.tar.gz
(10.4 kB
view hashes)
Built Distribution
schemdule-0.0.2-py3-none-any.whl
(11.2 kB
view hashes)
Close
Hashes for schemdule-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78c4ba4ade3c71b07f308492cac404e443fd4bd40c11887193c5ec182748766 |
|
MD5 | df340692a3c4de16edba839169222b89 |
|
BLAKE2b-256 | 3a53021b67ca0b3eedba55fa1c364e958788e16ba6a85dfd42f4e0ffdd1adaf8 |