介绍
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
示例
以下是使用图床库上传图片并获取图片链接的简单示例:
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函数上传图片,并打印出上传结果和图片链接。
Release files for tuchuang 5.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tuchuang-5.0.0.tar.gz | 1.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tuchuang-5.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.7 kB
Release files / tuchuang-5.0.0.tar.gz
| Download URL | tuchuang-5.0.0.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7391103764316d42376aaa14770aee359401006cbfa68ca04eeffa2fb8b8930c
|
|
BLAKE2b-256 checksum How to use checksums |
b3b8d3fc5952878537121e075b3b52e180088a744cd5ba63abc10254eceb8df3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|
Release files / tuchuang-5.0.0-py3-none-any.whl
| Download URL | tuchuang-5.0.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
866523e38cbb5aa56724cc36dcb97e25cda09f2a95240b2957a66a28d2dac2ad
|
|
BLAKE2b-256 checksum How to use checksums |
1c1080cb121bc5e5b35167efb883c76463368e5be4b0f1c7e14f5e241ec07657
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.9
|