Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyispy-0.1.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyispy-0.1.2-py2.py3-none-any.whl (4.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pyispy-0.1.2.tar.gz.

File metadata

  • Download URL: pyispy-0.1.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyispy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b8a2ca3427432215d560b62e6a3805aadf9e6b2f454883f3890c7608482d5dde
MD5 d9ae545d01795035ad7e224e2cbea9d8
BLAKE2b-256 ddcfac56bd5a23d659d7f72649305450c0b277e14d8e1baea52f8d462bba1f30

See more details on using hashes here.

File details

Details for the file pyispy-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: pyispy-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for pyispy-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 920a43c2e5487a76fd4cb25ed0fccadb685daf3daae69801d0f303f8102db2cd
MD5 253079410a098df691ae257081cf55ca
BLAKE2b-256 c70659d93dc7b48e527cb87ac6dfffc19dc098b91d6d99412a0df33f4bf0c823

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page