Skip to main content

一个 ygo 工具集 | Handy tools for ygo

Project description

ygoutil

PyPI - Version

一个 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)

其它卡片源接口近似,不同源获取到的卡片数据有细节上的区别

目前勉强能跑( 更多用法请参考测试逻辑或直接询问开发者

更多功能开发中,欢迎 IssuePR

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.1.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

ygoutil-0.2.1-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file ygoutil-0.2.1.tar.gz.

File metadata

  • Download URL: ygoutil-0.2.1.tar.gz
  • Upload date:
  • Size: 31.9 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

Hashes for ygoutil-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c2a317c0df124494999768af6fae5351c942d96600986bee25aa9de4d21d426f
MD5 90782d9fea09e24a48bbfe83cd037536
BLAKE2b-256 c2d904d87ff001d3734e79ad63d0627327bbad86dc9ba717abb7554ea0ac6665

See more details on using hashes here.

File details

Details for the file ygoutil-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ygoutil-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 37.0 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

Hashes for ygoutil-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd0162d923582bf5a63dcbe52fee97bd1998de2cb3d28270f08bac20189cabe
MD5 3378b4504db7615fc5f00f8c5f537f12
BLAKE2b-256 258aba896b117dde3c35d3e11047835006d41b87ed44dbe2192359e1f9363c83

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page