Skip to main content

Package Name

MT_PY_PerformanceLogging

''' Performance in python. This is the project ,Whenever you need to check the performance of the code like time taken by the code to perform some task we will use this package in our module''' a

Requirements

'''For running this, you need to have python3 installed on your system'''

Debugging tools

'''supported tools pycharm ,Anakonda ,Visual Studio etc...

Installation

Install my-project with Python Install MT_PY_PerformanceLogging

pip install MT_PY_PerformanceLogging cd MT_PY_PerformanceLogging

(globally )

pip install -i https://test.pypi.org/simple/ MT_PY_PerformanceLogging

Steps

pip install -i https://test.pypi.org/simple/ MT_PY_PerformanceLogging

pip install Mouritech_LoggingPerformance

from MT_PY_Performancelogging.MT_Performance import MT_PerformanceLogger from MT_Performance import MT_PerformanceLogger

MT_PerformanceLogger(

)

Receiver Example

import time module

import time

'''Importing our custom package from module Logperformance''' from MT_PY_Performancelogging.MT_Performance import MT_PerformanceLogger

Create an instance of PerformanceLogger with a log file

logger = MT_PerformanceLogger(name, log_file='performance.log')

Use the logger to measure function performance

@logger.log_performance def Disarum(): '''Code which checks the Provided Number is Disarum number or Not''' num=int(input('Enter Num value:')) result=0 power=1 for x in str(num): y=int(x)

    '''Logic to check the disarum Number '''
    result= result + y**power
    power=power+1

    '''If the provided number is same as resultant number then it will be disarum number '''
if num==result:
    print(f'The provide {num} is Disarum')
else:
    print(f'The Provided {num} is Not a Disarum Number')


'''Time taken by the funtion to excute the output '''
time.sleep(1)

Call the function

Disarum()

Output :

'''The Provided Number is Disarum Number or Not Disarum number '''

2023-06-01 11:48:05,439 - main - INFO - Function 'Disarum' executed in = started at 1685600283.4058442 ended at 1685600285.4397306 = 2.0339 seconds

Release files for MT-PY-PerformanceLogging 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 MT-PY-PerformanceLogging 0.0.1
File Size Uploaded
MT_PY_PerformanceLogging-0.0.1.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MT-PY-PerformanceLogging 0.0.1
File Interpreter ABI Platform
MT_PY_PerformanceLogging-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / MT_PY_PerformanceLogging-0.0.1.tar.gz

Download URL MT_PY_PerformanceLogging-0.0.1.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
05fa3abb813a0ee4e646897a662b0d2c57ef72183a25433818d68465981a3dca
BLAKE2b-256 checksum
How to use checksums
1153908b779dd336b8dbe6190c5851646e08d6d638d7668c33eac8f7815a2c6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

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

Download URL MT_PY_PerformanceLogging-0.0.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8faed5297b83f32a157cefae500ac5b7272c8eeac367b58f932e5dd05b907c9c
BLAKE2b-256 checksum
How to use checksums
f39e2d1882f424d26ce68e6a8e83e690faaa8159f6d3c6fbcc63b99771ce7b05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.0.1 This release

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