Skip to content

score-p/scorep_metadata2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scorep-metadata2json

A simple parser to convert Score-P Metadata to JSON

Installation

git clone https://github.com/score-p/scorep_metadata2json.git
cd scorep_metadata2json
poetry install

Usage

To use ./bin/scorep-metadata2json, activate the project's virtual environment created by poetry:

./bin/scorep-metadata2json <path/to/scorep.fair>

Hint: Use data located in test/test_data for testing.

Yoy can output the schema of the parser by using the --schema option:

./bin/scorep-metadata2json --schema

The schema as well as a visual representation is also available in the documentation of the basemodel.


Alternatively, if you prefer not to activate the virtual environment, you can prefix your commands with poetry run:

./bin/scorep-metadata2json -h

Hint: Use jq to view the output formatted in color.

./bin/scorep-metadata2json <path/to/scorep.fair> | jq

Documentation

To build the documentation, run:

poetry install --with docs
poetry run sphinx-build docs docs/_build

It can then be found in docs/_build/index.html.

Development

To install the development dependencies, run:

poetry install --with dev

After that, run the following commands to check the code style and type annotations:

poetry run mypy .
poetry run ruff .
poetry run ruff format . 

Testing

To run the tests, run:

poetry run python -m unittest test/test_arg_parser.py
poetry run python -m unittest test/test_parser.py

About

A simple parser to convert Score-P Metadata to JSON

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published