Skip to main content

Python implementation of GearScore WoW addon

Project description

GearScore python client

The package provides functionality to calculate GS for an item, with possibility to save items to local DB (sqlite).

How to use

Create table before first package usage, it can be done with:

from gear_score.db import ensure_tables_created

await ensure_tables_created()

After that, you can get info about a single item:

from gear_score.getters import PublicDbGetter

getter = PublicDbGetter()
item = await getter.get(40633)
print(item.gs)

You can get info about multiple items at once, first checking in local db and then in public:

from gear_score.utils import get_items_from_local_or_remote

items = await get_items_from_local_or_remote(50444, 50445, 50446)

TODO:

  • tests
  • proper documentation
  • logging
  • automatic db tables creation

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

gear_score-0.0.4.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file gear_score-0.0.4.tar.gz.

File metadata

  • Download URL: gear_score-0.0.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10

File hashes

Hashes for gear_score-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4748a2ee05453409ef3e6a7b1b57619cf367bed4cc876d66f70ed1af3c7f1519
MD5 6f542f4d72b6de81bd36a9b98dd9005f
BLAKE2b-256 abd069c668f950f1d883b7d58a0ac001388dc2312f7cbcca30e048d3cd264076

See more details on using hashes here.

Supported by

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