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.1.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.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: runmetricsvisualizer-3.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 01fdf7744e1eba1687089b7d02922f3f2dbf00ca846599661635723f7bbc150c
MD5 1d1d673addfd7c938fa596c2ced9be72
BLAKE2b-256 0263bc79eeb0bd36427cd0dd7c93d2bd957b3a4fcf7ed729ffbd883c8daedd20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for runmetricsvisualizer-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7dfe1dc887d76143933aa5f0d172c1275eecc7f478fd66e42d20137d5c4d7bec
MD5 f155a709568612bcdf9c0492be10d1a5
BLAKE2b-256 e37122a052efc020da7dbbe760ca9851f2a67b5fdbde955703b01c6c2cb0aad1

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