semvec/pypi-packages huggingface dataset:
risksutils 0.1.16
Scripts for credit scoring analysis
License: MIT
Keywords: woe credit scoring information-value visualization

Скрипты для аналитики скоринга
==============================

|GitHub|_
|ReadTheDocs|_
|TravisImage|_
|Coverage|_
|Pypi|_
|Binder|_

В данном проекте содержится набор скриптов полезных в скоринге.

Установка
---------

Для установки воспользуйтесь pip::

    pip install risksutils


.. |TravisImage| image:: https://travis-ci.org/dshulchevskii/risksutils.svg?branch=master
.. _TravisImage: https://travis-ci.org/dshulchevskii/risksutils
.. |Coverage| image:: https://codecov.io/gh/dshulchevskii/risksutils/branch/master/graph/badge.svg
.. _Coverage: https://codecov.io/gh/dshulchevskii/risksutils
.. _ReadTheDocs: http://risksutils.readthedocs.io/ru/latest/?badge=latest
.. |ReadTheDocs| image:: https://readthedocs.org/projects/risksutils/badge/?version=latest
.. |GitHub| image:: https://img.shields.io/badge/github--green.svg
.. _GitHub: https://github.com/dshulchevskii/risksutils
.. |Pypi| image:: https://badge.fury.io/py/risksutils.svg
.. _Pypi: https://badge.fury.io/py/risksutils

.. |Binder| image:: https://mybinder.org/badge.svg 
.. _Binder: https://mybinder.org/v2/gh/dshulchevskii/risksutils/master?filepath=docs
scraperex 0.2.1
Scraperex is making ridiculously easy to scrape web resources, staying hidden, by using dynamic proxy and user agent.
License: MIT
Requires Python: >=3.7
Keywords: scraper proxy user-agent

