redpoint


Nameredpoint JSON
Version 1.1.0 PyPI version JSON
download
home_pageNone
SummaryClimbing grade converter
upload_time2025-02-24 10:00:20
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT 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.
keywords climbing converter pip
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![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&kill_cache=1)](https://pypi.org/project/redpoint/)

# 🔴 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:

```python
from redpoint import Grade

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

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

```python
from grading.systems import YDS

YDS("5.12a").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
UIAA("4") >= Ewbanks("33")  # False
```

Getting the range of the grade in different system:

```python
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](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):

Values after a comma represent corresponding class names from `redpoint.systems `

**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`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "redpoint",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "climbing, converter, pip",
    "author": null,
    "author_email": "Marcin Kalinski <marcinkalinski1997@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/17/d2/4fa6baa1ad49fd83bbc7c7f9fe9ab982b313be0bac3e7d6e8a00c3250b87/redpoint-1.1.0.tar.gz",
    "platform": null,
    "description": "[![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/)\n\n[![Coverage Status](https://coveralls.io/repos/github/ciszko/redpoint/badge.svg?branch=master&kill_cache=1)](https://pypi.org/project/redpoint/)\n\n# \ud83d\udd34 redpoint\n\nConverting climbing grades made easy!\n\n`\ud83d\udd34 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.\n\n## Overview\n\nConverting the grades between the systems:\n\n```python\nfrom redpoint import Grade\n\nGrade(\"5.12a\", \"YDS\").to(\"French\")  # <7a+, 'French'>\n```\n\nwhen typing `Grade` gets tedious, individual systems can be imported as well:\n\n```python\nfrom grading.systems import YDS\n\nYDS(\"5.12a\").to(\"French\")  # <7a+, 'French'>\n```\n\nComparing the difficulty of grades:\n\n```python\nGrade(\"5.14a\", \"YDS\") > Grade(\"8a\", \"French\")  # True\nGrade(\"V11\", \"V-Scale\") == Grade(\"8A\", \"Fontainebleau\")  # True\nUIAA(\"4\") >= Ewbanks(\"33\")  # False\n```\n\nGetting the range of the grade in different system:\n\n```python\nBrittish(\"5a\").to_range(\"French\")  # [<5b, 'French'>, <5b+, 'French'>, <5c, 'French'>, <5c+, 'French'>, <6a, 'French'>]\n```\n\nFor the full list of features check out the [documentation](https://ciszko.github.io/redpoint/).\n\n## Installation\n\nredpoint is available on Pypi and can be installed with:\n\n```shell\npython -m pip install redpoint\n```\n\n## Supported systems\n\n`\ud83d\udd34 redpoint` supports all the systems available on [thecrag.com](https://www.thecrag.com/en/article/gradesonthecrag):\n\nValues after a comma represent corresponding class names from `redpoint.systems `\n\n**Sport**:\n- Band Sport (difficulty levels), `BandSport`\n- Ewbanks, `Ewbanks`\n- YDS, `YDS`\n- NCCS Scale, `NCCS`\n- French, `French`\n- British Tech., `British`\n- UIAA, `UIAA`\n- South African, `SouthAfrican`\n- Old South African, `OldSouthAfrican`\n- Saxon, `Saxon`\n- Finnish, `Finnish`\n- Norwegian, `Norwegian`\n- Polish, `Polish`\n- Brazil Technical, `Brazilian`\n- Swedish, `Swedish`\n- Russian, `Russian`\n\n**Boulder**:\n- Band Boulder (difficulty levels), `BandBoulder`\n- V-Scale, `VScale`\n- B-Scale, `BScale`\n- S-Scale, `SScale`\n- P-Scale, `PScale`\n- Joshua Tree Scale, `JoshuaTree`\n- Fontainebleau, `Font`\n- Annot B-Scale, `AnnotBScale`\n- Font Traverse, `FontTraverse`\n\n**Other systems**:\n- Band Other (difficulty levels), `BandOther`\n- Aid, `Aid`\n- Alpine Ice, `AlpineIce`\n- Water Ice, `WaterIce`\n- Mixed Rock/Ice, `RockIce`\n- Ferrata Schall, `FerrataSchall`\n- Ferrata Num, `FerrataNum`\n- Ferrata French, `FerrataFrench`\n- Scottish Winter Technical, `ScottishWinter`\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2025 Marcin Kali\u0144ski  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.",
    "summary": "Climbing grade converter",
    "version": "1.1.0",
    "project_urls": {
        "Homepage": "https://github.com/ciszko/redpoint",
        "Issues": "https://github.com/ciszko/redpoint/issues"
    },
    "split_keywords": [
        "climbing",
        " converter",
        " pip"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d0dcb37d3a1cc6a3bee863099b880272c829b80006e2e9c8f8b2912772b394e1",
                "md5": "d495eff3a6dde846d48fa6fd9c8ab9af",
                "sha256": "c4b09b5c483f9f825e948df0a390cd1a05568e2a75f9bd9b333e4d84c0fe5e33"
            },
            "downloads": -1,
            "filename": "redpoint-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d495eff3a6dde846d48fa6fd9c8ab9af",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 12985,
            "upload_time": "2025-02-24T10:00:19",
            "upload_time_iso_8601": "2025-02-24T10:00:19.827288Z",
            "url": "https://files.pythonhosted.org/packages/d0/dc/b37d3a1cc6a3bee863099b880272c829b80006e2e9c8f8b2912772b394e1/redpoint-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "17d24fa6baa1ad49fd83bbc7c7f9fe9ab982b313be0bac3e7d6e8a00c3250b87",
                "md5": "705b152d3ce44df2357de5b487bf9655",
                "sha256": "4a44c15b5fc0b27eda39dd29d664ffc0767069bd9d0697547a5f93d6cf7909a6"
            },
            "downloads": -1,
            "filename": "redpoint-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "705b152d3ce44df2357de5b487bf9655",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 50536,
            "upload_time": "2025-02-24T10:00:20",
            "upload_time_iso_8601": "2025-02-24T10:00:20.914300Z",
            "url": "https://files.pythonhosted.org/packages/17/d2/4fa6baa1ad49fd83bbc7c7f9fe9ab982b313be0bac3e7d6e8a00c3250b87/redpoint-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-24 10:00:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ciszko",
    "github_project": "redpoint",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "redpoint"
}
        
Elapsed time: 0.87351s