Skip to main content

pyoklock

python cli clock. Display digital clock on terminal.

screenshot

Usage

install

# require ptk 3.x : https://github.com/prompt-toolkit/python-prompt-toolkit
pip install pyoklock

args: second

If you want display second, add -s or --second to the argument.

pyoklock -s

args: frame

If you want display clock frame, add -f or --frame to the argument.

pyoklock -f

screenshot

args: google_calender

If you want display Google Calender's moost recent event, add -g or --google_calender to the argument. To use this args, you must get Google API OAuth Client credentails. If you got credentails, put it at ~/.pyoklock/ with the name credentails.json

OAuth Client credentails from: https://console.cloud.google.com/

mkdir ~/.pyoklock
mv [[your credentail path]] ~/.pyoklock/credentials.json

Then run pyoklock.

pyoklock -g

screenshot

If you want to delete the cache, remove ~/.pyoklock/token.pickle.

print event num

If you want to limit the number of events, using --events args.
for example:

pyoklock -g --events 5

event today only

If you want to put event of today only, using -t or --today args.
for example:

pyoklock -g -t --events 10

change the color

If you want to change the color according to the time, using -c or --color args. It's function for alert.

  • google calender events
    • 5 minutes ago: Red
    • within 15 minutes: Green

screenshot

args: model

If you want to change clock size, add --model to the argument.
Selectable numbers are {0,1,2}. default is 1.
for example:

pyoklock -f -s --model 0

screenshot

change digit character

If you want to change clock's character, set $PYOKLOCK_BACK_CHAR or $PYOKLOCK_DIGIT_CHAR to OS environment.
for example:

export PYOKLOCK_BACK_CHAR="@"
export PYOKLOCK_DIGIT_CHAR=" "
pyoklock -s

screenshot

Special thanks to

License

This software is released under the MIT License, see LICENSE.txt.

Why PyOkLock?

python clock. -> pyoklock
This is the same way as the artist " ONE OK ROCK " I respect.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyoklock-0.0.6.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyoklock-0.0.6-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file pyoklock-0.0.6.tar.gz.

File metadata

  • Download URL: pyoklock-0.0.6.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for pyoklock-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ffcf507864f0bab58466b534c4a58b674d35826af3468ef4798fcef7e856b7cc
MD5 ce6d4a5723d74d4c683b6d8cfa78bb99
BLAKE2b-256 f6a22bdb32350d166597c1d4fe906238cc7f51f4d5a0a5139d64c22a1375bf2e

See more details on using hashes here.

File details

Details for the file pyoklock-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pyoklock-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for pyoklock-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 67ccf5a4ccab6cd583d8e82d9c02f0491f7cb8c0450a4647df0e38a4684a5837
MD5 352186b26c0ba51080d6d69e537cd4a4
BLAKE2b-256 6cd8d5f42fed8e886a23790296e5e7ff327b87ddd270b7564ce0b5b1be4f24a0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.1

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page