一个免费而简单图床(喜欢就关注: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-1.0.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for fucktheimage-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6949c2deadd4cd135f422d2cd2238266f618f4d90a9982ebc603e5bfdc927402 |
|
MD5 | cbf3e8f0eb816bb738460f048a5adf28 |
|
BLAKE2b-256 | 9d8bfee3bdb953b1819ec65c2284f2f326a7f91fd86cd8ddc1c0024c022c66b0 |