3 ms·
Pandas and matplotlib are great, I use them all the time. Yet whenever I write a python script for such experiments, beyond some point, I find myself writing co
by duerrp 11y ago
Pandas and matplotlib are great, I use them all the time.
Yet whenever I write a python script for such experiments, beyond some point, I find myself writing code that parses command line arguments, handles simple configuration options, saves the results of my computation in a shareable way, etc.
Pyexperiment collects these bits and pieces into a library where I can just write the relevant stuff - it's mainly solving my own pain-point and I thought I could share it.
- jackmaney 11y agoSo...it's for configuration management? What do "experiments" have to do with this? What does this package do that isn't done by click, docopt, or argparse?
- duerrp 11y ago>> So...it's for configuration management? What do >> "experiments" have to do with this? Yes and no, pyexperiment handles configuration management for you (by using argparse and configobj etc.), but it's main point is that it saves you from having to set up these components. My main goal was to reduce the overhead of writing the same "framework" code every time, so pyexperiment sets you up with simple one-command solutions for many common tasks. >> What does this package do that isn't done by click, >> docopt, or argparse? It will set you up with a framework where e.g., you don't have to write the same boilerplate code to get a multiprocessing cabable logger that logs to a file. You just call log.debug("bla") and that's it.
- duerrp 11y agoThanks for the comments, I just added another motivating example right at the top of the README. Is it clearer now?
- jackmaney 11y agoNot in the slightest. I still have no idea what this has to do with experiments.
- zenojevski 11y agoI think most people would refer to this as a "boilerplate" or "project template", even if it is not exactly so. You may have more luck explaining it to people using these terms.
- duerrp 11y agoThanks, I'll try to rephrase the readme...
- deleted 11y ago[deleted]