You are not logged in.

#1 2008-12-11 03:05:59

killsto
Member
Registered: 2008-12-09
Posts: 35

Any one interested in a Python Pacman wrapper/gui?

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

#2 2008-12-11 03:27:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Any one interested in a Python Pacman wrapper/gui?

killsto wrote:

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

#3 2008-12-11 03:33:36

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,651
Website

Re: Any one interested in a Python Pacman wrapper/gui?

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

#4 2008-12-11 03:42:03

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Any one interested in a Python Pacman wrapper/gui?

[Edit ] late ..same as above

Last edited by u_no_hu (2008-12-11 03:44:40)


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#5 2008-12-11 03:54:00

killsto
Member
Registered: 2008-12-09
Posts: 35

Re: Any one interested in a Python Pacman wrapper/gui?

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

#6 2008-12-11 05:32:28

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: Any one interested in a Python Pacman wrapper/gui?

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

#7 2008-12-11 07:00:26

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,929
Website

Re: Any one interested in a Python Pacman wrapper/gui?

Web based Package manager :-) .....

Gtk/Python is fine for a wrapper

Check out Shaman a QT front ended Pacman wrapper


Mr Green

Offline

#8 2008-12-11 11:00:54

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,651
Website

Re: Any one interested in a Python Pacman wrapper/gui?

Offline

#9 2008-12-11 11:26:18

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: Any one interested in a Python Pacman wrapper/gui?

You could try a Python 3.0 variant.

Birger smile

Offline

#10 2008-12-11 15:26:39

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Any one interested in a Python Pacman wrapper/gui?

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).

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

#11 2008-12-11 23:05:09

killsto
Member
Registered: 2008-12-09
Posts: 35

Re: Any one interested in a Python Pacman wrapper/gui?

Mr.Elendig wrote:
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

#12 2008-12-12 08:29:04

MindTooth
Member
From: Norway
Registered: 2008-11-11
Posts: 331

Re: Any one interested in a Python Pacman wrapper/gui?

Maybe that is because everyone share the same thoughs? tongue

Birger smile

Offline

#13 2008-12-13 15:02:10

Xauthority
Member
From: ../
Registered: 2008-11-03
Posts: 61

Re: Any one interested in a Python Pacman wrapper/gui?

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. big_smile

Last edited by Xauthority (2008-12-13 15:02:33)

Offline

Board footer

Powered by FluxBB