Skip to main content

inspector_mils

CodeFactor travis codecov python3.6 python3.6 python3.6

Inspect functions' arguments and keywords arguments at runtime using decorator.

Installation

To download inspector-mils, either fork this github repo or simply use Pypi via pip

pip install inspector-mils

Usage

Import inspect decorator.

from inspector_mils.inspector import inspect

Add @inspect to your function.

@inspect
def my_func_sample1(a, b):
  pass

my_func_sample1("param1", "param2")

Output

[2022-11-04 02:42:45.151303] Starting inspect..
[2022-11-04 02:42:45.151888] my_func_sample1() called..
[2022-11-04 02:42:45.151937] args: ('param1', 'param2')
[2022-11-04 02:42:45.151978] kwargs: {}
[2022-11-04 02:42:45.152060] Ending inspect..

License

MIT License

Copyright (c) 2022

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Metadata

Release files for inspector-mils 0.0.1

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

Source distribution (sdist)

Source distribution for inspector-mils 0.0.1
File Size Uploaded Provenance Actions
inspector_mils-0.0.1.tar.gz 2.8 kB Without provenance Details for inspector_mils-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inspector-mils 0.0.1
File Interpreter ABI Platform Actions
inspector_mils-0.0.1-py3-none-any.whl Python 3 none any Details for inspector_mils-0.0.1-py3-none-any.whl

Total release size: 6.5 kB

Release files / inspector_mils-0.0.1.tar.gz

Download URL inspector_mils-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
37b7355f15f65393d467a76677ee0626b29b415b8e45acfc8c6df8100e91d0c1
BLAKE2b-256 checksum
How to use checksums
876ab483d8960a3370d8a25b3730b35311bd8ab0135d017bf7c888ee5c6985e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.3

Release files / inspector_mils-0.0.1-py3-none-any.whl

Download URL inspector_mils-0.0.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89a463d927390ce35257d2612d1633420d92010cbc920eae665e22d27ebed562
BLAKE2b-256 checksum
How to use checksums
8c2b6f47c678f65213cd0254504949e9f76d68c77b90a04b2374251c89373563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.3

Security for inspector-mils 0.0.1

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