semvec/pypi-packages huggingface dataset:
fastapi-cprofile 0.0.2
A FastAPI Middleware with cProfile to stats your service performance.
License: MIT
Keywords: fastapi,cprofile

# fastapi-cprofile

A FastAPI Middleware with cProfile to help stats your service performance. 
cProfile is a built-in python module that can perform profiling. It is the most commonly used profiler currently.

# Features

- [x] support custom cprofile param

#Installation

```buildoutcfg
$ pip install fastapi-cprofile
```


# Code Sample

```python
from fastapi_cprofile.profiler import CProfileMiddleware

app = FastAPI()
app.add_middleware(CProfileMiddleware)
```
add cprofile options

```python

from fastapi_cprofile.profiler import CProfileMiddleware
app = FastAPI()
app.add_middleware(CProfileMiddleware, enable=True, print_each_request = True, strip_dirs = False, sort_by='cumulative')

```
or dump out file while shutdown your app then you can use gprof2dot [gprof2dot](https://github.com/jrfonseca/gprof2dot) to view it.

```python

from fastapi_cprofile.profiler import CProfileMiddleware
app = FastAPI()
app.add_middleware(CProfileMiddleware, enable=True, server_app = app, filename='/tmp/output.pstats', strip_dirs = False, sort_by='cumulative')

```

# License

MIT
jmpy3 1.0.6
python代码一键加密
License: MIT

# jmpy

![](https://img.shields.io/badge/python-3.0-brightgreen)

## 简介

将python代码一键加密为so或pyd。支持单个文件加密，整个项目加密。

Git仓库地址: https://github.com/Boris-code/jmpy.git

## 安装

    pip install jmpy3

## 使用方法

    jmpy -i "xxx project dir" [-o output dir]

加密后的文件默认存储在 dist/project_name/ 下