I've made both such a HORRIBLE and AWESOME prototype in python, it's call "py2sh", you give it whatever python file and it will allow you to call every function of this file directly from the cli will allowing you to parse arguments.
This is like a python-shell bridge :p
(and I have way worst ideas for that)
Oh and it's only 32 lines of #python code x)
And here is an untested release of the code https://github.com/Psycojoker/py2sh
@bram That sounds really neat! Especially the fact that it's so short.
Count me curious!
@HerraBRE here you go :) https://github.com/Psycojoker/py2sh/blob/master/py2sh
All the heavy job is done by argh, it's a bit like "how you shouldn't have used argh" kind of project :p
@bram Now I need to go learn about argh. Thanks!
@bram ah oui Xonsh ^^
@melunaka spa vraiment le même genre de projet x)
@bram bram.... pourquoi....
@wxcafe parce que JE PEUX \°v°/
@bram looks like magic!
@xiroux it's just missusing a cool lib x)
Can't wait to see these 32 lines!
@alfajet here you go :) https://github.com/Psycojoker/py2sh/blob/master/py2sh
@bram neat 👍
@josue no, I haven't spend a lot of time on this getopt thing but I had the feeling that this could be useful for YunoHost yes (while not really wanting it, it's dirty)
This is an open mastodon instance for social justice activists, LGBTQIA+ people, and people who are aware of such subjects and care about them.
See the Goals, rules, and technical details for more information