Skip to main content

A simple tool to help obtain fixture information from the FA Full-Time system.

Project description

full-time-api (Python)

A simple tool to obtain fixture information from the FA Full-Time system.

Requirements

  • Python >= 3.8

Installation

pip install full-time-api

Or from source in this directory:

pip install .

Getting season and group IDs

You need a Season ID and Group ID from Full-Time. Open the division page on fulltime.thefa.com and take them from the URL:

  • selectedSeason=1234 → season ID 1234
  • FixtureGroupKey=1_234 → group ID 1_234

Usage

from full_time_api import Division

division = Division()

# Team list
teams = division.get_teams(1234, "1_234")

# Raw fixtures (list of rows, each row is list of cell strings)
fixtures = division.get_fixtures(1234, "1_234")

# Formatted fixtures (list of dicts: Date, Home, Away, Time, FixtureType)
fixtures = division.get_formatted_fixtures(1234, "1_234")

# Raw results
results = division.get_results(1234, "1_234")

# Formatted results (list of dicts: Date, Time, Home, HomeScore, Away, AwayScore, FullScore)
results = division.get_formatted_results(1234, "1_234")

Optional formatting

# Custom date/time format (strftime-style)
results = division.get_formatted_results(
    1234, "1_234",
    date_format="%Y-%m-%d",
    time_format="%H:%M"
)

# Formatted fixtures: exclude TBC or cup fixtures, custom formatter
from full_time_api.formatters import FixtureFormatter

fixtures = division.get_formatted_fixtures(
    1234, "1_234",
    formatter=FixtureFormatter(),
    include_tbc_fixtures=True,
    include_cup_fixtures=False,
    date_format="%d/%m/%Y",
    time_format="%H:%M"
)

Using your own HTTP client

from full_time_api import FullTimeClient, Division

# Division uses FullTimeClient() by default; you can pass a custom one
# if you need different timeouts or session config (extend FullTimeClient).
division = Division(client=FullTimeClient())

License

MIT (same as the original PHP package).

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

full_time_api-1.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

full_time_api-1.0.2-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file full_time_api-1.0.2.tar.gz.

File metadata

  • Download URL: full_time_api-1.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for full_time_api-1.0.2.tar.gz
Algorithm Hash digest
SHA256 432cb8825c08943bb21d0e74311889d2093ac1140103100b71d4aca781dbd778
MD5 d9a605f3918551f4fe899c25be1586a2
BLAKE2b-256 85365e3f09f4167131cd1995ca84221b0cb2eaeb4a360790fa5e3f71d0406799

See more details on using hashes here.

File details

Details for the file full_time_api-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: full_time_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for full_time_api-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61710a80f1057725ccf200938aba62d1f20d5c1daa556ec043e0fbe3d5e4be0a
MD5 ceac1ca801630900b1ee5062d86464a8
BLAKE2b-256 c02c8a4e7c089285b79acdcfdd79e950a4ca807445fc622fbb40ffd992705a48

See more details on using hashes here.

Supported by

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