kindle manager

This commit is contained in:
gavin
2020-05-28 21:10:46 +08:00
parent 54e97b57e7
commit 2e29cfdb28
3 changed files with 62 additions and 41 deletions

View File

@@ -7,7 +7,11 @@
- abstract note/bookmark/highlight from kindle clipping
- formatter output to special file
### learn lesson
## 1.0.1 (20200528)
### feature
- add search clip
## learn lesson
- assign value to a not exist key, will throw KeyError, too inflexible!!! perl much better
- use defaultdict to solve obove problem, note, defaultdict only create two layer key auto
```
@@ -21,10 +25,14 @@ b['1']['2'] = {'3':1} # OK
```
- logging, file io, very strict indent!
- re.X(VERBOSE), different regular express between vim & python
## 1.0.1 (20200528)
### feature
- add search clip
- no c like i=x<0?m:n => python - i=m if x<0 else n
- json dict convert
- pylint check code, but most of suggest is unacceptable for me :smile:
- no c/c++/java/perl switch-case, not use two much if-elif-elif, use this to simplify:
```
suff = {'MD':'.md','CSV':'.csv','JSON':'.json'}
198 op = OUTPREF+suff[ft]
```
# feature plan
## 20200528
@@ -32,5 +40,3 @@ b['1']['2'] = {'3':1} # OK
- first abstract from kindle hard / local directory for different OS
- add GUI use QT