Skip to main content

pydbugstring

Provides a function OutputDebugString to call: - on win32 platforms, calls the ctypes.windll.kernel32.OutputDebugStringW with any Python Object, after converting that object to a string.
- on other platforms, converts the argument to a string and discards it, returns 0

Provides a handler for the Python Logging Module which sends logging to OutputDebugString. On platforms other than win32, the logging output is disccarded.

The output can be viewed using the DebugView program from the SysInternals package from Microsoft.

Sample Use

import  pydebugstring
import sys
import logging
#send an object to OutputDebugString
logger=logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.addHandler(pydebugstring.OutputDebugStringHandler())
print(f"Sending sys.path [{sys.path}]  to outputDebugString")
pydebugstring.outputDebugString(sys.path)

debug_message = "Sample Debug Message"
print(f"Sending [{debug_message}] with logging.info")

logging.info(debug_message)

Metadata

Release files for pydebugstring 1.0.0.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 pydebugstring 1.0.0.2
File Size Uploaded Provenance Actions
pydebugstring-1.0.0.2.tar.gz 1.9 kB Without provenance Details for pydebugstring-1.0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 4.8 kB

Release files / pydebugstring-1.0.0.2.tar.gz

Download URL pydebugstring-1.0.0.2.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5527d718cd791c3dad94442faaa8adad5c2242ea5a822ae28e909e3294d063
BLAKE2b-256 checksum
How to use checksums
54b8c59d1de9fc12a11115f63ecbf20ffc0cea4cd62762433b6067bf38d5f8dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Release files / pydebugstring-1.0.0.2-py3-none-any.whl

Download URL pydebugstring-1.0.0.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fd50a5e439978ec89230baa26b22c754fecfd27749b9f665fcd9c26ac135834
BLAKE2b-256 checksum
How to use checksums
fc36961ba97fb6d3e6a7d01653136306bc3981b483e64c64edb046a7cf2e7fa5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.8

Security for pydebugstring 1.0.0.2

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.

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