pyke icon indicating copy to clipboard operation
pyke copied to clipboard

Define tasks implicitly

Open andreif opened this issue 3 years ago • 1 comments

Hey, got similar idea and the name 😂 Great that you started working on it. I had a slightly different thing in mind. Say you install it system-wide and don't require importing anything. Could be an alternative way to use your tool. One just needs to find a way to distinguish functions defined in Pykefile from potentially imported ones. Maybe naming convention could help, e.g. task_... and/or ..._task. Or would it be too implicit?

andreif avatar May 08 '22 17:05 andreif

@andreif Thanks for your interest in the project, though I'll admit I forgot about it for a long time :3

Your idea is definitely plausible, and would make the end-user experience much nicer, since having Python functions end in _task is a nice organizational convention.

The problem then is how to provide utilities like pyke.export or pyke.shell. I guess I could drop those? Seems more trouble than it's worth to remove the import, but I'll take some time to re-visit the project when I'm less busy, thanks!

frissyn avatar May 09 '22 12:05 frissyn