replace for flask-uploads
Project description
jd-flask-uploads
作为 flask-uploads 的替代品,因为 flask-uploads 在 Pypi上没有更新版本,从github上源码安装不太方便。
安装
pip install jd-flask-uploads
用法
from jd_tools import *
print(JdTools.trim(" 12b "))
dd = JdTools.str_to_datetime('2022-09-10 8:10:15')
print(dd)
输出
12b
2022-09-10 08:10:15
模块内方法说明
| 函数、对象名称 | 类型 | 说明 |
|---|---|---|
| UploadSet | 对象 | 文件上传主对象 |
| configure_uploads | 函数 | 配置本上传对象,在 Flask App 创建之后 |
| patch_request_class | 函数 | 配置 Flask App 内置测试服务的文件上传大小限制 |
| extension | 函数 | 返回文件扩展名 |
| lowercase_ext | 函数 | 返回文件扩展名(小写格式) |
| addslash | 函数 | url、路径后添加反斜杠 '/',若存在则不添加 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jd-flask-uploads-0.3.0.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jd-flask-uploads-0.3.0.tar.gz.
File metadata
- Download URL: jd-flask-uploads-0.3.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3144dd2569aee32887688a2dc9863b89a3bd1ecfc69d6698d41022aee73cf285
|
|
| MD5 |
48011fe1a02dd0764ab604ff0581b3b0
|
|
| BLAKE2b-256 |
afc1030badace063693e1a20531a7bff1bfe16b9fc5e3334350c3043809b4e62
|
File details
Details for the file jd_flask_uploads-0.3.0-py3-none-any.whl.
File metadata
- Download URL: jd_flask_uploads-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74c29f444249dd7a98224cf22ca02bffa17819fdf11d9511db2e5131bc548f9b
|
|
| MD5 |
60434f21022402054291d6c3a5b15e42
|
|
| BLAKE2b-256 |
0d329570fb62c6213093a4dccd1b4490aa3e29a266f286269b4824f579cb6354
|