lol_bayes_auth
Simple authentication package for the Bayes Esports API
Install
pip install lol_bayes_auth
If you wish to install the latest development version:
pip install -U git+https://github.com/Allan-Cao/lol_bayes_auth
Example Usage
Get a Bayes Esports authentication token using a v1/v2 login
from lol_bayes_auth import BayesAuth
authv1 = BayesAuth('v1username', 'v1password', True)
authv2 = BayesAuth('v2username', 'v2password')
v1token = authv1.get_token()
v2token = authv2.get_token()
Get a formatted header to authenticate with the Bayes Esports API
auth = BayesAuth('username', 'password')
header = auth.get_headers()
# Example usage with the requests library
requests.get(
f'https://lolesports-api.bayesesports.com/v2/games',
headers=auth.get_headers(),
params=parameters,
).json()
Metadata
Release files for lol_bayes_auth 0.1.4
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 |
|---|---|---|---|---|
| lol_bayes_auth-0.1.4.tar.gz | 14.6 kB | Without provenance | Details for lol_bayes_auth-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lol_bayes_auth-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for lol_bayes_auth-0.1.4-py3-none-any.whl |
Total release size: 29.8 kB
Release files / lol_bayes_auth-0.1.4.tar.gz
| Download URL | lol_bayes_auth-0.1.4.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3d8dc3baf037ea3aee4d11d648cea3d5714cbb63792d32d87dabb276982397f
|
|
BLAKE2b-256 checksum How to use checksums |
e30489b2cd654c034625e820610f1613acfdfe4d27c551c96f63dea00f887361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.10.7 Windows/10
|
Release files / lol_bayes_auth-0.1.4-py3-none-any.whl
| Download URL | lol_bayes_auth-0.1.4-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd52bf79a5d28a77b9639427bdf8c3856f67991f354e2585eec303c4ccdf25b2
|
|
BLAKE2b-256 checksum How to use checksums |
f667d51f933c5b7421ea2713f650b6abce14466ced6f770f6b32cf13e4dd3e61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.0 CPython/3.10.7 Windows/10
|
Security for lol_bayes_auth 0.1.4
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.