ApiUtils
CONSTANCE 配置:
CONSTANCE_CONFIG = OrderedDict((
('SL_CPROFILE_LOG', (False, '请求函数耗时统计')),
('SL_CPROFILE_LOG_MIN_SECONDS', (10, '函数耗时LOG最小时间')),
('SL_CPROFILE_LOG_SKIP_PATH', ("", '请求函数耗时统计排除URL')),
('SL_CPROFILE_LOG_WHITE_PATH', ("", '关闭函数耗时统计时仍然统计的URL')),
('SL_LONG_TIME_MAIL_MIN_SECONDS', (20, '函数耗时mail最小时间')),
('SL_LONG_TIME_COUNT_MIN_SECONDS', (10, '函数耗时记录到长时间统计')),
('VERIFY_CODE_MOBILE_COUNT', (10, '每个手机号每天可发送次数')),
('VERIFY_CODE_WHITE_LIST_MOBILES', ('13800138000', '白名单手机号(逗号隔开)')),
('VERIFY_CODE_WHITE_LIST_CODE', ('6379', '白名单验证码')),
('VERIFY_CODE_SEND_EXPIRE_SECONDS', (60, '验证码发送限制秒数, 成功发送验证码后再次请求将在该时间过后才会重新发送')),
('VERIFY_CODE_EXPIRE_SECONDS', (1800, '验证码默认过期秒数')),
('VERIFY_CODE_MAX_TIMES', (10, '验证码可验证次数, 达到验证码次数后重新发送才能继续验证')),
('VERIFY_CODE_SMS_CONTENT', ('直接发送短信以验证手机号,半小时内发送有效', '验证码上行说明文字')),
))
settings配置:
def async_call(func, *args, **kwargs):
return func(*args, **kwargs)
SERVER_IP
SMS_ACCESS_KEY_ID = '阿里短信key'
SMS_ACCESS_KEY_SECRET = '阿里短信secret'
SMS_SIGNNAME_VCODE = '验证码短信签名'
SMS_TEMPLATE_VCODE = '验证码短信模板id'
SMS_TEMPLATE_VCODE_PARAM = '验证码短信模板参数明'
Metadata
Release files for apiutils 1.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apiutils-1.0.14.tar.gz | 14.9 kB | Without provenance | Details for apiutils-1.0.14.tar.gz |
Release files / apiutils-1.0.14.tar.gz
| Download URL | apiutils-1.0.14.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84ac4db4c94cc589fcc0c4e5d0e01a32cbebb9de1656b037817908bf3ceb2023
|
|
BLAKE2b-256 checksum How to use checksums |
186745579664159723ee50cac9c1e3df3274b8f1cd4ab281fbc425f1e50b2cd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.4
|
Security for apiutils 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.