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. This is the Python port of the jadgray/full-time-api PHP package.
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 ID1234FixtureGroupKey=1_234→ group ID1_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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file full_time_api-1.0.0.tar.gz.
File metadata
- Download URL: full_time_api-1.0.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1e630c6f7c401fb78b6a6b3abca408960fbc7fbf46b3fc45a243658601e5aa2
|
|
| MD5 |
45024b03705bf0d80bb33e2e2895ef5a
|
|
| BLAKE2b-256 |
0f433532c8002a80a6cf0dc491f752f27dae714980dff2594f095ff70b02ba04
|
File details
Details for the file full_time_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: full_time_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ee309679e236d22ca0fe048b0f91cb336fe20f634c2a1ebca6129c9310d7646
|
|
| MD5 |
f58a38f923d4f16f78b1d1d936584cd8
|
|
| BLAKE2b-256 |
27b751f30b995da433f97436d8c6e21a54020499fefe9427d786bdf0bacc8267
|