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 GitHub, e.g.:

pip install git+https://github.com/elliot-100/british-cycling-utils

I recommend installing a specific version, e.g.:

pip install git+https://github.com/elliot-100/british-cycling-utils@v0.1.2

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.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-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: british_cycling_utils-0.4.0.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.tar.gz
Algorithm Hash digest
SHA256 1e8ea8aa1d305925e4b49a0586898f0acd738d1dfeb61d19870d44ab2006ddb5
MD5 a1adea84af45cde9b8725e3a8cd93139
BLAKE2b-256 2cf1569fd07abc815ac3ee572970268cf42fc7bb6dbc141f074e06c9979065bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: british_cycling_utils-0.4.0-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-py3-none-any.whl
Algorithm Hash digest
SHA256 8360946f6467ee55a989c24f80c174e731e05e6669835d3b9467e848c2a68cab
MD5 64cfdbc718b5a12e168bf1a68d911036
BLAKE2b-256 7dabcb87b5a1115cee5e6b3c9e87a00641bd7a73942628b025e63906c0ee8032

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