fossasia / mew

Package Manager Translator
GNU General Public License v3.0
1.48k stars 29 forks source link

Mew python #15

Closed gabru-md closed 6 years ago

gabru-md commented 6 years ago

Python Wrapper for MEW

Uses JSON Dictionary for mapping commands and is hence faster than the if...else way.

Ping @xeon-zolt @meets2tarun Do Not Merge. I am still working on this. Need your input :)

gabru-md commented 6 years ago

You can try this out by ./mew pacman -S @vlc and It will work.

arguments are to be given with an @ at the beginning and flags must be given as it is. It converts the commands into the ones for Debian based distros.

Further support for more distros can be added by the community. What say ?

xeon-zolt commented 6 years ago

@gabru-md let's do this mapping for Pacman and apt only and then we create it for different package managers and let's also try one thing create a table and then installer creates JSON map file from table this can help in creating maps faster

gabru-md commented 6 years ago

@xeon-zolt are you sure that you want to go this way? because making JSON from tabular data will again cost time. Since I cannot find a valid argument in support of this idea, can you please elaborate as to why did you propose this way? :)