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.5.0.tar.gz (20.3 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.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: british_cycling_utils-0.5.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.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}

File hashes

Hashes for british_cycling_utils-0.5.0.tar.gz
Algorithm Hash digest
SHA256 5a9c6910249c88acf8a3b9a800a2acc166d3c784ed20c5c06f0c94429eae9a4d
MD5 8169494f647a7feba2c0e6a3c609df8b
BLAKE2b-256 f000a8cc77324937db04c55659de34fcc128bca10fbf32046dd41118465853dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: british_cycling_utils-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.9 {"installer":{"name":"uv","version":"0.11.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}

File hashes

Hashes for british_cycling_utils-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6dc0552e6b0e4bc6503fbd98524584eaf03342f4cb0c3af42fe55f1ded3ebd0
MD5 ef6822f64afb2423bbd431c99df2aadd
BLAKE2b-256 d204df817059d276a2618276d85f2508aec76e46b489a60e6fd06fe81e20421a

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