PyPtt 1.2.13.dev90917__tar.gz → 1.2.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PKG-INFO +2 -2
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/__init__.py +1 -1
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_post.py +7 -3
- pyptt-1.2.14/PyPtt/ssl_config.py +24 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt.egg-info/PKG-INFO +2 -2
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/README.md +2 -2
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/setup.py +3 -1
- pyptt-1.2.13.dev90917/PyPtt/ssl_config.py +0 -24
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/LICENSE +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/MANIFEST.in +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/PTT.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_bucket.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_call_status.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_change_pw.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_comment.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_del_post.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_board_info.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_board_list.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_bottom_post_list.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_favourite_board.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_newest_index.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_post_index.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_time.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_get_user.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_give_money.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_has_new_mail.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_loginout.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_mail.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_mark_post.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_post.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_reply_post.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_search_user.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_set_board_title.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/_api_util.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/check_value.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/command.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/config.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/connect_core.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/data_type.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/exceptions.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/i18n.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/lang_en_US.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/lang_zh_TW.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/lib_util.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/log.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/screens.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt/service.py +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt.egg-info/SOURCES.txt +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt.egg-info/dependency_links.txt +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt.egg-info/requires.txt +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/PyPtt.egg-info/top_level.txt +0 -0
- {pyptt-1.2.13.dev90917 → pyptt-1.2.14}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPtt
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.14
|
|
4
4
|
Summary: PyPtt
|
|
5
5
|
Home-page: https://pyptt.cc/
|
|
6
6
|
Author: CodingMan
|
|
@@ -61,7 +61,7 @@ pip install PyPtt
|
|
|
61
61
|
#### 你可以在 Telegram 上找到 PyPtt 社群 [](https://t.me/PyPtt)
|
|
62
62
|
|
|
63
63
|
## 贊助
|
|
64
|
-
####
|
|
64
|
+
#### issue 解太慢嗎?幫我增加一點動力吧!
|
|
65
65
|
####
|
|
66
66
|
#### [](http://paypal.me/CodingMan)
|
|
67
67
|
|
|
@@ -50,10 +50,14 @@ def get_post(api, board: str, aid: Optional[str] = None, index: Optional[int] =
|
|
|
50
50
|
if len(board) == 0:
|
|
51
51
|
raise ValueError(f'board error parameter: {board}')
|
|
52
52
|
|
|
53
|
-
if index
|
|
53
|
+
if index > 0 and aid is not None:
|
|
54
54
|
raise ValueError('wrong parameter index and aid can\'t both input')
|
|
55
55
|
|
|
56
|
-
if
|
|
56
|
+
if aid is not None:
|
|
57
|
+
pass
|
|
58
|
+
elif index > 0:
|
|
59
|
+
pass
|
|
60
|
+
else:
|
|
57
61
|
raise ValueError('wrong parameter index or aid must input')
|
|
58
62
|
|
|
59
63
|
search_cmd = None
|
|
@@ -63,7 +67,7 @@ def get_post(api, board: str, aid: Optional[str] = None, index: Optional[int] =
|
|
|
63
67
|
else:
|
|
64
68
|
current_index = api.get_newest_index(data_type.NewIndex.BOARD, board=board)
|
|
65
69
|
|
|
66
|
-
if index is not None:
|
|
70
|
+
if index is not None and index > 0:
|
|
67
71
|
check_value.check_index('index', index, current_index)
|
|
68
72
|
|
|
69
73
|
max_retry = 2
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
key = """-----BEGIN EC PARAMETERS-----
|
|
2
|
+
BggqhkjOPQMBBw==
|
|
3
|
+
-----END EC PARAMETERS-----
|
|
4
|
+
-----BEGIN EC PRIVATE KEY-----
|
|
5
|
+
MHcCAQEEIHQKR027PpIL3jmuBY5pi1vyf2rPKrwD82nunY3W3TMmoAoGCCqGSM49
|
|
6
|
+
AwEHoUQDQgAEfytUFoMyXqYe6oxI6aEnlC1Dus/7BwNUF+nIImcZfu4FsB5MABaY
|
|
7
|
+
eAcizNFQoYjdraGBnzf5jTrq6e1RpPXp1w==
|
|
8
|
+
-----END EC PRIVATE KEY-----
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
cert = """-----BEGIN CERTIFICATE-----
|
|
12
|
+
MIIB6jCCAY8CFCxDTDYHKrP92XJ2rvne0cPov0MwMAoGCCqGSM49BAMCMHcxCzAJ
|
|
13
|
+
BgNVBAYTAlRXMQ4wDAYDVQQIDAVTdGF0ZTENMAsGA1UEBwwEQ2l0eTEVMBMGA1UE
|
|
14
|
+
CgwMT3JnYW5pemF0aW9uMRwwGgYDVQQLDBNPcmdhbml6YXRpb25hbCBVbml0MRQw
|
|
15
|
+
EgYDVQQDDAtDb21tb24gTmFtZTAeFw0yNDExMTgwNjMzMDBaFw0zNDExMTYwNjMz
|
|
16
|
+
MDBaMHcxCzAJBgNVBAYTAlRXMQ4wDAYDVQQIDAVTdGF0ZTENMAsGA1UEBwwEQ2l0
|
|
17
|
+
eTEVMBMGA1UECgwMT3JnYW5pemF0aW9uMRwwGgYDVQQLDBNPcmdhbml6YXRpb25h
|
|
18
|
+
bCBVbml0MRQwEgYDVQQDDAtDb21tb24gTmFtZTBZMBMGByqGSM49AgEGCCqGSM49
|
|
19
|
+
AwEHA0IABH8rVBaDMl6mHuqMSOmhJ5QtQ7rP+wcDVBfpyCJnGX7uBbAeTAAWmHgH
|
|
20
|
+
IszRUKGI3a2hgZ83+Y066untUaT16dcwCgYIKoZIzj0EAwIDSQAwRgIhAJVuVStG
|
|
21
|
+
fi//wdAZFxzyRDltvFzKRbaCevD+roKvQU1cAiEAldq+ezbZqZ+PTDnDfHhWVaat
|
|
22
|
+
L3s8iEZU0khAttFpXVo=
|
|
23
|
+
-----END CERTIFICATE-----
|
|
24
|
+
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyPtt
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.14
|
|
4
4
|
Summary: PyPtt
|
|
5
5
|
Home-page: https://pyptt.cc/
|
|
6
6
|
Author: CodingMan
|
|
@@ -61,7 +61,7 @@ pip install PyPtt
|
|
|
61
61
|
#### 你可以在 Telegram 上找到 PyPtt 社群 [](https://t.me/PyPtt)
|
|
62
62
|
|
|
63
63
|
## 贊助
|
|
64
|
-
####
|
|
64
|
+
#### issue 解太慢嗎?幫我增加一點動力吧!
|
|
65
65
|
####
|
|
66
66
|
#### [](http://paypal.me/CodingMan)
|
|
67
67
|
|
|
@@ -28,10 +28,10 @@ pip install PyPtt
|
|
|
28
28
|
#### 你可以在 Telegram 上找到 PyPtt 社群 [](https://t.me/PyPtt)
|
|
29
29
|
|
|
30
30
|
## 贊助
|
|
31
|
-
####
|
|
31
|
+
#### issue 解太慢嗎?幫我增加一點動力吧!
|
|
32
32
|
####
|
|
33
33
|
#### [](http://paypal.me/CodingMan)
|
|
34
34
|
|
|
35
35
|
## 贊助清單
|
|
36
36
|
|
|
37
|
-
#### leftc
|
|
37
|
+
#### leftc
|
|
@@ -7,7 +7,9 @@ from setuptools import setup
|
|
|
7
7
|
|
|
8
8
|
def version_automation_script():
|
|
9
9
|
is_merged = os.environ.get('GITHUB_EVENT_NAME') == 'pull_request'
|
|
10
|
+
branch = os.environ.get('GITHUB_REF_NAME')
|
|
10
11
|
print('is_merged:', is_merged)
|
|
12
|
+
print('branch:', branch)
|
|
11
13
|
|
|
12
14
|
# read the main version from __init__.py
|
|
13
15
|
with open('PyPtt/__init__.py', 'r', encoding='utf-8') as f:
|
|
@@ -37,7 +39,7 @@ def version_automation_script():
|
|
|
37
39
|
if version is None or pypi_version is None:
|
|
38
40
|
raise ValueError('Can not get version from pypi')
|
|
39
41
|
|
|
40
|
-
if not
|
|
42
|
+
if 'master' not in branch:
|
|
41
43
|
commit_file = '/tmp/commit_hash.txt'
|
|
42
44
|
if os.path.exists(commit_file):
|
|
43
45
|
with open(commit_file, 'r', encoding='utf-8') as f:
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
key = """-----BEGIN EC PARAMETERS-----
|
|
2
|
-
BggqhkjOPQMBBw==
|
|
3
|
-
-----END EC PARAMETERS-----
|
|
4
|
-
-----BEGIN EC PRIVATE KEY-----
|
|
5
|
-
MHcCAQEEIHit9XnExnupbNahUy2w9r8KAfoW7VPHxnuutRLSWzUvoAoGCCqGSM49
|
|
6
|
-
AwEHoUQDQgAE0Sk6fmqeDy5x8q3D9+ziWwZon/pQoL5z3H6NzwZr4g7Q5MdBYsIp
|
|
7
|
-
/D/4EQit0oAImedt20nNs5V7yg7bMNpnNQ==
|
|
8
|
-
-----END EC PRIVATE KEY-----
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
cert = """-----BEGIN CERTIFICATE-----
|
|
12
|
-
MIIB6DCCAY8CFBldwwA6lE9CoSWVmt8Z5h9I3F0mMAoGCCqGSM49BAMCMHcxCzAJ
|
|
13
|
-
BgNVBAYTAlRXMQ4wDAYDVQQIDAVTdGF0ZTENMAsGA1UEBwwEQ2l0eTEVMBMGA1UE
|
|
14
|
-
CgwMT3JnYW5pemF0aW9uMRwwGgYDVQQLDBNPcmdhbml6YXRpb25hbCBVbml0MRQw
|
|
15
|
-
EgYDVQQDDAtDb21tb24gTmFtZTAeFw0yNDA5MDkwMjUyMDdaFw0zNDA5MDcwMjUy
|
|
16
|
-
MDdaMHcxCzAJBgNVBAYTAlRXMQ4wDAYDVQQIDAVTdGF0ZTENMAsGA1UEBwwEQ2l0
|
|
17
|
-
eTEVMBMGA1UECgwMT3JnYW5pemF0aW9uMRwwGgYDVQQLDBNPcmdhbml6YXRpb25h
|
|
18
|
-
bCBVbml0MRQwEgYDVQQDDAtDb21tb24gTmFtZTBZMBMGByqGSM49AgEGCCqGSM49
|
|
19
|
-
AwEHA0IABNEpOn5qng8ucfKtw/fs4lsGaJ/6UKC+c9x+jc8Ga+IO0OTHQWLCKfw/
|
|
20
|
-
+BEIrdKACJnnbdtJzbOVe8oO2zDaZzUwCgYIKoZIzj0EAwIDRwAwRAIgUUkdxyJ3
|
|
21
|
-
bycxT//S4wWMB16suAlzL0io+f01B0In5XoCID+JAIvxU+CT2nfpaL43KMYTr7C5
|
|
22
|
-
aTq2gJjVhDAxA1i6
|
|
23
|
-
-----END CERTIFICATE-----
|
|
24
|
-
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|