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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-leaguepedia-db-0.1.1b1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ef6b8a2ebe2190c2b9c3542450b622a2ba6b9b9997760058300040920949f92 |
|
MD5 | db203d7b31b4642a91bb60d71f11fae7 |
|
BLAKE2b-256 | dc597fc8fb68cf307e201c69f23112563e99f34fec1696a0ab076f398858b25b |
Close
Hashes for python_leaguepedia_db-0.1.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47b5dfcdc08d2fd91d85f760700b329edb521d8cffb5bb1dcc8934436708a4cb |
|
MD5 | 15c9962a7c9fa555388b341b49df963d |
|
BLAKE2b-256 | 0bf3c04606ff3c6cec612b7996de4aa108e2c8e41da7dab31b1010c4c8500a05 |