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.3.tar.gz
(16.3 kB
view details)
File details
Details for the file apisports_football-1.0.3.tar.gz
.
File metadata
- Download URL: apisports_football-1.0.3.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8000382ff52ee28653bef76a714b2ad91eb3a550d0d32fff2710fe0baa26aec |
|
MD5 | 19d507d70a52edcf05534b70c8fd7ea2 |
|
BLAKE2b-256 | 24c60ac075dbc73eb48f0c215d2e4fb98427705845cc0ff85568cb89c25d5441 |