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
Built Distribution
File details
Details for the file apisports_football-1.0.3.3.tar.gz
.
File metadata
- Download URL: apisports_football-1.0.3.3.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba5578cc61f6769df04c495e82d1b34585c99687781407af9111940dd7f9c33 |
|
MD5 | 81b003279bc8a477814ecb587168139b |
|
BLAKE2b-256 | 667aea567536ea8b04628d3fbf41a3b3b1be50e0a5e655e41b766319d169df74 |
File details
Details for the file apisports_football-1.0.3.3-py3-none-any.whl
.
File metadata
- Download URL: apisports_football-1.0.3.3-py3-none-any.whl
- Upload date:
- Size: 32.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3163ff6b895104d9a742c050e78c77ac8959a0e526a2a921525029221fbbbe2b |
|
MD5 | 907c9ade558aa8f65713e0c3ebf59283 |
|
BLAKE2b-256 | 8b227c7722feab03d852494296a5dbe4de6bbfeb735470373bc656b0b1395374 |