Objgraph

Latest version: v3.6.2

Safety actively analyzes 687881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

3.0.1

------------------

- The ``file`` argument of :func:`show_most_common_types` and
:func:`show_growth` now defaults to ``None`` instead of ``sys.stdout``.
``None`` is interpreted to be the same as ``sys.stdout``, which means
the right stdout will be used if you change it at runtime (which happens,
in doctests).

3.0.0

------------------

- :func:`show_most_common_types` and :func:`show_growth` now accept a ``file``
argument if you want to redirect the output elsewhere.

Fixes `issue 24 <https://github.com/mgedmin/objgraph/pull/24>`_. Contributed
by "d-sun-d".

- Don't trust ``__class__`` to be accurate and ``__name__`` to be a string.
Fixes errors in some convoluted corner cases when mocks are involved.

Contributed by Andrew Shannon Brown in `PR 26
<https://github.com/mgedmin/objgraph/pull/26>`_.

- Drop support for Python 2.4, 2.5, and 2.6.

- Drop support for Python 3.1 and 3.2.

- Add support for Python 3.5.

2.0.1

------------------

- Avoid creating reference cycles between the stack frame and the local
``objects`` variable in :func:`by_type`, :func:`count`, and
:func:`typestats`.

Fixes `issue 22 <https://github.com/mgedmin/objgraph/pull/22>`_. Contributed
by Erik Bray.

2.0.0

------------------

- :func:`show_refs` and :func:`show_backrefs` now accept a file-like object
(via the new ``output`` argument) as an alternative to a filename.

- Made internal helper methods private. This includes ``find_chain``,
``show_graph``, ``obj_node_id``, ``obj_label``, ``quote``,
``long_typename``, ``safe_repr``, ``short_repr``,
``gradient``, ``edge_label``, and ``_program_in_path``.

- Correctly determine the name of old-style classes in :func:`count`,
:func:`by_type`, and graph drawing functions.

Fixes `issue 16 <https://github.com/mgedmin/objgraph/pull/16>`_. Contributed
by Mike Lambert.

1.8.1

------------------

- Do not expect file objects to have an ``encoding`` attribute. Makes objgraph
compatible with Eventlet's monkey-patching.

Fixes `issue 6 <https://github.com/mgedmin/objgraph/pull/6>`_. Contributed
by Jakub Stasiak.

1.8.0

------------------

- Moved to GitHub.

- Python 3.4 support (`LP1270872 <https://launchpad.net/bugs/1270872>`_).

- New function: :func:`is_proper_module`.

- New ``shortnames`` argument for :func:`typestats`, :func:`most_common_types`,
:func:`show_most_common_types`, :func:`show_growth`, :func:`show_refs`,
and :func:`show_backrefs`.

:func:`count` and :func:`by_type` accept fully-qualified type names now.

Fixes `issue 4 <https://github.com/mgedmin/objgraph/issues/4>`_.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.