Metadata-Version: 2.1
Name: redpoint
Version: 1.0.0
Summary: Climbing grade converter
Author-email: Marcin Kalinski <marcinkalinski1997@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Marcin Kaliński
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project-URL: Homepage, https://github.com/ciszko/redpoint
Project-URL: Issues, https://github.com/ciszko/redpoint/issues
Keywords: pip,climbing,converter
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

[![Python Versions](https://img.shields.io/badge/Python%20Version-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue?style=flat)](https://pypi.org/project/redpoint/)

[![Coverage Status](https://coveralls.io/repos/github/ciszko/redpoint/badge.svg?branch=master)](https://pypi.org/project/redpoint/)

# 🔴 redpoint

Converting climbing grades made easy!

## Overview

Converting the grades between the systems:

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

Comparing the difficulty of grades:

```python
Grade("5.14a", "YDS") > Grade("8a", "French")
>>> True
Grade("V11", "V-Scale") == Grade("8A", "Fontainebleau")
>>> True
```

Getting the range of the grade in different system:

```python
Grade("5a", "Brittish Tech.").to_range("French")
>>> [<5b, 'French'>, <5b+, 'French'>, <5c, 'French'>, <5c+, 'French'>, <6a, 'French'>]
```

For the full list of features check out the [documentation](https://ciszko.github.io/redpoint/).

## Installation

redpoint is available on Pypi and can be installed with:

```shell
python -m pip install redpoint
```

## Supported systems

`🔴 redpoint` supports all the systems available on [thecrag.com](https://www.thecrag.com/en/article/gradesonthecrag):

**Sport**:
- Band Sport (difficulty levels)
- Ewbanks
- YDS
- NCCS Scale
- French
- British Tech.
- UIAA
- South African
- Old South African
- Saxon
- Finnish
- Norwegian
- Polish
- Brazil Technical
- Swedish
- Russian

**Boulder**:
- Band Boulder (difficulty levels)
- V-Scale
- B-Scale
- S-Scale
- P-Scale
- Joshua Tree Scale
- Fontainebleau
- Annot B-Scale
- Font Traverse

**Other systems**:
- Band Other (difficulty levels)
- Aid
- Alpine Ice
- Water Ice
- Mixed Rock/Ice
- Ferrata Schall
- Ferrata Num
- Ferrata French
- Scottish Winter Technical
