Asynchronous wrapper for football API from API-SPORTS
Project description
apisports_football
It's a handy API wrapper that makes it easy to work with https://www.api-football.com/.
Official documentation: https://www.api-football.com/documentation-v3
Installing
- With git
git clone https://github.com/h3ave/apisports_football
cd apisports_football
pip install -r requirements.txt
- With pip
pip install apisports-football
Dependencies
- Python >= 3.7
- aiohttp
- pydantic
- typing-extensions
Getting API Key
Register on API-Sports.
Go to profile and copy key from API-Key field.
Usage example
import asyncio
from apisports_football import Wrapper
api = Wrapper('TOKEN_HERE')
async def main() -> None:
data = await api.leagues().leagues(
country = 'Spain',
season = 2024
)
print(data)
if __name__ == '__main__':
asyncio.run(main())
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
apisports_football-1.0.2.tar.gz
(15.1 kB
view details)
File details
Details for the file apisports_football-1.0.2.tar.gz
.
File metadata
- Download URL: apisports_football-1.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07902d29c425b1f04ca16a8a2a8b2d9d9d06995abb2cf308ae8cf5a9a2ae570f |
|
MD5 | 0f2a1c0e6f965c5ef6b72a5bec010bc5 |
|
BLAKE2b-256 | 68de8479b098cc33dc549b00e86ab51abd05ac31512d28fc5f550620453a41eb |