Skip to main content

Python DB-API Adaptor for Leaguepedia

Project description

python-leaguepedia-db

Python DB-API Adaptor for Leaguepedia

Installation

pip install python-leaguepedia-db

Usage

>>> import leaguepediadb
>>> connection = leaguepediadb.connect()
>>> cursor = connection.cursor()
>>> cursor.execute(
...     'SELECT SP.Team AS Team, SP.Role AS Role, SP.Link AS Link '
...     'FROM ScoreboardPlayers SP '
...     'WHERE SP.OverviewPage = ? '
...     'GROUP BY SP.Link '
...     'ORDER BY SP.DateTime_UTC DESC',
...     ('LCK/2022 Season/Spring Season',)
... )
>>> cursor.fetchone()  # {'Team': 'DRX', 'Role': 'Bot', 'Link': 'Taeyoon'}
>>> for row in cursor.fetchall():
...     print(row)
...
# {'Team': 'Fredit BRION', 'Role': 'Bot', 'Link': 'Gamin'}
# {'Team': 'Fredit BRION', 'Role': 'Top', 'Link': 'Soboro'}
# {'Team': 'Fredit BRION', 'Role': 'Mid', 'Link': 'Feisty'}
# {'Team': 'Fredit BRION', 'Role': 'Support', 'Link': 'Loopy'}
...

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

python-leaguepedia-db-0.1.1b1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

python_leaguepedia_db-0.1.1b1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file python-leaguepedia-db-0.1.1b1.tar.gz.

File metadata

  • Download URL: python-leaguepedia-db-0.1.1b1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for python-leaguepedia-db-0.1.1b1.tar.gz
Algorithm Hash digest
SHA256 6ef6b8a2ebe2190c2b9c3542450b622a2ba6b9b9997760058300040920949f92
MD5 db203d7b31b4642a91bb60d71f11fae7
BLAKE2b-256 dc597fc8fb68cf307e201c69f23112563e99f34fec1696a0ab076f398858b25b

See more details on using hashes here.

File details

Details for the file python_leaguepedia_db-0.1.1b1-py3-none-any.whl.

File metadata

  • Download URL: python_leaguepedia_db-0.1.1b1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for python_leaguepedia_db-0.1.1b1-py3-none-any.whl
Algorithm Hash digest
SHA256 47b5dfcdc08d2fd91d85f760700b329edb521d8cffb5bb1dcc8934436708a4cb
MD5 15c9962a7c9fa555388b341b49df963d
BLAKE2b-256 0bf3c04606ff3c6cec612b7996de4aa108e2c8e41da7dab31b1010c4c8500a05

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