Skip to main content

A library to easily convert climbing route grades between different grading systems.

Project description

pyclimb

PyPI PyPI - Python Version codecov Code style: black GitHub Workflow Status PyPI - Wheel

A library to easily convert climbing route grades between different grading systems.

In rock climbing, mountaineering, and other climbing disciplines, climbers give a grade to a climbing route or boulder problem, intended to describe concisely the difficulty and danger of climbing it. Different types of climbing (such as sport climbing, bouldering or ice climbing) each have their own grading systems, and many nationalities developed their own, distinctive grading systems.

Install

The recommended installation is via pip:

pip install pyclimb

Usage

import pyclimb


pyclimb.convert(grade='6a+', grade_system='French', to='YDS')
// '5.10b'
pyclimb.convert(grade='9c', grade_system='French', to='YDS')
// '5.15d'
pyclimb.convert(grade='5.12a', grade_system='YDS', to='French')
// '7a+'

Note

This is a package under active development. Currently, only the following conversions are being supported:

Other conversions and different types of climbing will be included soon. These changes may drastically change the user-facing API, so do consult the semantic versioning of this package before upgrading to a newer version.

How to contribute

If you wish to contribute, this is a great place to start!

License

Distributed under the MIT License.

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

pyclimb-0.2.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

pyclimb-0.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pyclimb-0.2.0.tar.gz.

File metadata

  • Download URL: pyclimb-0.2.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1027-azure

File hashes

Hashes for pyclimb-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e3ea076b06842c4522181264834242c8c1db635ba9adeb7fc923474572472c7f
MD5 3d3de029750122864fdfc0e519fb727c
BLAKE2b-256 d9bc420817c88872c77ba35c903b95d2b219181be2228ca4631457bb6de51db8

See more details on using hashes here.

File details

Details for the file pyclimb-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyclimb-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1027-azure

File hashes

Hashes for pyclimb-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 503efbfff39f56e36061cfa4dfb9fa136e509b89e64837fd9fa0d882c662a241
MD5 80c898775bf53637eb5189f04578f777
BLAKE2b-256 e89bfea52ebe60cd22e1ddea6a3ba0e80fd7bedd2e075bad0c3ed8943150bfaa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page