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.
Metadata
Release files for pyoklock 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyoklock-0.0.6.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyoklock-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / pyoklock-0.0.6.tar.gz
| Download URL | pyoklock-0.0.6.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcf507864f0bab58466b534c4a58b674d35826af3468ef4798fcef7e856b7cc
|
|
BLAKE2b-256 checksum How to use checksums |
f6a22bdb32350d166597c1d4fe906238cc7f51f4d5a0a5139d64c22a1375bf2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyoklock-0.0.6-py3-none-any.whl
| Download URL | pyoklock-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67ccf5a4ccab6cd583d8e82d9c02f0491f7cb8c0450a4647df0e38a4684a5837
|
|
BLAKE2b-256 checksum How to use checksums |
6cd8d5f42fed8e886a23790296e5e7ff327b87ddd270b7564ce0b5b1be4f24a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|