Skip to main content

more.whytool: find out what code was responsible for generating a response

more.whytool lets you create a tool that tells you what view code was responsible for handling a request.

To create such a tool you do the following, for instance in the main.py of your project:

from more.whytool import why_tool
from .someplace import SomeApp

def my_why_tool():
    SomeApp.commit()
    why_tool(SomeApp)

where SomeApp is the application you want to query, typically the root application of your project.

Now you need to hook it up in setup.py to you can have the tool available:

entry_points={
    'console_scripts': [
        'morewhytool = myproject.main:my_why_tool',
    ]
},

After you install your project, you should now have a morewhytool tool available. You can give it requests:

$ morewhytool /some/path

It tells you:

  • What path directive handled the request.

  • What view directive handled the request.

CHANGES

0.5 (2017-01-13)

  • Initial public release.

Metadata

Release files for more.whytool 0.5

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

Source distribution (sdist)

Source distribution for more.whytool 0.5
File Size Uploaded Provenance Actions
more.whytool-0.5.tar.gz 4.4 kB Without provenance Details for more.whytool-0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for more.whytool 0.5
File Interpreter ABI Platform Actions
more.whytool-0.5-py3-none-any.whl Python 3 none any Details for more.whytool-0.5-py3-none-any.whl

Total release size: 9.9 kB

Release files / more.whytool-0.5.tar.gz

Download URL more.whytool-0.5.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8172082ef036cc6eb410ae0ebcc1d6c9ba1024e060184b0e76676e4114d730fe
BLAKE2b-256 checksum
How to use checksums
f1958d329796d7784ef29281f81ec3717eb04a32741e0c4eff6a6b7f830dba08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / more.whytool-0.5-py3-none-any.whl

Download URL more.whytool-0.5-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebbc301c531cf894c4ed881ad6e2f4f75d7638ba9dfd9cecee06ea28e16223f8
BLAKE2b-256 checksum
How to use checksums
71e2ae95e02f1e570aac82f5b635a52fec7f9739989862318a8acc005678ee7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for more.whytool 0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files No provenance

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