Skip to main content

# Introduction

Project description

Introduction

This is a package for profiling your code, and use it to better understand what is happening in your code and debug better. This is availale to use in any python code (no framework specific).

Profilers

There is Main Profiler Which will register all profilers and responsible for handling issues and reporting info.

Currently Supported Profilers

  • MySQLProfiler

Integrations

For the ease of development, we added some integrations which will take the Main Profiler and handle the integration with other frameworks. Also you could use profilers without integrations, but you will write more code.

Currently Supported Integrations

  • Flask
    • It is used for integrating profilers with flask with only few code

Examples

This is an example for using MySQL Profiler With Flask

from flask import Flask

from code_profilers.main_profiler import MainProfiler
from code_profilers.profilers.mysql.profiler import MySQLProfiler
from code_profilers.integrations.flask import FlaskIntegration

app = Flask(__name__)

profiler = MainProfiler()
profiler.register_profiler(MySQLProfiler())
FlaskIntegration(app, profiler)

Then you are ready to go and test your code

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

code_profilers-1.3.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

code_profilers-1.3.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file code_profilers-1.3.0.tar.gz.

File metadata

  • Download URL: code_profilers-1.3.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for code_profilers-1.3.0.tar.gz
Algorithm Hash digest
SHA256 9a2e37a6ead78c1ad7decd473b29b96f77b0661471587ed10909a53d64bdc7ea
MD5 d04ddd03beb9525971ab2c9e551aa1b5
BLAKE2b-256 27fc9edb2c30e9250065fe8afd8e082e2e64623834d2c2142115ece3fc443560

See more details on using hashes here.

File details

Details for the file code_profilers-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: code_profilers-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for code_profilers-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8757355e404a1aeae53c4e686e058f2872d3c5ebc6cd9e2b21595887cd74fc1e
MD5 3ccfaed7ec7f714f5565d440856e54b4
BLAKE2b-256 38b766b46ff48d68245bc9591e74374390e9ac832344db46f09d7c8370d09a49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page