Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
|
@ -0,0 +1 @@
|
|||
pip
|
27
venv/Lib/site-packages/backcall-0.2.0.dist-info/LICENSE
Normal file
27
venv/Lib/site-packages/backcall-0.2.0.dist-info/LICENSE
Normal file
|
@ -0,0 +1,27 @@
|
|||
Copyright (c) 2014, Thomas Kluyver
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||
list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
* Neither the name of the {organization} nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
55
venv/Lib/site-packages/backcall-0.2.0.dist-info/METADATA
Normal file
55
venv/Lib/site-packages/backcall-0.2.0.dist-info/METADATA
Normal file
|
@ -0,0 +1,55 @@
|
|||
Metadata-Version: 2.1
|
||||
Name: backcall
|
||||
Version: 0.2.0
|
||||
Summary: Specifications for callback functions passed in to an API
|
||||
Home-page: https://github.com/takluyver/backcall
|
||||
License: UNKNOWN
|
||||
Author: Thomas Kluyver
|
||||
Author-email: thomas@kluyver.me.uk
|
||||
Description-Content-Type: text/x-rst
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Programming Language :: Python :: 2
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
|
||||
========
|
||||
backcall
|
||||
========
|
||||
|
||||
.. image:: https://travis-ci.org/takluyver/backcall.png?branch=master
|
||||
:target: https://travis-ci.org/takluyver/backcall
|
||||
|
||||
Specifications for callback functions passed in to an API
|
||||
|
||||
If your code lets other people supply callback functions, it's important to
|
||||
specify the function signature you expect, and check that functions support that.
|
||||
Adding extra parameters later would break other peoples code unless you're careful.
|
||||
|
||||
backcall provides a way of specifying the callback signature using a prototype
|
||||
function::
|
||||
|
||||
from backcall import callback_prototype
|
||||
|
||||
@callback_prototype
|
||||
def handle_ping(sender, delay=None):
|
||||
# Specify positional parameters without a default, and keyword
|
||||
# parameters with a default.
|
||||
pass
|
||||
|
||||
def register_ping_handler(callback):
|
||||
# This checks and adapts the function passed in:
|
||||
callback = handle_ping.adapt(callback)
|
||||
ping_callbacks.append(callback)
|
||||
|
||||
If the callback takes fewer parameters than your prototype, *backcall* will wrap
|
||||
it in a function that discards the extra arguments. If the callback expects
|
||||
more arguments, a TypeError is thrown when it is registered.
|
||||
|
||||
For more details, see the `docs <http://backcall.readthedocs.org/en/latest/>`_ or
|
||||
the `Demo notebook <http://nbviewer.ipython.org/github/takluyver/backcall/blob/master/Demo.ipynb>`_.
|
||||
|
||||
The tests are run with `pytest <http://pytest.org/latest/>`_. In the root directory,
|
||||
execute::
|
||||
|
||||
py.test
|
||||
|
11
venv/Lib/site-packages/backcall-0.2.0.dist-info/RECORD
Normal file
11
venv/Lib/site-packages/backcall-0.2.0.dist-info/RECORD
Normal file
|
@ -0,0 +1,11 @@
|
|||
backcall-0.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
backcall-0.2.0.dist-info/LICENSE,sha256=1CL4zncxJzPAf1_sjMvmHVjVOXdPembzfkvFR0DYYCA,1490
|
||||
backcall-0.2.0.dist-info/METADATA,sha256=LT8_pGhJ34ZF8jWEZL3L-hB7HLBkscI6q9cdipDWwao,1966
|
||||
backcall-0.2.0.dist-info/RECORD,,
|
||||
backcall-0.2.0.dist-info/WHEEL,sha256=4vGQWMHJO3SOyvYcLHqr380W2n90FCfzkrP_YY3xjq8,99
|
||||
backcall/__init__.py,sha256=v9YUFMCNpwHpfy9M-sfVDIYaf-0McoI-AS-3j98RG0M,213
|
||||
backcall/__pycache__/__init__.cpython-36.pyc,,
|
||||
backcall/__pycache__/_signatures.cpython-36.pyc,,
|
||||
backcall/__pycache__/backcall.cpython-36.pyc,,
|
||||
backcall/_signatures.py,sha256=y3px_fTFVZMy8-mwTOvSxlOOaLUdHJmF37k7Rv9NXu0,29847
|
||||
backcall/backcall.py,sha256=DQzNXv47Zooa8YTX5BE19RuLx4jyrEsQURJTHhqhc48,3752
|
5
venv/Lib/site-packages/backcall-0.2.0.dist-info/WHEEL
Normal file
5
venv/Lib/site-packages/backcall-0.2.0.dist-info/WHEEL
Normal file
|
@ -0,0 +1,5 @@
|
|||
Wheel-Version: 1.0
|
||||
Generator: flit 2.3.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
Loading…
Add table
Add a link
Reference in a new issue