一个 ygo 工具集 | Handy tools for 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.3.tar.gz
(32.8 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
ygoutil-0.2.3-py3-none-any.whl
(38.1 kB
view details)
File details
Details for the file ygoutil-0.2.3.tar.gz.
File metadata
- Download URL: ygoutil-0.2.3.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.27.0 CPython/3.10.20 Linux/6.17.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9a0cf7e6e5ccb161d4a0668f767c8236b5de71363e9dbf6e63bc32a4a35877a
|
|
| MD5 |
2553e455d9303c95a82152fbdfcb9eb7
|
|
| BLAKE2b-256 |
a270777b96ebd4cbbd0a570691f682e7a2b1781024d7dec9dfb4e2331f5dfc8d
|
File details
Details for the file ygoutil-0.2.3-py3-none-any.whl.
File metadata
- Download URL: ygoutil-0.2.3-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.27.0 CPython/3.10.20 Linux/6.17.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99d4d63d11b9d22e4bf4ba9393055f40d740d28cd5d92577f6fdfdf66e7a1a71
|
|
| MD5 |
9f04f87761553eb0d0cc0d35cec74230
|
|
| BLAKE2b-256 |
ee89e35eb2ffc72f13646b02e5181c5bbcdc2051c8f3958e3c8268a894643e95
|