Skip to main content

british-cycling-utils

About

Python library package to manipulate data exported from British Cycling ('BC'). Unofficial and not affiliated.

Installation

Install from PyPI, e.g.:

pip install british-cycling-utils

Example code

Load club subscriptions from a CSV previously exported from the BC Club Management Tool

from pathlib import Path

from british_cycling_utils.club_subscription import ClubSubscription


file_path = Path(__file__).parent / "exported.csv"
club_subscriptions = ClubSubscription.list_from_bc_csv(file_path)
print(f"Loaded {len(club_subscriptions)} subscriptions from CSV.")

Each ClubSubscription is an instance of an attrs class with these fields:

Field Type Note Derived from CSV column Corresponds to UI column
british_cycling_membership_number int This is a really a BC profile/login id, not limited to current BC members membership_number British Cycling Member, but this is blank if not a current BC member
first_name str Same name Forename
last_name str Same name Surname
email str Same name Email
telephone str telephone_day Telephone
dob datetime.date Same name Dob
emergency_contact_name str|None Same name None: only appears in person's detail view
emergency_contact_number str|None Same name None: only appears in person's detail view
primary_club str|None Same name Primary Club
club_membership_expiry datetime.date|None end_dt Club Membership Expiry
british_cycling_membership_type str membership_type British Cycling Member Type
british_cycling_membership_status str membership_status British Cycling Member Status
british_cycling_membership_expiry datetime.date|None valid_to_dt British Cycling Expiry

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

british_cycling_utils-0.5.1.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

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

british_cycling_utils-0.5.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file british_cycling_utils-0.5.1.tar.gz.

File metadata

  • Download URL: british_cycling_utils-0.5.1.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for british_cycling_utils-0.5.1.tar.gz
Algorithm Hash digest
SHA256 bb4cd484f9888f6debf91b7cdc24c7eea42b8ac135f7b35cc93ada540ac24b8e
MD5 512f7ab30b2b729af501b3387c02fdf0
BLAKE2b-256 039968f8e4faa6a424c81bb5826b043e1bc27112a217de02d0946fdd80bf9e56

See more details on using hashes here.

File details

Details for the file british_cycling_utils-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: british_cycling_utils-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for british_cycling_utils-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50923f59a03d267383a83728c5da180c0dd013819c1a32b7f2b7fe122719d2ed
MD5 83695e90f1b01ec9c7131c8e664ab4a4
BLAKE2b-256 745cc6f1600890288d46f33682cd3f46ca5452a8729ab8949849188a6b05af3d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 files

0.5.0

2 files

0.4.0.post0

2 files

0.4.0

2 files

0.3.1

2 files

Supported by

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