Skip to main content

autopylog

🔍 autopylog is a simple, lightweight Python package that automatically logs function calls, input arguments, return values, execution time, and exceptions using a single decorator.


🚀 Features

  • ✅ Log function name and arguments
  • ✅ Log return values
  • ✅ Measure and log execution time
  • ✅ Catch and log exceptions
  • ✅ Clean decorator-based syntax
  • ✅ Plug-and-play (no setup required)

📦 Installation

pip install autopylog
🧠 Usage


from autopylog import log_this

@log_this
def divide(x, y):
    return x / y

divide(10, 2)
divide(10, 0)  # Will log the exception
🧾 Output



[INFO] Calling: divide(x=10, y=2)
[INFO] Returned: 5.0 in 0.0001s

[INFO] Calling: divide(x=10, y=0)
[ERROR] Exception in divide: division by zero



🧩 Why autopylog?
Many developers forget or ignore logging — autopylog makes it automatic and painless. Ideal for debugging, tracing, and monitoring Python functions in any project.

Metadata

Release files for autopylog 0.1.0

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

Source distribution (sdist)

Source distribution for autopylog 0.1.0
File Size Uploaded Provenance
autopylog-0.1.0.tar.gz 2.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / autopylog-0.1.0.tar.gz

Download URL autopylog-0.1.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb2f9e6baef0d705a8d3a49b145bfb587885345b7f02d9384873d19d3bd91fb3
BLAKE2b-256 checksum
How to use checksums
108c5e7ef03e1fd3d88f85e16d6f739d30d4cf1beba037ba3c306372d83fc6c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / autopylog-0.1.0-py3-none-any.whl

Download URL autopylog-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6629e56377250913ef0348576d9cb9cdd24783db9a90726500148cd6d2db172c
BLAKE2b-256 checksum
How to use checksums
682cc4dea73f294d8dd571c9303368805c3f0ae009394b7be681051730c28c25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for autopylog 0.1.0

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.1.0 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