Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Add to pstats library of cProfile the feature of get the result in a list with filters, limit and sort.

Project description


.. image::

.. image::

.. .. image::
.. :target:
.. :alt: Documentation Status

.. image::

.. image::

Add to pstats library of cProfile the feature of get the result in a list with filters, limit and sort.

* Free software: ISC license
* Documentation:


* Add the posiblity of get profiling report pstats result in a list.
* Add the posibility of sort the result with a default pstats index.
* Add the posilibity of add a limit to result.
* Add the posibility of filter by paths or files.
* Add the posibility of exclude paths or files.


* Using pypi: ``pip install pstats_print2list``


* Small example:

.. code-block:: python

import pstats_print2list
print "Method docstring", pstats_print2list.get_pstats_print2list.__doc__
pstats_list = pstats_print2list.get_pstats_print2list(['fname_stat1', 'fname_stat2'])


* Small line command example:

.. code-block:: bash

python -c "from pstats_print2list import get_pstats_print2list, print_pstats_list;print print_pstats_list(get_pstats_print2list('YOUR_FILE'))"

* Full example:

.. code-block:: python

from pstats_print2list import get_pstats_print2list, print_pstats_list
fname_stats = 'my_profiling_out.stats'
pstats_list = get_pstats_print2list(
filter_fnames=['', '', 'root_path1'],
exclude_fnames=['', 'path_dont_show'],


This package was created by Vauxoo_

.. _Vauxoo:

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter:
.. _`audreyr/cookiecutter-pypackage`:


Moisés López <>


0.1.0 (2016-02-22)

* First release on PyPI.

1.1.2 (2016-02-26)

* First stable version

Project details

Download files

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

Files for pstats_print2list, version 1.1.9
Filename, size File type Python version Upload date Hashes
Filename, size pstats_print2list-1.1.9-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pstats_print2list-1.1.9.tar.gz (14.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page