ygoutil
一个 ygo 工具集
安装
pip install ygoutil
使用
卡片源
通过 ygoutil.source 中的类来获取 Card 对象
- 百鸽 API
BaiGe - 百鸽网页
BaiGePage - OurOcg 网页
OurOcg - 卡片数据库
CDB
一个简单的例子如下:
从百鸽获取卡片
from ygoutil.source import BaiGe
source = BaiGe()
card = await source.from_query("解码语者")
cards = await source.list_from_query("解码语者")
print(source.current_query.total)
print(card)
print(card.id, card.name, card.types, card.text)
print(card.monster.attack, card.monster.link.marks)
其它卡片源接口近似,不同源获取到的卡片数据有细节上的区别
目前勉强能跑( 更多用法请参考测试逻辑或直接询问开发者
Metadata
Release files for ygoutil 0.2.3
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 | |
|---|---|---|---|---|
| ygoutil-0.2.3.tar.gz | 32.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ygoutil-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.9 kB
Release files / ygoutil-0.2.3.tar.gz
| Download URL | ygoutil-0.2.3.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9a0cf7e6e5ccb161d4a0668f767c8236b5de71363e9dbf6e63bc32a4a35877a
|
|
BLAKE2b-256 checksum How to use checksums |
a270777b96ebd4cbbd0a570691f682e7a2b1781024d7dec9dfb4e2331f5dfc8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.27.0 CPython/3.10.20 Linux/6.17.0-1015-azure
|
Release files / ygoutil-0.2.3-py3-none-any.whl
| Download URL | ygoutil-0.2.3-py3-none-any.whl |
|---|---|
| Size | 38.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99d4d63d11b9d22e4bf4ba9393055f40d740d28cd5d92577f6fdfdf66e7a1a71
|
|
BLAKE2b-256 checksum How to use checksums |
ee89e35eb2ffc72f13646b02e5181c5bbcdc2051c8f3958e3c8268a894643e95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.27.0 CPython/3.10.20 Linux/6.17.0-1015-azure
|
Security for ygoutil 0.2.3
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.