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

Note that any columns except membership_number can be omitted.

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 | None Same name Forename
last_name str | None Same name Surname
email str | None Same name Email
telephone str | None telephone_day Telephone
dob datetime.date | None 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 | None membership_type British Cycling Member Type
british_cycling_membership_status str | None membership_status British Cycling Member Status
british_cycling_membership_expiry datetime.date | None valid_to_dt British Cycling Expiry

Metadata

Release files for british-cycling-utils 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for british-cycling-utils 0.7.0
File Size Uploaded
british_cycling_utils-0.7.0.tar.gz 34.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for british-cycling-utils 0.7.0
File Interpreter ABI Platform
british_cycling_utils-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.7 kB

Release files / british_cycling_utils-0.7.0.tar.gz

Download URL british_cycling_utils-0.7.0.tar.gz
Size 34.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ba179db1458f7fd7fbbc0ecfa07c0b21e8224c1a19ce4d20ee6306c63b2d93e8
BLAKE2b-256 checksum
How to use checksums
aaf3b51ce44bfb60789cb4bde637f002d032627ba0c895d062b3a2e1b0794c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.20 {"installer":{"name":"uv","version":"0.12.20","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}

Release files / british_cycling_utils-0.7.0-py3-none-any.whl

Download URL british_cycling_utils-0.7.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4dffe295ea73ae769befd7c8f4fc0ea84603f9651f07d9e2c5736bb76c28e804
BLAKE2b-256 checksum
How to use checksums
0178099238bd5c7745fdcded334e4e37d0febb699ad4487fafc7c46e09247ae1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.20 {"installer":{"name":"uv","version":"0.12.20","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}

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page