semvec/pypi-packages huggingface dataset:
PyLBFGS 0.2.0.16
LBFGS and OWL-QN optimization algorithms

PyLBFGS
=======

.. image:: https://travis-ci.org/dedupeio/pylbfgs.svg?branch=master
    :target: https://travis-ci.org/dedupeio/pylbfgs


This is a Python wrapper around Naoaki Okazaki (chokkan)'s liblbfgs_ library
of quasi-Newton optimization routines (limited memory BFGS and OWL-QN).

This package aims to provide a cleaner interface to the LBFGS
algorithm than is currently available in SciPy_, and to provide the
OWL-QN algorithm to Python users.

Part of the Dedupe.io_ cloud service and open source toolset for de-duplicating and finding fuzzy matches in your data.


Installing
==========
Type::

    pip install pylbfgs


Hacking
=======
Type::

    pip install "pip>=10"
    pip install -r requirements.txt
    pip install -e .

To run the test suite::

    pytest tests


Authors
=======
PyLBFGS was written by Lars Buitinck.

Alexis Mignon submitted a patch for error handling.

.. _Dedupe.io: https://dedupe.io/

.. _Cython: http://cython.org/

.. _liblbfgs: http://chokkan.org/software/liblbfgs/

.. _pytest: http://doc.pytest.org/en/latest/

.. _NumPy: http://numpy.scipy.org/

.. _SciPy: http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.fmin_l_bfgs_b.html

.. _setuptools: http://pypi.python.org/pypi/setuptools
TimedInputPy 1.0.1
Implemenation of thread-based timed input object
Requires Python: >=3.0

# TimedInputPy

TimedInputPy is a python library that provides input function/object that has a
thread based time limit on input.

## API

|object|method|description|
|-----|-----|-----|
|TimedInput(timeout, prompt, default||Timed input reader:|
|||timeout -> how long to wait?|
|||prompt -> what to ask?|
|||default -> what to sat when timeout happens?|
|||action -> action callback to perform when timeout happens|
||get_input()|Function to be used as input reader|
||read()|Reads the input from the reader|
|timed_input(timeout, prompt, default)|| Function for reading timed input, arguments same as above|

## Example usage
```
# Sample usage:
if __name__ == '__main__':
    test_timeout = 5
    test_prompt = 'Enter name: '
    test_default = 'world'

    # As a method
    s = timed_input(test_timeout, test_prompt, test_default)
    print('Hello {}!'.format(s), flush=True)

    print()

    # As a class
    s = TimedInput(test_timeout, test_prompt, test_default).read()
    print('Hello {}!'.format(s), flush=True)
```

## Instalation
Module can be installed using pip3:
`pip3 install TimedInputPy`