Name | tuchuang JSON |
Version |
5.0.0
JSON |
| download |
home_page | |
Summary | 一个免费而简单图床(喜欢就关注:python学霸微信公众号) |
upload_time | 2023-12-17 13:23:32 |
maintainer | |
docs_url | None |
author | Python学霸 |
requires_python | |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
### 介绍
TuChuang是一个基于SunPics开发的免费图床库,可以上传图片并获取图片链接。
TuChuang is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.
### 安装
使用以下命令通过pip安装图床库:
```
pip install tuchuang
```
### 示例
以下是使用图床库上传图片并获取图片链接的简单示例:
```python
from tuchunag import upload
file_path = input("请输入文件名或目录:")
image_url = upload.upload_image(file_path)
if image_url:
print("上传成功")
print("图片链接:" + image_url)
else:
print("上传失败")
```
这段代码示例通过调用`upload_image`函数上传图片,并打印出上传结果和图片链接。
Raw data
{
"_id": null,
"home_page": "",
"name": "tuchuang",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Python\u5b66\u9738",
"author_email": "python@xueba.com",
"download_url": "https://files.pythonhosted.org/packages/b3/b8/d3fc5952878537121e075b3b52e180088a744cd5ba63abc10254eceb8df3/tuchuang-5.0.0.tar.gz",
"platform": null,
"description": "### \u4ecb\u7ecd\r\n\r\nTuChuang\u662f\u4e00\u4e2a\u57fa\u4e8eSunPics\u5f00\u53d1\u7684\u514d\u8d39\u56fe\u5e8a\u5e93\uff0c\u53ef\u4ee5\u4e0a\u4f20\u56fe\u7247\u5e76\u83b7\u53d6\u56fe\u7247\u94fe\u63a5\u3002\r\nTuChuang is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.\r\n\r\n### \u5b89\u88c5\r\n\r\n\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u901a\u8fc7pip\u5b89\u88c5\u56fe\u5e8a\u5e93\uff1a\r\n\r\n```\r\npip install tuchuang\r\n```\r\n\r\n### \u793a\u4f8b\r\n\r\n\u4ee5\u4e0b\u662f\u4f7f\u7528\u56fe\u5e8a\u5e93\u4e0a\u4f20\u56fe\u7247\u5e76\u83b7\u53d6\u56fe\u7247\u94fe\u63a5\u7684\u7b80\u5355\u793a\u4f8b\uff1a\r\n\r\n```python\r\nfrom tuchunag import upload\r\n\r\nfile_path = input(\"\u8bf7\u8f93\u5165\u6587\u4ef6\u540d\u6216\u76ee\u5f55\uff1a\")\r\nimage_url = upload.upload_image(file_path)\r\n\r\nif image_url:\r\n print(\"\u4e0a\u4f20\u6210\u529f\")\r\n print(\"\u56fe\u7247\u94fe\u63a5\uff1a\" + image_url)\r\nelse:\r\n print(\"\u4e0a\u4f20\u5931\u8d25\")\r\n```\r\n\r\n\u8fd9\u6bb5\u4ee3\u7801\u793a\u4f8b\u901a\u8fc7\u8c03\u7528`upload_image`\u51fd\u6570\u4e0a\u4f20\u56fe\u7247\uff0c\u5e76\u6253\u5370\u51fa\u4e0a\u4f20\u7ed3\u679c\u548c\u56fe\u7247\u94fe\u63a5\u3002\r\n\r\n",
"bugtrack_url": null,
"license": "",
"summary": "\u4e00\u4e2a\u514d\u8d39\u800c\u7b80\u5355\u56fe\u5e8a(\u559c\u6b22\u5c31\u5173\u6ce8:python\u5b66\u9738\u5fae\u4fe1\u516c\u4f17\u53f7)",
"version": "5.0.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1c1080cb121bc5e5b35167efb883c76463368e5be4b0f1c7e14f5e241ec07657",
"md5": "228ee4aa1cd8cb3e477637512f48ff5d",
"sha256": "866523e38cbb5aa56724cc36dcb97e25cda09f2a95240b2957a66a28d2dac2ad"
},
"downloads": -1,
"filename": "tuchuang-5.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "228ee4aa1cd8cb3e477637512f48ff5d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 1992,
"upload_time": "2023-12-17T13:23:30",
"upload_time_iso_8601": "2023-12-17T13:23:30.464646Z",
"url": "https://files.pythonhosted.org/packages/1c/10/80cb121bc5e5b35167efb883c76463368e5be4b0f1c7e14f5e241ec07657/tuchuang-5.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b3b8d3fc5952878537121e075b3b52e180088a744cd5ba63abc10254eceb8df3",
"md5": "5c2fbaa5c4469e3eb453286da1aa7e14",
"sha256": "7391103764316d42376aaa14770aee359401006cbfa68ca04eeffa2fb8b8930c"
},
"downloads": -1,
"filename": "tuchuang-5.0.0.tar.gz",
"has_sig": false,
"md5_digest": "5c2fbaa5c4469e3eb453286da1aa7e14",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1705,
"upload_time": "2023-12-17T13:23:32",
"upload_time_iso_8601": "2023-12-17T13:23:32.286372Z",
"url": "https://files.pythonhosted.org/packages/b3/b8/d3fc5952878537121e075b3b52e180088a744cd5ba63abc10254eceb8df3/tuchuang-5.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-17 13:23:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tuchuang"
}