League of Legends API Wrapper
lolwrapper is a Python wrapper for the Riot League of Legends API endpoints. lolwrapper works with Python >= 3.6
Installation
$ pip install lolwrapper
Usage
>>> from lol.riot import Riot
>>>
>>> api = Riot('your-api-key')
Available Resources
>>> api.champion
>>> api.championmastery
>>> api.league
>>> api.lolstaticdata
>>> api.lolstatus
>>> api.masteries
>>> api.match
>>> api.spectator
>>> api.summoner
>>> api.thirdpartycode
>>> api.tftleague
>>> api.tftmatch
>>> api.tftsummoner
Get a summoner
- Get by name, encrypted account ID, encrypted summoner ID, or encrypted PUUID
>>> r = api.summoner.get(name='tenmo player', region='na')
>>> r = api.summoner.get(encrypted_account_id='account-id', region='na')
>>> r = api.summoner.get(encrypted_summoner_id='summoner-id', region='na')
>>> r = api.summoner.get(encrypted_puuid='puuid', region='na')
>>> r.json()
Testing
Testing requires pytest-cov, pytest, and coverage
Tests can be run using just pytest
>>> pytest
Or with coverage
>>> pytest --cov=lol ./
Add coverage badge with
>>> coverage-badge
Metadata
Release files for lolwrapper 1.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lolwrapper-1.8.1.tar.gz | 9.5 kB | Without provenance | Details for lolwrapper-1.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lolwrapper-1.8.1-py3-none-any.whl | Python 3 | none | any | Details for lolwrapper-1.8.1-py3-none-any.whl |
Total release size: 27.3 kB
Release files / lolwrapper-1.8.1.tar.gz
| Download URL | lolwrapper-1.8.1.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ecbe003c088068e0ef1543ec03bb07c43152c2ab3582f78917dadfe42c57e35
|
|
BLAKE2b-256 checksum How to use checksums |
905ef668f58a73d96868c95c5f2a96adc0a8d265ea314f02b634e6698f00a99b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / lolwrapper-1.8.1-py3-none-any.whl
| Download URL | lolwrapper-1.8.1-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06c57fbc0fbdd36fd9ba66dce830d42873921161f20eba15232265674a7aedc1
|
|
BLAKE2b-256 checksum How to use checksums |
5a058a8ec83038d811b3227ba3d5b3aca45b18420d8a3cf8793915caa5fe1fb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for lolwrapper 1.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.