An open API service indexing awesome lists of open source software.

https://github.com/p0dalirius/objectwalker

A python module to explore the object tree to extract paths to interesting objects in memory.
https://github.com/p0dalirius/objectwalker

graph module object path python search

Last synced: 10 months ago
JSON representation

A python module to explore the object tree to extract paths to interesting objects in memory.

Awesome Lists containing this project

README

          

![](./.github/banner.png)


A python module to explore the object tree to extract paths to interesting objects in memory.


GitHub release (latest by date)

YouTube Channel Subscribers


## Features

- [x] Python module to use in pdb after a `breakpoint()`.
- [x] Standalone tool to explore paths in python modules.
- [x] Multiple built-in filters.
- [x] Possibility to implement custom filters and pass them to ObjectWalker().

## Demonstration

https://github.com/p0dalirius/objectwalker/assets/79218792/179f4f27-12aa-4a88-8a82-122712ffd594

## Installation

You can now install it from pypi (latest version is PyPI) with this command:

```
sudo python3 -m pip install objectwalker
```

## Example commands

+ We want to find all the paths to the `os` module in the module `jinja2`:
```
objectwalker -m jinja2 --filter-module os --max-depth 15
```
We get the following output:
![](./.github/find_module_os_in_jinja2.png)

## Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.