Metadata-Version: 2.1
Name: pyoklock
Version: 0.0.4
Summary: python cli digital clock.
Home-page: https://github.com/6syun9/pyoklock
Author: vaaaaanquish
Author-email: 6syun9@gmail.com
License: MIT
Platform: any
Description-Content-Type: text/markdown
Requires-Dist: prompt-toolkit (>=2.0.0)
Requires-Dist: google-api-python-client
Requires-Dist: google-auth-httplib2
Requires-Dist: google-auth-oauthlib

# pyoklock
python cli clock. Display digital clock on terminal.

![screenshot](https://github.com/6syun9/pyoklock/blob/master/images/screenshot.png?raw=true)

# Usage

## install
```
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](https://github.com/6syun9/pyoklock/blob/master/images/frame.png?raw=true)


## 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](https://github.com/6syun9/pyoklock/blob/master/images/google_calender.png?raw=true)

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](https://github.com/6syun9/pyoklock/blob/master/images/color.png?raw=true)


# Special thanks to
 - [python prompt-toolkit](https://github.com/prompt-toolkit/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](http://www.oneokrock.com) "  I respect.


