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

Uploaded Source

Built Distribution

apisports_football-1.0.4-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for apisports_football-1.0.4.tar.gz
Algorithm Hash digest
SHA256 49374e34f19f76fbf9d79778d49e5ebefe0e5614e2e21d215b3bef5d7d76ae77
MD5 e29b82da9ec1b93929a6e96b6f772ebf
BLAKE2b-256 e8e9eee9447890ff374599e39707114d11ceaca9222264831914458b305416e0

See more details on using hashes here.

File details

Details for the file apisports_football-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for apisports_football-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba2dbf564eb780c4925a60d6298a9aafc3e884a8b68add027a650911f092e0d
MD5 cfe3de93244ad1afb7b237e421ab96f1
BLAKE2b-256 c1a421c7bd26b1216b2b0b07f7bf6841ebcfad52b89775a531d7975f6add809a

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