semvec/pypi-packages huggingface dataset:
webavailability 0.1.1
Module to check if website is down or not.
License: MIT

===============
webavailability
===============

'webavailability' is a Python3 module aimed at checking if a website is down
in a detailed and accurate fashion.


Using CLI Tool
--------------

This module ships with a handy CLI tool that allows you to check the web
availability of different domains. For example:

.. code-block:: sh

    $ python -m webavailability "google.com"

    DOMAIN:            google.com
    AVAILABILITY:      UP
    CONNECTION STATUS: RESPONDED

    URL:               https://www.google.com/?gws_rd=ssl
    RESPONSE TIME:     0.338488 seconds
    HTTP STATUS CODE:  200
    HTTP STATUS MESS:  OK
    CLOUDFLARE:        NONE


The same functionality and information can be accessed by the module.


Running Unit Tests
------------------

To run the available tests, execute the following command from the project's
root directory:

    $ python3 -m unittest discover test/ *test.py


License
-------

The code is available under the MIT license.
mlbgame 2.5.0
An API to retrieve and read MLB GameDay data
License: MIT
Keywords: MLB

=======
mlbgame
=======

mlbgame is a Python API to retrieve and read MLB GameDay data.
mlbgame works with real time data, getting information as games are being played.

mlbgame uses the same data that MLB GameDay uses,
and therefore is updated as soon as something happens in a game.

mlbgame `documentation <http://panz.io/mlbgame>`__

mlbgame on `Github <https://github.com/panzarino/mlbgame>`__  (Source Code)

If you have a question or need help, the quickest way to get a response 
is to file an issue on the `Github issue tracker <https://github.com/panzarino/mlbgame/issues/new>`__

mlbgame's submodules should not really be used other than as 
used by the main functions of the package (in ``__init__.py``).

Use of mlbgame must follow the terms stated in the 
`license <https://raw.githubusercontent.com/panzarino/mlbgame/master/LICENSE>`__ 
and on `mlb.com <http://gd2.mlb.com/components/copyright.txt>`__

Installation
------------

mlbgame is in the `Python Package Index (PyPI) <http://pypi.python.org/pypi/mlbgame/>`__.
Installing with ``pip`` is recommended for all systems.

mlbgame can be installed by running:

::

    pip install mlbgame

Alternatively, the latest release of mlbgame can be downloaded as a 
`zip <https://github.com/panzarino/mlbgame/archive/master.zip>`__ or 
`tarball <https://github.com/panzarino/mlbgame/archive/master.tar.gz>`__.
If you do not install with ``pip``, you must also install ``lmxl`` as specified in ``setup.py``.

If you want to help develop mlbgame, you must also install the dev dependencies, which can be done by running ``pip install -e .[dev]`` from within the directory.
headless-pdfkit 0.1.5
A headless version of pdfkit which makes use of xvfb-run
License: MIT

Headless PDFKit
===============

The PDFKit package makes use of ``wkhtmltopdf``, which in turn needs an X Server
to run. In Debian land, this generally requires ``xvfb-run`` wrapper.

The ``headless_pdfkit`` package tries to make the `hotfix`_ proposed by
`jakewins`_ a bit easier to work with.

Installation
------------

You can install ``headless_pdfkit`` by running::

    pip install headless-pdfkit

Examples
--------

Save a simple PDF from string.::

    from headless_pdfkit import generate_pdf

    ret = generate_pdf('<html></html>')
    with open('output.pdf', 'wb') as w:
        w.write(ret)

Save a simple PDF from string while passing the `--auto-servernum`_
parameter to ``xvfb-run``.::

    options = {
        'auto_servernum': ''
    }

    ret = generate_pdf('<html></html>', options=options)
    with open('output.pdf', 'wb') as w:
        w.write(ret)


.. _hotfix: https://github.com/JazzCore/python-pdfkit/issues/56#issuecomment-305593936
.. _jakewins: https://github.com/jakewins
.. _--auto-servernum: https://manpages.debian.org/testing/xvfb/xvfb-run.1.en.html#OPTIONS
qcon 2.5
qcon is program for hiding/showing terminal emulators(or other software) with a hotkey.
License: MIT
Keywords: terminal gtk

