Skip to main content

Climbing grade converter

Project description

Python Versions

Coverage Status

🔴 redpoint

Converting climbing grades made easy!

🔴 redpoint is a Python library that simplifies climbing grade conversions. It supports a wide range of climbing grade systems (sport, bouldering, and more) from thecrag.com, allowing users to easily convert between systems (e.g., YDS to French), compare the difficulty of grades, and even generate ranges of equivalent grades.

Overview

Converting the grades between the systems:

from redpoint import Grade

Grade("5.12a", "YDS").to("French")  # <7a+, 'French'>

when typing Grade gets tedious, individual systems can be imported as well:

from grading.systems import YDS

YDS("5.12a").to("French")  # <7a+, 'French'>

Comparing the difficulty of grades:

Grade("5.14a", "YDS") > Grade("8a", "French")  # True
Grade("V11", "V-Scale") == Grade("8A", "Fontainebleau")  # True
UIAA("4") >= Ewbanks("33")  # False

Getting the range of the grade in different system:

Brittish("5a").to_range("French")  # [<5b, 'French'>, <5b+, 'French'>, <5c, 'French'>, <5c+, 'French'>, <6a, 'French'>]

For the full list of features check out the documentation.

Installation

redpoint is available on Pypi and can be installed with:

python -m pip install redpoint

Supported systems

🔴 redpoint supports all the systems available on thecrag.com:

Values after a comma represent corresponding class names from redpoint.systems, thus can be used to initialize the class.

Sport:

  • Band Sport (difficulty levels), BandSport
  • Ewbanks, Ewbanks
  • YDS, YDS
  • NCCS Scale, NCCS
  • French, French
  • British Tech., British
  • UIAA, UIAA
  • South African, SouthAfrican
  • Old South African, OldSouthAfrican
  • Saxon, Saxon
  • Finnish, Finnish
  • Norwegian, Norwegian
  • Polish, Polish
  • Brazil Technical, Brazilian
  • Swedish, Swedish
  • Russian, Russian

Boulder:

  • Band Boulder (difficulty levels), BandBoulder
  • V-Scale, VScale
  • B-Scale, BScale
  • S-Scale, SScale
  • P-Scale, PScale
  • Joshua Tree Scale, JoshuaTree
  • Fontainebleau, Font
  • Annot B-Scale, AnnotBScale
  • Font Traverse, FontTraverse

Other systems:

  • Band Other (difficulty levels), BandOther
  • Aid, Aid
  • Alpine Ice, AlpineIce
  • Water Ice, WaterIce
  • Mixed Rock/Ice, RockIce
  • Ferrata Schall, FerrataSchall
  • Ferrata Num, FerrataNum
  • Ferrata French, FerrataFrench
  • Scottish Winter Technical, ScottishWinter

CLI

🔴 redpoint comes with a built-in CLI, so that you can convert the grades straight from the terminal. After installing the package run:

redpoint --help

to see the available commands:

Usage: redpoint [OPTIONS] COMMAND [ARGS]...

  Redpoint: Climbing grade conversion tool.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  compare  Compares the difficulty between two grades.
  convert  Converts the grade into desired system.
  system   Lists all grades from desired system.
  systems  Lists supported climbing grade systems.

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

redpoint-1.4.1.tar.gz (55.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redpoint-1.4.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file redpoint-1.4.1.tar.gz.

File metadata

  • Download URL: redpoint-1.4.1.tar.gz
  • Upload date:
  • Size: 55.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.2

File hashes

Hashes for redpoint-1.4.1.tar.gz
Algorithm Hash digest
SHA256 9120370d636e3bd3090bb49190d5dbcbe497a6b8182d7f72d7f40fc8a6b4aa98
MD5 a8f060fcdbe7fb78111fe8d932fbdaba
BLAKE2b-256 6ecdfe7a862cfa7d2e3d985f4ce1638dfb963d47bfd625c1f251fe47a9ffaa78

See more details on using hashes here.

File details

Details for the file redpoint-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: redpoint-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.2

File hashes

Hashes for redpoint-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c8cdb9d5e663c95c0c2a44125788a071d20666b9e19d27c580067a11f8cdf97
MD5 50518017b31a422d2e9003cbe18cb59b
BLAKE2b-256 f874a2801243c7ec119e296c2f44b531773213532d160030ad4521dea4d59ef9

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