一个 ygo 工具集
Project description
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)
其它卡片源接口近似,不同源获取到的卡片数据有细节上的区别
目前勉强能跑( 更多用法请参考测试逻辑或直接询问开发者
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
ygoutil-0.2.0.tar.gz
(31.6 kB
view details)
Built Distribution
ygoutil-0.2.0-py3-none-any.whl
(36.8 kB
view details)
File details
Details for the file ygoutil-0.2.0.tar.gz
.
File metadata
- Download URL: ygoutil-0.2.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.15.1 CPython/3.10.12 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ad6cb0c5ed010b3f708c03f08851db7c4f0a8be2c8b1b35b2b1f523c77c3471 |
|
MD5 | 61b79f50b2fae877000e4c8783b902ad |
|
BLAKE2b-256 | 503b6665915333fc9ff092feb7b1d67b0f17ff6647ffc419d43249d9f3190df2 |
File details
Details for the file ygoutil-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: ygoutil-0.2.0-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.15.1 CPython/3.10.12 Linux/6.5.0-1018-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d71aaae26f710de6bf00dc29ba5a6078969fc432dbfe8e6d33a0d85ed790849b |
|
MD5 | b8fc4b26a1c624fd20ffd8b1cb3035e1 |
|
BLAKE2b-256 | 7217d8a92e56c8c729780356324aa033da2302f0ac60291cd8a8830386292041 |