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.1.tar.gz (8.7 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.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_profilers-1.3.1.tar.gz
  • Upload date:
  • Size: 8.7 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.1.tar.gz
Algorithm Hash digest
SHA256 9f3a0ca91c499bacdafaced098291c2251bf27290bb4ca7b5bc9d1f74bde203f
MD5 b990294e6bbb38868e2b52ebec282834
BLAKE2b-256 0d17a292db580cfc1216ad1ec52cbe59a7ad09c260662ca8d839c69bfc163195

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_profilers-1.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6cd5f33f4c78a0cdc2e67e5e27a5d1cc5cf83a6b3c5370c0cabed7cb0c397a
MD5 5f738c84c01c925ce980366f6433c8f7
BLAKE2b-256 f6aa3c87aa0bafa5709f1a337191238c1b6bc494811816d48e42580172b5f35f

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