qcon is program for hiding/showing terminal emulators(or other software) with a hotkey.
Similar to consoles you see in many FPS games.
Unlike similar projects like guake/yakuake you can use any terminal emulator of your choice.
Several terminals(or other software) can be configured.
It's compact and consists of a single file.
rebound-cli 1.1.7a1
Automatically displays Stack Overflow results when you get a compiler error
License: MIT
Requires Python: >=3
Keywords: stackoverflow stack overflow debug debugging error-handling compile errors error message cli

# rebound

Rebound lets you instantly browse Stack Overflow results in your terminal when you get a compiler error. Just use the `rebound` command before the file you want to execute.

![Placeholder Demo](demo.gif)

Featured on: [awesome-cli-apps](https://github.com/agarrharr/awesome-cli-apps) and [awesome-mac](https://github.com/jaywcjlove/awesome-mac).

## Installation

Rebound works on MacOS, Linux, and Windows, with binary downloads available for [every release.](https://github.com/shobrook/rebound/releases) You can also install it with pip:

`$ pip install rebound-cli`

Requires Python 3.0 or higher.

## Usage

Running a file with `rebound` is just as easy as compiling it normally:

`$ rebound [file_path]`

This will execute the file, pull the error message, and let you browse related Stack Overflow questions and answers without leaving the terminal.

__Supported file types:__ Python and Node.js (Ruby and Java coming soon!).

## Contributing

To make a contribution, fork the repo, make your changes and then submit a pull request. If you've discovered a bug or have a feature request, create an [issue](https://github.com/shobrook/rebound/issues/new) and tag it appropriately :)

## Technologies

Rebound is written in Python and built on Urwid. Beautiful Soup is used to scrape Stack Overflow content and subprocess for catching compiler errors.

## Acknowledgements

Special thanks to [@rndusr](https://github.com/rndusr) for helping with the scrollbar.
sqlCom 0.1.0
A sample Python Database middleware [MySql, MongoDB, SQLServer]
License: MIT
Keywords: sqlCom setuptools development

# A sample Python project

A sample project that exists as an aid to the [Python Packaging User
Guide][packaging guide]'s [Tutorial on Packaging and Distributing
Projects][distribution tutorial].

This project does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.

[The source for this project is available here][src].

Most of the configuration for a Python project is done in the `setup.py` file,
an example of which is included in this project. You should edit this file
accordingly to adapt this sample project to your needs.

----

This is the README file for the project.

The file should use UTF-8 encoding and can be written using
[reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
use]. It will be used to generate the project webpage on PyPI and will be
displayed as the project homepage on common code-hosting services, and should be
written for that purpose.

Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not a
good idea, although a simple “What's New” section for the most recent version
may be appropriate.

[packaging guide]: https://packaging.python.org
[distribution tutorial]: https://packaging.python.org/en/latest/distributing.html
[src]: https://github.com/pypa/sampleproject
[rst]: http://docutils.sourceforge.net/rst.html
[md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
[md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
yoctol-nlu 0.7.1
Yoctol Natural Language Understanding SDK
License: MIT

# yoctol-nlu-py
[![Build Status](https://travis-ci.org/Yoctol/yoctol-nlu-py.svg?branch=master)](https://travis-ci.org/Yoctol/yoctol-nlu-py)
[![PyPI version](https://badge.fury.io/py/yoctol-nlu.svg)](https://badge.fury.io/py/yoctol-nlu)

Yoctol Natural Language Understanding SDK for python.

## Install
Use Python3
```
pip install yoctol-nlu
```

## Usage

### Intent Classifier Service

#### Fetch Model & One Line Prediction
```python
from ynlu import NLUClient

client = NLUClient(token='YOUR_TOKEN_HERE')

# Get all possible clf ids
ids = client.get_all_available_clf_ids()
print(ids)

# Get model by id
model = client.get_model_by_id(ids[0])

# Predict
intent_prediction, entity_prediction = model.predict('飲料喝到飽')

# Also could get the clf by clf's name
# Get all possible clf names
names = client.get_all_available_clf_names()
print(names)

# Get model by name
model = client.get_model_by_name(names[0])

# Predict
intent_prediction, entity_prediction = model.predict('飲料喝到飽')
```

#### Evaluations for Intent
```python
from ynlu import NLUClient
from ynlu.sdk.evaluation import {
    # Accuracy
    intent_accuracy_score_with_threshold,
    # Precision
    intent_precision_score_with_threshold,
    # Recall
    intent_recall_score_with_threshold,
}

client = NLUClient(token='YOUR_TOKEN_HERE')
model = client.get_model_by_id('TARGET_MODEL_ID_HERE')

test_data = [
    'This is a line ',
    'for testing the NLUClient ',
    'and evaluating the prediction ',
    'from the trained model. ',
]

intent_predictions, entities_predictions = model.batch_predict(test_data)

# Pure Accuracy
print(intent_accuracy_score_with_threshold(
        intent_predictions=intent_predictions,
        y_trues=test_data,
        threshold=0.,
    )
)
# Accuracy with threshold 0.5
print(intent_accuracy_score_with_threshold(
        intent_predictions=intent_predictions,
        y_trues=test_data,
        threshold=0.5,
    )
)
```

Check out the tutorials for more examples.

## Documentation

We rely on Sphinx for user and API documentation.

You can run just make to do rebuild the API stubs and then build the HTML documentation.

```
cd docs
make # equivalent to `make apidoc && make html`
```

To only build the html pages:

```
cd docs
make html
```

To just re-generate the API reference.

```
cd docs
make apidoc # calls sphinx-apidoc
```
Run `make help` for a full list of build options.
django-payments-ecpay 1.0.2
A django-payments backend for the ECPay (Taiwan) payment gateway.
License: MIT
Keywords: django-payments,payment gateway

django-payments-ecpay
=====================

A ``django-payments <https://github.com/mirumee/django-payments>``
backend for the ECPay (Taiwan) payment gateway.

Reference documentation can be found at the following address:
https://www.ecpay.com.tw/Content/files/ecpay_011.pdf

Parameters
----------

-  **merchand_id** : Merchant Identification number assigned by ECPay
   (required).
-  **hash_key** : Hash Key assigned by ECPay (required).
-  **hash_iv** : Hash IV assigned by ECPay (required).
-  **endpoint**
   (default=‘https://payment-stage.ecpay.com.tw/Cashier/AioCheckOut/V5’)
   : The ECPay payment gateway endpoint. Use
   ‘https://payment.ecpay.com.tw/Cashier/AioCheckOut/V5’ for the
   production environment (required).

-  **merchand_name** : Merchant Identification number assigned by ECPay
   (optional).
-  **expiration_days** : Validity of payment process. Between 1 to 60
   days, defaults to 3 days. (optional).
-  **client_back_url** : URL to which the customer is redirect to after
   payment (optional).
-  **choose_payments** : Default payment type. Can be one of ‘ALL’,
   ‘ATM’, ‘WebATM’, ‘CVS’, ‘BARCODE’, ‘Credit’, ‘AndroidPay’ and
   defaults to ‘ALL’ (optional).
-  **excluded_payments** : Array of excluded payments options. Options
   are ‘ATM’, ‘WebATM’, ‘CVS’, ‘BARCODE’, ‘Credit’, ‘AndroidPay’
   (optional).

Usage example
-------------

Add the following lines to your configuration in ``settings.py``:

.. code:: python

      PAYMENT_VARIANTS = {
          'default': ('payments_ecpay.ECPayProvider', {
            'merchand_id': '2000132',
            'merchand_name': 'Shop Name',
            'hash_key': '5294y06JbISpM5x9',
            'hash_iv': 'v77hoKGq4kWxNNIS',
            'expiration_days': 3,
            'excluded_payments': ['Credit', 'AndroidPay'],
            'endpoint': 'https://payment.ecpay.com.tw/Cashier/AioCheckOut/V5'}),
      }