You are not logged in.
Right now developing a simple library that basically gives python programmers access to pacman commands. Basically I'm just using subprocess to call pacman. It's not hard at all, anyone could do it. But I'm thinking this will allow easy creation of a gui for Pacman.
I'm aware that there are already several gui's for pacman. I don't plan on anything special except that it will be coded in python which allows for easy modification from the community if desired.
If there is a better way then calling pacman then please tell me. I was hoping to do queries on the local database natively, but I don't know where it is. I'm up for suggestions as this will be 4th project ever, if it gets completed.
Anyone interested?
Offline
If there is a better way then calling pacman then please tell me.
xerxes2 had a complety reimplementation of pacman written in python. It was working pretty good but he went off to develop his own Swedish distro and I suspect its pretty incompatible with pacman 3. However, it might be a terrific starting point for your project.
https://gna.org/projects/libpypac/
I briefly worked with him on another project, his code is good.
Dusty
Offline
I have seen more recent attempts/discussions at creating python bindings for pacman around here... I don't know if they actually got anywhere and am being too lazy to do the required forum/mailing list search.
Offline
[Edit ] late ..same as above
Last edited by u_no_hu (2008-12-11 03:44:40)
Offline
Alright. If this is already been tried I'll let it be. I'll update when i have something to show instead of just an idea and a couple functions. I'll put it on launchpad in a week or so maybe.
OT: The Ubuntu community favors python w/ gtk. But since Arch users use a variety of different window managers, There is no one set toolkit that is generally used. I've noticed a lot of Arch users enjoy speed, so I considered that PYFLTK. But if speed is what I would be going for, I would be using C. Is GTK generally accepted by the community?
Offline
I think GTK is generally quite accepted, and used for a few pacman guis, but nobody has ever done a fltk pacman gui afaik.
What would be really neat would be a web interface for pacman (kinda like the one for cups). It'd make it easier to get details about packages and stuff due to the full screen display.
Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.
Offline
Web based Package manager :-) .....
Gtk/Python is fine for a wrapper
Check out Shaman a QT front ended Pacman wrapper
Mr Green
Offline
This is new... http://bbs.archlinux.org/viewtopic.php?id=60711
Offline
You could try a Python 3.0 variant.
Birger ![]()
Offline
Right now developing a simple library that basically gives python programmers access to pacman commands. Basically I'm just using subprocess to call pacman. It's not hard at all, anyone could do it. But I'm thinking this will allow easy creation of a gui for Pacman.
I'm aware that there are already several gui's for pacman. I don't plan on anything special except that it will be coded in python which allows for easy modification from the community if desired.
If there is a better way then calling pacman then please tell me. I was hoping to do queries on the local database natively, but I don't know where it is. I'm up for suggestions as this will be 4th project ever, if it gets completed.
Anyone interested?
In my opinion, you should help out with pyalpm/pyalpmm project instead. As I see it, it's a better way to go, using the alpm lib instead of just wrapping pacman in subprocess. It's more flexible, and you don't depend on features in pacman (or hampered by the lack of features).
Last edited by Mr.Elendig (2008-12-11 15:28:47)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
killsto wrote:Right now developing a simple library that basically gives python programmers access to pacman commands. Basically I'm just using subprocess to call pacman. It's not hard at all, anyone could do it. But I'm thinking this will allow easy creation of a gui for Pacman.
I'm aware that there are already several gui's for pacman. I don't plan on anything special except that it will be coded in python which allows for easy modification from the community if desired.
If there is a better way then calling pacman then please tell me. I was hoping to do queries on the local database natively, but I don't know where it is. I'm up for suggestions as this will be 4th project ever, if it gets completed.
Anyone interested?
In my opinion, you should help out with pyalpm/pyalpmm project instead. As I see it, it's a better way to go, using the alpm lib instead of just wrapping pacman in subprocess. It's more flexible, and you don't depend on features in pacman (or hampered by the lack of features).
I didn't know about it before, I'll probably do that.
You could try a Python 3.0 variant.
I don't see python 3.0 being widely adopted anytime soon.
Last edited by killsto (2008-12-11 23:05:56)
Offline
Maybe that is because everyone share the same thoughs? ![]()
Birger ![]()
Offline
Yeah I would like to see also py3/GTK interface for pacman. But I think one based on ncurses could also be interesting.
Some kinda PACtitude. ![]()
Last edited by Xauthority (2008-12-13 15:02:33)
Offline