Skip to main content

Asynchronous wrapper for football API from API-SPORTS

Project description

apisports_football

PyPI version python

Russian version

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


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.4.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file apisports_football-1.0.3.4.tar.gz.

File metadata

  • Download URL: apisports_football-1.0.3.4.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for apisports_football-1.0.3.4.tar.gz
Algorithm Hash digest
SHA256 bc3f2072a84178b8e5086acde2329bb3e961db6a394341bc35bafce4608a50ca
MD5 2eef6844a868747c1d5469300f67b8fb
BLAKE2b-256 c9c8a3a627b8ddcbb800b41ee2a6a35232cc7c0f75a4d663650769f89b58acc8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page