一个 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.2.tar.gz
(32.4 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.2-py3-none-any.whl
(37.5 kB
view details)
File details
Details for the file ygoutil-0.2.2.tar.gz.
File metadata
- Download URL: ygoutil-0.2.2.tar.gz
- Upload date:
- Size: 32.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.15.2 CPython/3.10.12 Linux/6.5.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ee10081a886224cb3704ec8632aaa2981c670e6b74eaff2fa903170c91b5714
|
|
| MD5 |
0e87ac542b31f752cd0eb9da1f79ae8f
|
|
| BLAKE2b-256 |
8371dca833c65e7f57da2988b3ac5423eccafbee718fd81774b8adce0fa4af74
|
File details
Details for the file ygoutil-0.2.2-py3-none-any.whl.
File metadata
- Download URL: ygoutil-0.2.2-py3-none-any.whl
- Upload date:
- Size: 37.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.15.2 CPython/3.10.12 Linux/6.5.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e44856c18319adf4c778775b6157cf95c59d53e96099016b19b189a63fcad07
|
|
| MD5 |
f7400ae29e5b86b10ece92326be4fac5
|
|
| BLAKE2b-256 |
67f23e25ddf4117ff19c20aaa8d91cc2b4fe1c7a5e1ec34e209e474ac489a7c6
|