Skip to main content

Unofficial library to work with data exported from British Cycling

Project description

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

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

british_cycling_utils-0.4.0.post0.tar.gz (19.5 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.4.0.post0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file british_cycling_utils-0.4.0.post0.tar.gz.

File metadata

  • Download URL: british_cycling_utils-0.4.0.post0.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.4.0.post0.tar.gz
Algorithm Hash digest
SHA256 392e304fd90ed5e7b2e0bc04a067cd3b9d16226ba9dbca392518f6bd0327736b
MD5 e9316e729d8f1c0fa28203101fa1231f
BLAKE2b-256 9143ca678d057a04cb2d0f2349dc980a4643bcbe169479d4fdddd9418c43e5d4

See more details on using hashes here.

File details

Details for the file british_cycling_utils-0.4.0.post0-py3-none-any.whl.

File metadata

  • Download URL: british_cycling_utils-0.4.0.post0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.4.0.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfcd484e7df42290bca38803e3166b429aeb52bb327045a834c0c5580273912f
MD5 a6f94d7460a03627194c6dc382f99ede
BLAKE2b-256 44fb3841e4f92a2a5d898b7779becb91884da5aed89eec30a17b840af9a3af55

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