Skip to main content
https://img.shields.io/pypi/v/pyispy.svg https://img.shields.io/travis/christopherdoyle/pyispy.svg Documentation Status

Testing helper utility for monitoring calls to functions and methods (spying).

Example

import my_module
import pyispy

def my_ClassA():
    reports = []
    pyispy.wiretap(my_module.ClassA, ["__init__", "exec"], reports)

    obj = my_module.ClassA()

    assert "__init__" in reports

TODO

  • Refactor hooks as classes to contract input arguments (object, function name, logbook) to support polymorphic attitude in process_request.

  • Implement/test wiretap on magic methods
    • Handle response to read-only functions (for example __add__ in int type)

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Release files for pyispy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyispy 0.1.2
File Size Uploaded
pyispy-0.1.2.tar.gz 10.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyispy 0.1.2
File Interpreter ABI Platform
pyispy-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.8 kB

Release files / pyispy-0.1.2.tar.gz

Download URL pyispy-0.1.2.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b8a2ca3427432215d560b62e6a3805aadf9e6b2f454883f3890c7608482d5dde
BLAKE2b-256 checksum
How to use checksums
ddcfac56bd5a23d659d7f72649305450c0b277e14d8e1baea52f8d462bba1f30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release files / pyispy-0.1.2-py2.py3-none-any.whl

Download URL pyispy-0.1.2-py2.py3-none-any.whl
Size 4.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
920a43c2e5487a76fd4cb25ed0fccadb685daf3daae69801d0f303f8102db2cd
BLAKE2b-256 checksum
How to use checksums
c70659d93dc7b48e527cb87ac6dfffc19dc098b91d6d99412a0df33f4bf0c823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page