kindle manager

This commit is contained in:
gavin
2020-06-19 14:13:36 +08:00
parent 4da1759e58
commit 91c950eeb1
14 changed files with 1224 additions and 2079 deletions

BIN
.DS_Store vendored

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 MiB

BIN
dist/.DS_Store vendored Normal file

Binary file not shown.

2068
export.md

File diff suppressed because it is too large Load Diff

View File

@@ -139,7 +139,7 @@ class kMan:
def parse_section(self,s,i): def parse_section(self,s,i):
"""parse section """parse section
Args: Args:
s: section line list s: section line list
i: section index i: section index
@@ -301,7 +301,7 @@ class kMan:
xx,xx,xx,xx,xx xx,xx,xx,xx,xx
marktime: 20200403 PM 3:0:3 星期五 marktime: 20200403 PM 3:0:3 星期五
Args: Args:
bks: books dict bks: books dict
f: can be 'MD'/'JSON'/'CSV' f: can be 'MD'/'JSON'/'CSV'
@@ -335,7 +335,7 @@ class kMan:
xx,xx,xx,xx,xx xx,xx,xx,xx,xx
marktime: 20200403 PM 3:0:3 星期五 marktime: 20200403 PM 3:0:3 星期五
Args: Args:
bks: books dict bks: books dict
f: can be 'MD'/'JSON'/'CSV' f: can be 'MD'/'JSON'/'CSV'

BIN
kmanapp.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -54,5 +54,6 @@
<file>icons/book.png</file> <file>icons/book.png</file>
<file>icons/amazon.png</file> <file>icons/amazon.png</file>
<file>icons/flower.png</file> <file>icons/flower.png</file>
<file>kman.ico</file>
</qresource> </qresource>
</RCC> </RCC>

37
kmanapp.spec Normal file
View File

@@ -0,0 +1,37 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['kmanapp.py'],
pathex=['/Users/mark/kman'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='kmanapp',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='kmanapp')

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,7 @@ class Ui_MainWindow(object):
if not MainWindow.objectName(): if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow") MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(774, 410) MainWindow.resize(774, 410)
MainWindow.setIconSize(QSize(40, 40))
self.actionimportlocal = QAction(MainWindow) self.actionimportlocal = QAction(MainWindow)
self.actionimportlocal.setObjectName(u"actionimportlocal") self.actionimportlocal.setObjectName(u"actionimportlocal")
icon = QIcon() icon = QIcon()

View File

@@ -13,6 +13,12 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Kindle Management</string> <string>Kindle Management</string>
</property> </property>
<property name="iconSize">
<size>
<width>40</width>
<height>40</height>
</size>
</property>
<widget class="QWidget" name="centralwidget"> <widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0"> <item row="0" column="0">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 99 KiB

3
requirements.txt Normal file
View File

@@ -0,0 +1,3 @@
PySide2==5.15.0
pandas==1.0.3
requests==2.23.0

21
setup.py Normal file
View File

@@ -0,0 +1,21 @@
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['kmanapp.py']
DATA_FILES = ['kman.py', 'kmanapp.py', 'kmanapp_rc.py', 'mainwindow.py', 'parseweb.py', 'unitest.kman.py']
OPTIONS = {'includes':['PySide2', 'pandas', 'requests',],
'iconfile':'/Users/mark/kman/kmanapp.ico'}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)