Metadata-Version: 2.1
Name: runthis
Version: 0.0.3
Summary: Micro-utility for staying organized running experiments
Home-page: https://github.com/microprediction/runthis
Author: microprediction
Author-email: peter.cotton@microprediction.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: wheel
Requires-Dist: pathlib

# runthis ![tests](https://github.com/microprediction/runthis/workflows/tests/badge.svg) ![deploy-pypi](https://github.com/microprediction/runthis/workflows/deploy-pypi/badge.svg)

Trivial utility to help you arrange experiments like this: 

![](https://github.com/microprediction/runthis/blob/main/images/directory.png)



Don't want to do that? Thanks for stopping by anyway. 


### Never edit script contents
Instead, infer from the file names:

        if __name__=='__main__':
            import os
            kwargs = parse_kwargs(__file__.split(os.path.sep)[-1])
            my_experiment(**kwargs)



See [example](https://github.com/microprediction/runthis/blob/main/examples/mean_info_max_shgo%3Fn%3D5%26d%3Dcat%26init%3D%5B0.2%2C0.2%2C0.2%5D.py)

![](https://github.com/microprediction/runthis/blob/main/images/run_this.png)


New experiment? Make a copy of the file and edit the name *only*. 


### Int, float arguments
Just call the experiment file 

       my_function?n=int:5&d=cat&init=[float:0.2,float:0.2,float:0.2].py

There's a short [blog post](https://microprediction.medium.com/run-this-4c8ec95aae3f) here but I think you've got the gist.  