![Scraperex](https://i.ibb.co/NKNQj9m/scraper.png "Scraperex")

Web scraper using dynamic proxy and user agent.

#### Description

Scraperex is simple and easy to use web scraper for retreiving data from request and **avoiding HTTP 503 error** (usually emerges when server is watching for bots/crawlers/requests while regular scraping). 

Pakage is generating random user-agent headers using [fake-useragent](https://pypi.org/project/fake-useragent/), and a list of proxy servers that is used while maiking requests.


#### Installation
```python
pip install scraperex
```

#### Dependencies
* [requests](https://pypi.org/project/requests/)
* [fake-useragent](https://pypi.org/project/fake-useragent/)

#### Usage
```python
import scraperex
```
**Scrape textual response**
Basic usage requires one paramether of type dictionary which contains ```url``` to the web resource, and ```regex``` which will extract the data from the response.
```python
config = {
    'my_scraping': {
        'method': 'GET',
        'url': 'https://www.resource.for/scraping/1',
        'params': { perPage: 5 },
        'regex': r'my_regular_expression'
    }
}

result = scraperex.find(config)
```
**Scrape json response**
If you set configuration ```json``` option **True** then ```regex``` option will be ignored and ```(requests) response.json()``` will be invoked.
```python
config = {
    'my_scraping': {
        'method': 'GET',
        'url': 'https://www.resource.for/scraping/2',
        'params': { perPage: 5 },
        'json': True
    }
}

result = scraperex.find(config)
```

***Note**: If proxy server fails, next one from the list will be used, while proxy list is not exhausted or limit is not touched. You can set limitation by sending ```attempts``` parameter. By default attempts are set to 3.*
```python
result = scraperex.find(config, attempts = 1)
```

#### Config
Config ```config``` must be of type dictionary which must contain at least one item used for scraping (as you can guess the amount of the requests will equal at least to the items amount).

***Note**: You also can build a tree of configurations and the same structure will be in your result.*

```python
config = {
    'item_A': {...},
    'item_B': {
        'item_C': {..},
        'item_D': {..},
    }
}
```

***Structured textual ( regex ) results***
You can rescrape response content as many times as you wish by passing to ```regex``` property dictionary instead of string (also it is useful if you want to structure your results, scraping will result in the same structure you defined).

```python
    'item_B': {
        'url': 'https://www.resource.for/scraping/2',
        'regex': {
            'structure_item': {
               'child_structure_item_1': r'my_regular_expression'
            }
            'structure_item_1':  r'my_regular_expression_1'
        }
    }
```

*Note: Constructive criticism is always awaited, please share your thoughts with me: [GitHub](https://github.com/userforce/scraper).*
pyymatcher 0.0.5
Implementation of pattern matching in Python(using gestalt approach)
License: MIT
Requires Python: >=3.6
Keywords: pattern-matching,pyymatcher

# PyyMatcher

[![License](https://img.shields.io/pypi/l/pyymatcher.svg)](https://pypi.org/project/pyymatcher/)
[![Version](https://img.shields.io/pypi/v/pyymatcher.svg)](https://pypi.org/project/pyymatcher/)
[![Python versions](https://img.shields.io/pypi/pyversions/pyymatcher.svg)](https://pypi.org/project/pyymatcher/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

> Implementation of pattern matching in Python(using gestalt approach).
> This library implements the underlaying algorithm(longest_common_substring) with C++.

## Installation

```python
pip install pyymatcher
```

## Usage example

```python
>> from pyymatcher import PyyMatcher, get_close_matches

>>> obj = PyyMatcher('Word1', 'word1')
>>> obj.ratio()
0.8
>>> obj.ratio(case_insensitive=True)
1.0
>>> obj.longest_common_substr
'ord1'

>>> word = 'thiis'
>>> get_close_matches(word=word, 
                      possibilities=['tthis', 'thhis', 'this', 'thiss', 'THIS'], 
                      n=1)
['this']
>>> get_close_matches(word=word, 
                      possibilities=['tthis', 'thhis', 'this', 'thiss', 'THIS'], 
                      n=2, 
                      case_insensitive=True)
['this', 'THIS']
```

## Release History

* 0.0.1
    * initial release

## Support

Python 3.6+

## Meta

Abdul Niyas P M – [@AbdulNiyas19](https://twitter.com/AbdulNiyas19) – abdulniyaspm@gmail.com

Distributed under the MIT license. See ``LICENSE`` for more information.

[Github Profile](https://github.com/abdulniyaspm)

## Contributing

1. Fork it (https://github.com/abdulniyaspm/pyymatcher/fork)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request
pytest-mark-no-py3 0.1.0
pytest plugin and bowler codemod to help migrate tests to Python 3
License: MIT

pytest-mark-no-py3
==================

This package provides a pytest plugin and a [Bowler](https://pybowler.io/)
codemod to help migrate tests to Python 3.

Any tests marked with `@pytest.mark.no_py3` will be expected to fail when
running on Python 3 and will fail the test if they pass unexpectedly.

Usage
-----

### Adding `@pytest.mark.no_py3`

1. Install this package in your test dependencies.

2. Run your tests on Python 3, savings the results with pytest's `--result-log`
   option, e.g.:

   ```sh
   tox -e py37 -- --result-log=test-results.txt
   ```

3. Install this package with the `bowler` extras in a Python 3 virtualenv:

   ```sh
   pip install pytest_mark_no_py3[bowler]
   ```

4. Apply the marker to all of the tests that failed on Python 3, running from
   the same directory that you ran the tests from:

   ```sh
   python -m pytest_mark_no_py3.add --result-log=path/to/result-log.txt path/to/your/tests
   ```

   If you're feeling confident, you can also use the `--no-interactive` option
   to apply the codemod without prompting to accept changes.

### Removing `@pytest.mark.no_py3`

1. Fix some code so that tests start passing on Python 3, violating the xfail.

2. Run your tests on Python 3, savings the results with pytest's `--result-log`
   option, e.g.:

   ```sh
   tox -e py37 -- --result-log=test-results.txt
   ```

   **Warning:** The only failing tests should be the tests that you fixed and
   want the marker removed from!

3. Install this package with the `bowler` extras in a Python 3 virtualenv:

   ```sh
   pip install pytest_mark_no_py3[bowler]
   ```

4. Remove the marker from all of the tests that "failed" (i.e. were expected to
   fail but actually passed) on Python 3, running from the same directory that
   you ran the tests from:

   ```sh
   python -m pytest_mark_no_py3.remove --result-log=path/to/result-log.txt path/to/your/tests
   ```

   If you're feeling confident, you can also use the `--no-interactive` option
   to apply the codemod without prompting to accept changes.

Running tests
-------------

Run `tox`.
rand-string 0.50
Generates a random string of a specified length.
License: MIT
Keywords: RANDOM,STRING,GENERATOR

# rand-string
Generates a random string of a specified length.

# Usage
Currently there are 5 types:
- uppercase
- lowercase
- upperlower
- alphanumerical
- ascii

You can probably guess what each one would create

The function requires 2 parameters type and length; Type of course is the above.
```py
import rand_string.rand_string as rand
rand.RandString(type, length)
```
Now lets look at some examples

uppercase:
```py
print(rand.RandString("uppercase", 10))
# Output: TPDROEAVRY
```

lowercase:
```py
print(rand.RandString("lowercase", 10))
# Output: mdvsewzkwf
```

upperlower:
```py
print(rand.RandString("upperlower", 10))
# Output: YjHFGzysFx
```

alphanumerical:
```py
print(rand.RandString("alphanumerical", 10))
# Output: Fy0Nbqno6B
```

ascii:
```py
print(rand.RandString("ascii", 10))
# Output: jtj-NV<PSV
```