Skip to main content

py-grpc-profile

Profile the grpc server.
Provide a grpc interceptor to profile each request in the cProfile module.

build

Installation

$ pip install -U py-grpc-profile

Example

Load the module and set the interceptors.

from concurrent import futures

import grpc
from py_grpc_profile.server.interceptor import ProfileInterceptor

# ...

server = grpc.server(
    futures.ThreadPoolExecutor(max_workers=10),
    interceptors=[ProfileInterceptor()],
)

# ...

The complete code is available in example. You can find more details there.

License

License

Metadata

Release files for py-grpc-profile 0.1.3

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

Source distribution (sdist)

Source distribution for py-grpc-profile 0.1.3
File Size Uploaded
py-grpc-profile-0.1.3.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-grpc-profile 0.1.3
File Interpreter ABI Platform
py_grpc_profile-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 17.0 kB

Release files / py-grpc-profile-0.1.3.tar.gz

Download URL py-grpc-profile-0.1.3.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bf4be67a049307bf1b21659442e38d573663e46ccd2c26a0f6d0e7ce4048d24c
BLAKE2b-256 checksum
How to use checksums
07dd6d6156259317781dbbcbc832eb267b4e008ef50b73495267cadbbf23681a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1040-azure

Release files / py_grpc_profile-0.1.3-py3-none-any.whl

Download URL py_grpc_profile-0.1.3-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e0118d9cb2ecbea2293441e807717d1c8c707027886082d331a26a9e222d3a2
BLAKE2b-256 checksum
How to use checksums
93eafe2bf93a3a25d97d7faea4c9fdc62640127ca457a7c9a6a15697a302819f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.5 CPython/3.8.8 Linux/5.4.0-1040-azure

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.1

2 release files

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