Skip to main content

log_call

library to log function or bond-method calls

https://img.shields.io/pypi/v/log_call https://github.com/Agent-Hellboy/log_call/actions/workflows/build.yml/badge.svg https://img.shields.io/pypi/pyversions/log_call.svg https://img.shields.io/pypi/l/log_call.svg https://pepy.tech/badge/log_call https://img.shields.io/pypi/format/log_call.svg https://coveralls.io/repos/github/Agent-Hellboy/log_call/badge.svg?branch=main

Installation

for stable version
   - pip install log_call

for developement
   - git clone https://github.com/Agent-Hellboy/log_call
   - cd log_call
   - python -m venv .venv
   - source .venv/bin/activate

Example

Import log_call from log_call and decorate your class or function with it

from log_call import log_call

@log_call
class A:
    def __init__(self):
        pass

    def a(self,*args,**kwargs):
        pass


a=A()
a.a(45,'str',s=34,g=43)

@log_call
def c(a,*args,**kwargs):
    pass

c(34,56,p=23)
response
2022-09-04 12:56:08,552 a called with {'args': [45, 'str'], 'kwargs': {'s': 34, 'g': 43}}
2022-09-04 12:56:08,552 c called with {'a': 34, 'args': [56], 'kwargs': {'p': 23}}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Metadata

Release files for log-call 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 log-call 0.1.0
File Size Uploaded
log_call-0.1.0.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 6.5 kB

Release files / log_call-0.1.0.tar.gz

Download URL log_call-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
00234c9ddbbf8167da76380b820a73201af295c2fd526c9c9c643b515e3c6ab9
BLAKE2b-256 checksum
How to use checksums
ef0f0bf458651c803cce525fc2bb01af7d34996f31210bad76f1659c04133308
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

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

Download URL log_call-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d182874e133515c8dcbb09f09303776c6aa728d195212f8400ed1075dc063c4d
BLAKE2b-256 checksum
How to use checksums
4d824493f0b3a7b7854c44cf72e951d49c7f1d1c43864070891823a588322866
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.0

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