Utility to be paired with memtab to visualize the output
Project description
Welcome!
Documentation: https://etn-corp.github.io/memtab-visualizers/
Source Code: https://github.com/etn-corp/memtab-visualizers
memtab-visualizers is a Python-based project that provides both a command line interface (CLI) and a Python library. ## Features
Command Line Interface (CLI)
Python library
Installation
To install memtab-visualizers, you can use pip:
pip install git+https://github.com/etn-corp/memtab-visualizers
Usage
Command Line Interface
To get these new reports, add the appropriate –report argument to memtab after installing this package:
memtab --elf xyz.elf --config xyz.yml --report [treemap|categorymemmap|excel|memmap|markdown|memoryprofiler|summary]
Python Library
To use the Python library:
import memtab_visualizers
Developing
This project is managed using uv. For more information, refer to Astral’s page on uv <https://astral.sh/uv/>.
Common Commands
uv sync: Sync your development environment with the project dependencies.
uv run <command>: Run a command within the project’s virtual environment.
uv build: generate a pip installable wheel or sdist file in the dist/ directory.
Running Tests
To run tests, use uv with coverage:
uv run coverage run -m pytest
Staying synced up to memtab
If the memtab package has updated, run the following to update uv:
uv sync --reinstall-package memtab --upgrade
Pre-commit Hooks
We use pre-commit to ensure code quality and consistency. After cloning the project, install the pre-commit hooks by running:
pre-commit install
For more information on pre-commit, visit the pre-commit website <https://pre-commit.com/>.
We also have a GitHub Action that runs pre-commit checks on every push and pull request, so you can rely on that if you prefer not to install pre-commit locally.
Contribution Guidelines
We welcome contributions! Please follow these guidelines:
Fork the repository.
Create a new branch (git checkout -b feature-branch).
Make your changes.
Commit your changes (git commit -am ‘Add new feature’).
Push to the branch (git push origin feature-branch).
Create a new Pull Request.
Reporting Issues
If you encounter any issues, please report them on the GitHub Issues page.
Generating Documentation
To generate documentation, use Sphinx:
cd docs/
sphinx-apidoc -o . ../src/memtab-visualizers/
Now hand-edit the generated files to fix the paths (adding memtab-visualizers.), and then run:
make html
License
This project is licensed under the MIT License. See the LICENSE file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file memtab_visualizers-1.0.0.tar.gz.
File metadata
- Download URL: memtab_visualizers-1.0.0.tar.gz
- Upload date:
- Size: 180.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd54504daad2043075015713a1c10bfc994f5947c0b8d4c0a0d9a70ba87ebdb7
|
|
| MD5 |
e70931cc8dbf8138cfc89e5c40495b0e
|
|
| BLAKE2b-256 |
c8512a5c19569a78ac525fd5fd0ad010cc3d39eca1ba6767332560e811be1727
|
Provenance
The following attestation bundles were made for memtab_visualizers-1.0.0.tar.gz:
Publisher:
publish.yml on etn-corp/memtab-visualizers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
memtab_visualizers-1.0.0.tar.gz -
Subject digest:
cd54504daad2043075015713a1c10bfc994f5947c0b8d4c0a0d9a70ba87ebdb7 - Sigstore transparency entry: 546830533
- Sigstore integration time:
-
Permalink:
etn-corp/memtab-visualizers@9273c03d83fb29b267c14326dc10f0e189810b4f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/etn-corp
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9273c03d83fb29b267c14326dc10f0e189810b4f -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file memtab_visualizers-1.0.0-py3-none-any.whl.
File metadata
- Download URL: memtab_visualizers-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8443d51ec87c37a27064090fa943527dd5280c79d06a9974085321b900c1b8e9
|
|
| MD5 |
16464f7d95c20e4b1809bf102a833e30
|
|
| BLAKE2b-256 |
9f9b091a4a09eb8978d9da6deca4b0d355f44c2c3a2bcb6d6b13cb186716a297
|
Provenance
The following attestation bundles were made for memtab_visualizers-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on etn-corp/memtab-visualizers
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
memtab_visualizers-1.0.0-py3-none-any.whl -
Subject digest:
8443d51ec87c37a27064090fa943527dd5280c79d06a9974085321b900c1b8e9 - Sigstore transparency entry: 546830564
- Sigstore integration time:
-
Permalink:
etn-corp/memtab-visualizers@9273c03d83fb29b267c14326dc10f0e189810b4f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/etn-corp
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9273c03d83fb29b267c14326dc10f0e189810b4f -
Trigger Event:
workflow_run
-
Statement type: