semvec/pypi-packages huggingface dataset:
pytest-informative-node 1.0.0
display more node ininformation.
License: MIT
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*

# Welcome to pytest-informative-node
[![PyPi version](https://img.shields.io/pypi/v/pytest-informative-node.svg)](https://pypi.org/project/pytest-informative-node/)
![Python version](https://img.shields.io/pypi/pyversions/pytest-informative-node.svg)
[![Build Status](https://travis-ci.com/megachweng/pytest-informative-node.svg?branch=master)](https://travis-ci.com/megachweng/pytest-informative-node)
[![codecov](https://codecov.io/gh/megachweng/pytest-informative-node/branch/master/graph/badge.svg)](https://codecov.io/gh/megachweng/pytest-informative-node)  

Display more node information.

## Requirements
* pytest >= 3.10.0
* python >= 3.6

**Not compatible with Python2.x**

## How to install
`$ pip install pytest-informative-node`
## How to use
```ini
# pytest.ini
[pytest]
[informative_node_id]
enable    : true
delimiter : @
```

write docstring with `leading delimiter` you defined in `pytest.ini [informative_node_id]` section as node name.
```python
class TestClass:
    """@you node id"""

def test_func():
    """@you node id"""
``` 
> Test file and Test Package is also supported, just write docstring in the top of file and `__init__.py` respectively.
## Options
> **Notice!** `[pytest]`section **must** be included.  
> **Notice!** All options bellow **must** be under `[informative_node_id]` section in `pytest.ini`.
* `enable`    : [true / false] default is `false`. 
* `delimiter` : the delimiter to extract node_id in docstring, default is `@`.

## Example
```python
# Test file structure
scenario
|
|__functionality
    |__ __init__.py
    |   |# content of __init__.py
    |   |"""@LoginSection"""
    |   #\---------------------
    |
    |__ test_one.py
        |# content of __init__.py
        |   """@TestFile"""
        |   import pytest
        |   class TestClass:
        |       """@TestGroup"""
        |       
        |       @pytest.mark.parametrize('n', [1, 2], ids=['first', 'second'])
        |       def test_demo(self, n):
        |           """@DemoTest"""
        |           assert n == 1
        #\-----------------------
```
```text
# Test report structure
✕LoginSection
|
|__ ✕TestFile
    |
    |__ ✕TestGroup
        |
        |__ ✕Demo Test
            |__ ✓first
            |__ ✕second

```
>**Notice:** Duplicate custom node id under same test level is not allowed.  
e.g.
```python
def test_a():
    """@ login"""
def test_b():
    """@ login""" # <-----XXXXXX!
```
## Contributing
Contributions are very welcome. Tests can be run with [tox](https://tox.readthedocs.io/en/latest/), please ensure
the coverage at least stays the same before you submit a pull request.

## License
Distributed under the terms of the [MIT](http://opensource.org/licenses/MIT) license, "pytest-informative-node" is free and open source software


## Known Issue
* If you test with Pycharm, you cannot navigate back to source test file from Test Runner tab.
stats-scraper 1.0.0
Scrapes NBA player data from basketball-reference.com and has few methods to sort the data
License: MIT

stats_scraper
=============
A simple CLI python web scraper that scrapes NBA
player data from basketball-reference.org and
allows players to be sorted by points, rebounds, and
assists and displayed.

Installation
------------
Save the .py files under Stats-Scraper and run it with python3. See requirements.txt for any module requirements and install them with pip

Or use pip to install stats_scraper directly

::

    pip install stats_scraper

Usage
-----
Code excerpt from __main__.py
::

    from stats_scraper.scraper import Scraper

    scraper = Scraper()

    result = scraper.find_player_by_name("Ivica Zubac")
    print("Printing result\n")
    for p in result:
        print(p)

    sorted_points = scraper.sort_by_points("SG")
    print("========Printing top scorers========\n")
    for scores in sorted_points:
        print(scores[0], scores[1])

    sorted_assists = scraper.sort_by_assists("PF")
    print("\n\n\n=========Printing top 10 assisters========\n")
    count = 0
    for assists in sorted_assists:
        if(count >= 10):
            break
        print(assists[0], assists[1])
        count += 1

    sorted_rebounds = scraper.sort_by_rebounds("PG", "SG")
    print("\n\n\n=========Printing top 20 rebounders========\n")
    count = 0
    for rebounds in sorted_rebounds:
        if(count >= 20):
            break
        print(rebounds[0], rebounds[1])
        count += 1

Acknowledgment
--------------
Thank you to Oscar Sanchez's article "Web Scraping NBA Stats"
for part of the scraping code

License
-------
`MIT
<https://choosealicense.com/licenses/mit/>`_
pipe2codeblock 1.0.0
Pipe text into a code block in a markdown file.
License: MIT
Requires Python: >=3.4

# pipe2codeblock

Pipe text into a code block in a markdown file.

Originally designed for putting a terminal command's `--help` text into a `README.md`.

## Usage

Put a fenced codeblock in your target file with the info string `help`.

The fenced codeblock is defined as it is by [CommonMark](https://spec.commonmark.org/0.29/#fenced-code-blocks),
with the exception that it cannot be indented (to prevent spaces being lstripped inside the block).

Then do 

```bash
your_awesome_tool --help | p2c README.md
```

to pipe the text in, or

```bash
p2c README.md input_file.txt
```

to read from a file.

The `--tgt` option allows you to choose which info string to target (instead of `"help"`).
Only the first instance will be used.


## Usage

```help
usage: p2c [-h] [--tgt TGT] outfile [infile]

Pipe text into a code block in a markdown file.

positional arguments:
  outfile
  infile

optional arguments:
  -h, --help  show this help message and exit
  --tgt TGT   Target a code block with a different info string (default
              'help')
```

Generated by dogfooding: `p2c --help | p2c README.md`