python cli digital clock.
Project description
pyoklock
python cli clock. Display digital clock on terminal.
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
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
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
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
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
Special thanks to
- python prompt-toolkit : pyoklock made by this cli tools.
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.
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 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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffcf507864f0bab58466b534c4a58b674d35826af3468ef4798fcef7e856b7cc
|
|
| MD5 |
ce6d4a5723d74d4c683b6d8cfa78bb99
|
|
| BLAKE2b-256 |
f6a22bdb32350d166597c1d4fe906238cc7f51f4d5a0a5139d64c22a1375bf2e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ccf5a4ccab6cd583d8e82d9c02f0491f7cb8c0450a4647df0e38a4684a5837
|
|
| MD5 |
352186b26c0ba51080d6d69e537cd4a4
|
|
| BLAKE2b-256 |
6cd8d5f42fed8e886a23790296e5e7ff327b87ddd270b7564ce0b5b1be4f24a0
|