一个免费而简单图床(喜欢就关注:python学霸微信公众号)
Project description
介绍
fucktheimage是一个基于SunPics开发的免费图床库,可以上传图片并获取图片链接。 fucktheimage is a free image hosting library based on SunPics. It allows users to upload images and obtain the corresponding image links.
安装
使用以下命令通过pip安装图床库:
pip install fucktheimage
示例
以下是使用图床库上传图片并获取图片链接的简单示例:
from fucktheimage import upload
file_path = input("请输入文件名或目录:")
image_url = upload.upload_image(file_path)
if image_url:
print("上传成功")
print("图片链接:" + image_url)
else:
print("上传失败")
这段代码示例通过调用upload_image函数上传图片,并打印出上传结果和图片链接。
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fucktheimage-4.0.0.tar.gz
(1.7 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 fucktheimage-4.0.0.tar.gz.
File metadata
- Download URL: fucktheimage-4.0.0.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7e7144ea325df2f6d437e94b04405fe6fb621131ab85bcfba2f0f80c2a90164
|
|
| MD5 |
c149dc91cf9c75eaf9c75464335a6ab3
|
|
| BLAKE2b-256 |
3ee2248ec6ebe596e4619d4c42cfd35128c561988775399438c56b9114ffc69b
|
File details
Details for the file fucktheimage-4.0.0-py3-none-any.whl.
File metadata
- Download URL: fucktheimage-4.0.0-py3-none-any.whl
- Upload date:
- Size: 2.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a18a5dcef7d8aca79635128f58108c6010865c67249bfda7052d0be752bb839
|
|
| MD5 |
2342e5363181cbad275873a548b65148
|
|
| BLAKE2b-256 |
bb906ecf3ac4b72154251421ffd2049268200cb19a5395f20286607b8fadfdc2
|