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 |
Metadata
Release files for british-cycling-utils 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| british_cycling_utils-0.6.0.tar.gz | 34.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| british_cycling_utils-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.8 kB
Release files / british_cycling_utils-0.6.0.tar.gz
| Download URL | british_cycling_utils-0.6.0.tar.gz |
|---|---|
| Size | 34.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f2aa8f15e4a82166416ffd001bb928ce9a9184aed723a49b6345f173d51793c
|
|
BLAKE2b-256 checksum How to use checksums |
9a2694d658e2e18fca1bc6dceda3862d1f6412bd995db5915de9cd7ece2af7d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.6.0-py3-none-any.whl
| Download URL | british_cycling_utils-0.6.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a35893fa829380859900c675e9d4a74e6e5c067a6ac2ca6b44141118d2554ece
|
|
BLAKE2b-256 checksum How to use checksums |
f6979dd2a9efcfbdc036b344359ac56c3a9cc042d8417dd04597743814a7f2ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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}
|