Skip to main content

read a polyspace report and export misra or run-time results

Project description

polyspace-report2excel

polyspace-report2excel is a python module which adds the possibility to read a polyspace report and export misra or run-time results in an excel file for easier analyse.

Package installation

pip install polyspace-report2excel

Usage

Export polyspace data in an HTML report or RTF report then run export-all.py, you can use --help.

Script was made for polyspace 2018 but you can run it with polyspace 2014 by adding --poly14 argument.

By default it export all tables to excel and generate one file per Polyspace chapter. Use arguments to filter what you need.

:warning: by converting RTF file you must precise --runtime or --misra

Usage example with the pip package

p2e input.html output-folder/

p2e input.rtf ouput-folder/ --runtime

Usage example by cloning the repository

If you don't want to install the package polyspace-report2excel, first install the dependencies.

pip install .

Then, you can run:

python main.py input.html ouput-folder/

python main.py input.rtf ouput-folder/ --runtime

Arguments

  • --misra will export misra report only.
  • --runtime will export run-time report only (ignored if --misra).
  • -y will force overwrite if output files already exist.
  • --poly14 will read report from polyspace 2014
  • --csv will export data in CSV instead of xlsx

Create you own export script

You can also create you own script if needed. With HTMLReader you can extract all tables from report to python variables, do some operations and finally write to excel with exportxlsx. You can use export-all.py as example or see docstrings inside HTMLReader or exportxlsx.

Project details


Download files

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

Source Distribution

test-polyspace-report2excel-1.0.tar.gz (46.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

test_polyspace_report2excel-1.0-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file test-polyspace-report2excel-1.0.tar.gz.

File metadata

File hashes

Hashes for test-polyspace-report2excel-1.0.tar.gz
Algorithm Hash digest
SHA256 968732d4e070224d378b2c45b04f5dac4d3a41b0b0dcb03172f21cf5dbf5b055
MD5 409d527e4b506b82a999bd1a46dee086
BLAKE2b-256 3268e28317bfd869735eac5ee8f879f57a480269dd8c8f968ae369cb2af61387

See more details on using hashes here.

File details

Details for the file test_polyspace_report2excel-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for test_polyspace_report2excel-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51e2e998e99cbd0e6c530ca8b159aa4b5e56aa749a5204588b8e0112cef0833e
MD5 95185b346c7a08425100e3d4d7f842e4
BLAKE2b-256 c185e2859aaee050591b93aa5897ecf0e91e2c7ddea5cdd0c8727e6da81af1f9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page