支持
简要说明
详细见文档 或者demo
同步请使用from PicImageSearch.sync import ...导入
异步请使用from PicImageSearch import Network,...导入
推荐使用异步
简单示例
from loguru import logger
from PicImageSearch.sync import SauceNAO
saucenao = SauceNAO()
res = saucenao.search('https://pixiv.cat/77702503-1.jpg')
# res = saucenao.search(r'C:/kitUIN/img/tinted-good.jpg') #搜索本地图片
logger.info(res.origin) # 原始数据
logger.info(res.raw) #
logger.info(res.raw[0]) #
logger.info(res.long_remaining) # 99
logger.info(res.short_remaining) # 3
logger.info(res.raw[0].thumbnail) # 缩略图
logger.info(res.raw[0].similarity) # 相似度
logger.info(res.raw[0].title) # 标题
logger.info(res.raw[0].author) # 作者
logger.info(res.raw[0].url)
from PicImageSearch import SauceNAO, Network
async with Network() as client: # 可以设置代理 Network(proxies='http://127.0.0.1:10809')
saucenao = SauceNAO(client=client) # client不能少
res = await saucenao.search('https://pixiv.cat/77702503-1.jpg')
# 下面操作与同步方法一致
安装
- 此包需要 Python 3.6 或更新版本。
pip install PicImageSearch- 或者
pip install PicImageSearch -i https://pypi.tuna.tsinghua.edu.cn/simple
Star History
Metadata
Release files for PicImageSearch 3.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PicImageSearch-3.3.5.tar.gz | 13.9 kB | Without provenance | Details for PicImageSearch-3.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PicImageSearch-3.3.5-py3-none-any.whl | Python 3 | none | any | Details for PicImageSearch-3.3.5-py3-none-any.whl |
Total release size: 34.2 kB
Release files / PicImageSearch-3.3.5.tar.gz
| Download URL | PicImageSearch-3.3.5.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ffa8a9bf6ac1501e4337b9be8ca89ce37770886ab082480676d6cb816adf70c
|
|
BLAKE2b-256 checksum How to use checksums |
ce01893206cd206d733aa9d70616a2fcb31a00a9a3ab6ca7560ca2647ef94c8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / PicImageSearch-3.3.5-py3-none-any.whl
| Download URL | PicImageSearch-3.3.5-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa4c37b47755350eddc10bd8b14fcff24d5a8a2d4b11f65bf8b82200b9a1e3e5
|
|
BLAKE2b-256 checksum How to use checksums |
0c2b1a7d89814eb2a3e0103d66561380cbb123babfc25454e48d5009dae2c379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for PicImageSearch 3.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.