semvec/pypi-packages huggingface dataset:
pgs-climbing 0.1.2
Classes to describe rock-climbing

# Climbing
This repo covers a few classes that describe rock-climbing.  It was created as an exercise in package development.

[Location on PyPi](https://pypi.org/project/pgs-climbing/)
[Location on Github](https://github.com/paul-stubley/Climbing)

## Quickstart
It is available to install using pip, e.g. for python3 use:

`python3 -m pip install pgs_climbing`

And can then be used by importing into your python files:

`from pgs_climbing import Crag, Route, Climber, GRADES_LIST`

## Contents
The classes are currently:

- Crag - A class to hold information about each climbing area, the routes it contains and its location.
- Route - A class to hold information about a particular route - its name, grade, height etc.

- Climber - A class to hold information about a climber, the routes they have attempted/climbed and when.

The class descriptions can be found in the `climbing_package/pgs_climbing` directory

## Example output

There is a jupyter notebook in ```examples/``` if you want to see it in action

It currently has two basic visual summary methods, one on the crag class summarising the routes at that crag:

![Crag_summary](examples/crag_summary.png)

and one on the climber class, showing their progress over time: 

![Climber_progress](examples/climber_progress.png)
pytest-pspec 0.0.4
A rspec format reporter for Python ptest
Keywords: pytest pspec test report bdd rspec

pytest-pspec
==============

.. image:: https://travis-ci.org/gowtham-sai/pytest-pspec.svg?branch=master
    :target: https://travis-ci.org/gowtham-sai/pytest-pspec

.. image:: https://codecov.io/gh/gowtham-sai/pytest-pspec/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/gowtham-sai/pytest-pspec

A `pspec format`_ reporter for pytest

.. _pspec format: https://en.wikipedia.org/wiki/RSpec

.. image:: https://i.imgur.com/cCMJXHe.png

Install
-------

::

    pip install pytest-pspec


Usage
-----

Add the parameter `--pspec` when running `pytest`. Ex:

::

    pytest --pspec your-tests/

Tip: If you don't want to type ``--pspec`` every time you run ``pytest``, add it
to `addopts <https://docs.pytest.org/en/latest/customize.html#confval-addopts>`_
in your `ini file <https://docs.pytest.org/en/latest/customize.html#initialization-determining-rootdir-and-inifile>`_. Ex:

.. code-block:: ini

    # content of pytest.ini
    # (or tox.ini or setup.cfg)
    [pytest]
    addopts = --pspec


Demo Code
---------

Add the doc strings Ex:

.. code-block:: python

    import unittest

    class TestWayTwo(unittest.TestCase):
        "Pspec Python TDD"

        def test_should_add(self):
            "it adds two integers and returns integer"
            self.assertEqual(2+2, 4)

        def test_should_find_difference_between_integers(self):
            self.assertEqual(4-2, 2)

running ``pytest --pspec`` outputs

.. code-block::

    demo
     ✓ it adds two integers and returns integer
     ✓ should find difference between integers



Configuration file options
--------------------------

pspec\_format
~~~~~~~~~~~~~~~

Specifies pspec report format, ``plaintext`` or ``utf8`` (default:
``utf8``). Ex:

.. code:: ini

    # content of pytest.ini
    # (or tox.ini or setup.cfg)
    [pytest]
    pspec_format = plaintext

::

    $ pytest test_demo.py
    ============================= test session starts ==============================
    platform darwin -- Python 3.5.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0
    rootdir: /private/tmp/demo, inifile: pytest.ini
    plugins: pspec-dev
    collected 2 items

    test_demo.py
    Pytest pspec
     [x] prints a BDD style output to your tests
     [x] lets you focus on the behavior