# 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.
Raw data
{
"_id": null,
"home_page": "https://github.com/microprediction/runthis",
"name": "runthis",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "microprediction",
"author_email": "peter.cotton@microprediction.com",
"download_url": "https://files.pythonhosted.org/packages/f2/10/09ca6c17ab7934fa262357c9cf37b8baf2c9a06c92f93d03b05120448eed/runthis-0.0.3.tar.gz",
"platform": "",
"description": "# runthis ![tests](https://github.com/microprediction/runthis/workflows/tests/badge.svg) ![deploy-pypi](https://github.com/microprediction/runthis/workflows/deploy-pypi/badge.svg)\n\nTrivial utility to help you arrange experiments like this: \n\n![](https://github.com/microprediction/runthis/blob/main/images/directory.png)\n\n\n\nDon't want to do that? Thanks for stopping by anyway. \n\n\n### Never edit script contents\nInstead, infer from the file names:\n\n if __name__=='__main__':\n import os\n kwargs = parse_kwargs(__file__.split(os.path.sep)[-1])\n my_experiment(**kwargs)\n\n\n\nSee [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)\n\n![](https://github.com/microprediction/runthis/blob/main/images/run_this.png)\n\n\nNew experiment? Make a copy of the file and edit the name *only*. \n\n\n### Int, float arguments\nJust call the experiment file \n\n my_function?n=int:5&d=cat&init=[float:0.2,float:0.2,float:0.2].py\n\nThere's a short [blog post](https://microprediction.medium.com/run-this-4c8ec95aae3f) here but I think you've got the gist. \n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Micro-utility for staying organized running experiments",
"version": "0.0.3",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "e2c75b5ee6ca68595438f21909e58ae0",
"sha256": "849552e2469371321846cc55784cbcb80c1f314f111e553fac615be879b100da"
},
"downloads": -1,
"filename": "runthis-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e2c75b5ee6ca68595438f21909e58ae0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3569,
"upload_time": "2022-02-15T18:47:57",
"upload_time_iso_8601": "2022-02-15T18:47:57.867630Z",
"url": "https://files.pythonhosted.org/packages/69/68/c0036ed04f78621d174b9ab37142cf27aaa2c8ff3de05ceea2f627a07978/runthis-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "28ce36a5e61b4aa32ffb2c2c24b733c9",
"sha256": "d8e1bee8cd6240e6012bcaee3bf1f6e72ba4f4b5ca92d27d6ab4b11b5cecc8e6"
},
"downloads": -1,
"filename": "runthis-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "28ce36a5e61b4aa32ffb2c2c24b733c9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3076,
"upload_time": "2022-02-15T18:47:59",
"upload_time_iso_8601": "2022-02-15T18:47:59.314240Z",
"url": "https://files.pythonhosted.org/packages/f2/10/09ca6c17ab7934fa262357c9cf37b8baf2c9a06c92f93d03b05120448eed/runthis-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-02-15 18:47:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "microprediction",
"github_project": "runthis",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "runthis"
}