PyPtt 1.3.0__tar.gz → 1.3.1__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.3.0 → pyptt-1.3.1}/PKG-INFO +1 -1
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/__init__.py +1 -1
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/check_value.py +2 -2
- pyptt-1.3.1/PyPtt/ssl_config.py +24 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt.egg-info/PKG-INFO +1 -1
- pyptt-1.3.0/PyPtt/ssl_config.py +0 -24
- {pyptt-1.3.0 → pyptt-1.3.1}/LICENSE +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/MANIFEST.in +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/PTT.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_bucket.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_call_status.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_change_pw.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_comment.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_del_post.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_board_info.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_board_list.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_bottom_post_list.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_favourite_board.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_newest_index.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_post.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_post_index.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_post_list.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_time.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_get_user.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_give_money.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_has_new_mail.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_loginout.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_mail.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_mark_post.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_post.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_reply_post.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_search_user.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_set_board_title.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/_api_util.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/command.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/config.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/connect_core.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/data_type.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/exceptions.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/i18n.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/lang_en_US.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/lang_zh_TW.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/lib_util.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/log.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/screens.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt/service.py +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt.egg-info/SOURCES.txt +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt.egg-info/dependency_links.txt +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt.egg-info/requires.txt +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/PyPtt.egg-info/top_level.txt +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/README.md +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/setup.cfg +0 -0
- {pyptt-1.3.0 → pyptt-1.3.1}/setup.py +0 -0
|
@@ -22,13 +22,13 @@ def check_range(value, min_value: int = None, max_value: int = None, name: str =
|
|
|
22
22
|
check_type(min_value, int, 'min_value')
|
|
23
23
|
|
|
24
24
|
if value < min_value:
|
|
25
|
-
raise exceptions.ParameterError(f'{name} {value} {i18n.
|
|
25
|
+
raise exceptions.ParameterError(f'{name} {value} {i18n.must_bigger_than} {min_value - 1}')
|
|
26
26
|
|
|
27
27
|
if max_value is not None:
|
|
28
28
|
check_type(max_value, int, 'max_value')
|
|
29
29
|
|
|
30
30
|
if value > max_value:
|
|
31
|
-
raise exceptions.ParameterError(f'{name} {value} {i18n.
|
|
31
|
+
raise exceptions.ParameterError(f'{name} {value} {i18n.must_small_than} {max_value + 1}')
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
def check_index(name, index, max_value=None) -> None:
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
key = """-----BEGIN EC PARAMETERS-----
|
|
2
|
+
BggqhkjOPQMBBw==
|
|
3
|
+
-----END EC PARAMETERS-----
|
|
4
|
+
-----BEGIN EC PRIVATE KEY-----
|
|
5
|
+
MHcCAQEEIAUeDeLJz7Ast36veGFEaSoUTiQKLFuHZ4JqgT2CHh7poAoGCCqGSM49
|
|
6
|
+
AwEHoUQDQgAEOaAq4rxVKFcwKhvnBnkCcj57MMttX9dh79qMgYth50tkp3aNXSZc
|
|
7
|
+
NPQHUur09OejfBy3/V9eoXBMj2f3HhoT/Q==
|
|
8
|
+
-----END EC PRIVATE KEY-----
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
cert = """-----BEGIN CERTIFICATE-----
|
|
12
|
+
MIIB6TCCAY8CFEq/uOD3yklb0FR3ITccL0U0XJjPMAoGCCqGSM49BAMCMHcxCzAJ
|
|
13
|
+
BgNVBAYTAlRXMQ4wDAYDVQQIDAVTdGF0ZTENMAsGA1UEBwwEQ2l0eTEVMBMGA1UE
|
|
14
|
+
CgwMT3JnYW5pemF0aW9uMRwwGgYDVQQLDBNPcmdhbml6YXRpb25hbCBVbml0MRQw
|
|
15
|
+
EgYDVQQDDAtDb21tb24gTmFtZTAeFw0yNTA5MTMxMDM4MjVaFw0zNTA5MTExMDM4
|
|
16
|
+
MjVaMHcxCzAJBgNVBAYTAlRXMQ4wDAYDVQQIDAVTdGF0ZTENMAsGA1UEBwwEQ2l0
|
|
17
|
+
eTEVMBMGA1UECgwMT3JnYW5pemF0aW9uMRwwGgYDVQQLDBNPcmdhbml6YXRpb25h
|
|
18
|
+
bCBVbml0MRQwEgYDVQQDDAtDb21tb24gTmFtZTBZMBMGByqGSM49AgEGCCqGSM49
|
|
19
|
+
AwEHA0IABDmgKuK8VShXMCob5wZ5AnI+ezDLbV/XYe/ajIGLYedLZKd2jV0mXDT0
|
|
20
|
+
B1Lq9PTno3wct/1fXqFwTI9n9x4aE/0wCgYIKoZIzj0EAwIDSAAwRQIhAIe+zYvB
|
|
21
|
+
ylTH27vXomiPRtCMzw42FifKnHtEyKDA6wXyAiBLiB283NBQsJmNACVhz/yKllMB
|
|
22
|
+
wjXzSUhrTUBPbsqYyA==
|
|
23
|
+
-----END CERTIFICATE-----
|
|
24
|
+
"""
|
pyptt-1.3.0/PyPtt/ssl_config.py
DELET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M1LXNFJWHu3hAwCgYIKoZIzj0EAwIDSQAwRgIhAPoAa/vC
|
|
21
|
-
T5pmcdQRjItJuMvCdbX2AZIE58LZ2azm0rNkAiEA94lVjUIEcC6cZIR3b0ZhtEEc
|
|
22
|
-
fhFBVrfHxjt/rmXT3os=
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|