Skip to main content

A package for storing function runtime data and graphing it via GUI!

Project description

RunMetrics Visualizer

A handy developer tool for storing function runtime data and graphing it via GUI!

MIT License LinkedIn

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

This personal project is meant to be a developer tool, aimed at mass running functions, storing their runtimes as CSV data, aggregating it, and using a GUI to create a graph of this data. This tool is pip installable, making it extremely easy for Python developers to use.

Built With

Getting Started

Prerequisites

pip

pip --version

Installation

Simply pip install the module

pip install runmetricsvisualizer

Usage

import runmetricsvisualizer as rmv

RunMetrics.run()

Runs a specified function desired amount of times, outputs runtime data to CSV file as provided by user. Uses *args and **kwargs for function parameters.\

RunMetrics.run(function, output_csv_file, *function_args, function_run_count, **function_kwargs)

Example

# our function
def do_something(num, iterations):
    for x in range(num):
        sum([x**4 for x in range(iterations)])

# (num = 100, iterations = 1000) Will generate 50 datapoints
RunMetrics.run(do_something, 'data/test.csv', 100, 1000, count=50)

RunMetrics.plot()

Opens a Tkinter-generated GUI window for customizing graph settings: datapoint colors, chart style, background theme, and chart title.

RunMetrics.plot(CSVfile_to_plot_from)

Example

RunMetrics.plot('data/test.csv')
# opens the following GUI menu

GUI

Roadmap

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Rahul Vikram - LinkedIn

Acknowledgments

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

runmetricsvisualizer-3.1.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

runmetricsvisualizer-3.1.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file runmetricsvisualizer-3.1.2.tar.gz.

File metadata

  • Download URL: runmetricsvisualizer-3.1.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11

File hashes

Hashes for runmetricsvisualizer-3.1.2.tar.gz
Algorithm Hash digest
SHA256 4d742432d84e83034a4dafd79a2633aef0f961bbfc4f8c9a3b639cb91b276495
MD5 6ad911171704fb5ed908a770345847ca
BLAKE2b-256 2cd7738f841c1a30b26c402b496d3d43102f33bab8822bf641ebb623b7c51284

See more details on using hashes here.

File details

Details for the file runmetricsvisualizer-3.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for runmetricsvisualizer-3.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5774b1b29f671549272a095e64f9654976c6642ed613ac028fd3f2f177b0276
MD5 48ccd5e1343045869b777d3a699c1418
BLAKE2b-256 fa217306eff7d0defe214002957552d193fcae05fd73dc7d35255694b74cc113

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