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!
Table of Contents
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
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt for more information.
Contact
Rahul Vikram - LinkedIn
Acknowledgments
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01fdf7744e1eba1687089b7d02922f3f2dbf00ca846599661635723f7bbc150c
|
|
| MD5 |
1d1d673addfd7c938fa596c2ced9be72
|
|
| BLAKE2b-256 |
0263bc79eeb0bd36427cd0dd7c93d2bd957b3a4fcf7ed729ffbd883c8daedd20
|
File details
Details for the file runmetricsvisualizer-3.1.1-py3-none-any.whl.
File metadata
- Download URL: runmetricsvisualizer-3.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.0 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dfe1dc887d76143933aa5f0d172c1275eecc7f478fd66e42d20137d5c4d7bec
|
|
| MD5 |
f155a709568612bcdf9c0492be10d1a5
|
|
| BLAKE2b-256 |
e37122a052efc020da7dbbe760ca9851f2a67b5fdbde955703b01c6c2cb0aad1
|