Skip to main content

my clock

Project description

version: 0.2.0

MyClock is a simple and “programmable” clock program.

Build Status

Usage

my_clock [options] [times]

where [times] is a list of syntax of {num}s, {num}m, {num}h or {num}.

MyClock program spends 60 * 60 * h + 60 * m + s times and notice by popup.

How to install

% pip install my_clock

or

% python setup.py install

at root directory of this project.

Requirements

Options

  • –version: show program’s version number and exit

  • -h, –help: show this help message and exit

  • -V, –verbose: verbose

  • -g MESSAGE, –message=MESSAGE: set message string default: “MyClock”

  • -t TITLE, –title=TITLE: set title string. default: “MyClock”

  • -o, –log: out log to stdout

  • -r, –ring-bell: ring bell or not after timer

  • -b BELL_SOUND, –bell-sound BELL_SOUND: mp3 file of bell_sound

  • –bgm, –play-bgm: play bgm

  • –bgm-sound BGM_FILENAME: bgm music

  • –terminal_notify_options TERMINAL_NOTIFY_OPTIONS: options of terminal notify

  • hide-popup: don’t show popup

  • -T TASK, –task=TASK: set task string default: “default”

  • -f {filename}, –conf-file {filename}: set configure filename string default: “~/.clock.json”

  • -l, –list: show task names

About Configure File

You can define configure in configure file for json5 format. Default configure file path is ~/.clock.json. You can change configure file path by –conf-file option.

For example,

{
  "default": {
    "title": "MyTitle",
    "message": "MyMessage",
    "time": ["3s"]
  },

  "pomodoro-job": {
    "title": "Pomodoro Job",
    "message": "finished",
    "time": ["25m"]
  },
  "pomodoro-rest": {
    "title": "Pomodoro Rest",
    "message": "Rest is finished",
    "time": ["5m"]
  }
}

LICENSE

MIT

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

my_clock-0.2.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

my_clock-0.2.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file my_clock-0.2.0.tar.gz.

File metadata

  • Download URL: my_clock-0.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for my_clock-0.2.0.tar.gz
Algorithm Hash digest
SHA256 699306ad80be22a9064bdbf3ed9175ad53b13e08d290d928135e23e4d411cba0
MD5 114c515011ca29157b0bc19cf325193f
BLAKE2b-256 e502f3bd5a800eb0fdaeed4c3670ad0cb18f8f4ecbaa340110790615ee8b85d0

See more details on using hashes here.

File details

Details for the file my_clock-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for my_clock-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e135f0d25381b46f3b690c0ebc287d804ab6d84359f1ca4914e060da1a4c9308
MD5 483c49cc3b80ce5319b487f85f76ef17
BLAKE2b-256 5a5afe8d82d8aba48b42ac66555defc5dfa4df677ac1de2a3791d86ae1861c0b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page