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.1.tar.gz (9.4 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.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: full_time_api-1.0.1.tar.gz
  • Upload date:
  • Size: 9.4 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.1.tar.gz
Algorithm Hash digest
SHA256 8ad1131fe35f5bd1e2818d31ac4959fb25b93a08530c8f7d5103127c76e0ba9f
MD5 5797880fdbac8e3b09ce14730b97fd2a
BLAKE2b-256 b3b6afdc0247612396dcaecc3d80ceba3bf9ef8c1a3a01f8a6a1735611d7c5dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: full_time_api-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9288b7a63410ad144733169b80c7030a03937924118b3fad3750d5cc29c473b5
MD5 116403c9d3d53c65a78bfa17c0bbec28
BLAKE2b-256 3b067b5e4c2cad98f445d107e3e4a77fa32abca8e70ea334474d4f039fb75cf9

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