You are not logged in.

#1 2013-06-05 08:54:45

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

pyalpm, where are the docs?

Hello,

maybe I searched in wrong places, but really I couldn't find any explanation on what pyalpm/alpm would do for each available call.
I'm trying some python scripting which need information from the pacman results. I'd rather prefer to use pyalpm, but I'm in the middle of nowhere.


do it good first, it will be faster than do it twice the saint wink

Offline

#2 2013-06-05 09:05:14

progandy
Member
Registered: 2012-05-17
Posts: 5,317

Re: pyalpm, where are the docs?

pyalpm includes pycman, a simple pacman implementation in python. It should give you some pointers


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2013-06-05 09:06:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: pyalpm, where are the docs?

Moving to Pacman and Packages...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2013-06-05 15:13:06

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: pyalpm, where are the docs?

progandy wrote:

pyalpm includes pycman, a simple pacman implementation in python. It should give you some pointers

Found it, but it's a hard time to reverse engineering what those calls are used for, or what they give in return.
Definitely poor documentation yet. Maybe the alpm should have more details. I doubt that all of those had to deal with ALPM, had to do revengineering.

At the first, I'd like to have the result similar to pacman -Sup '%r %l %s'
In the pycman script I find just the equivalent of pacman -Su or pacman -Sy , which are ready-to-use. It's still difficult to extrapolate other informations and/or functions calls within these 2 commands.

Last edited by TheSaint (2013-06-05 15:21:54)


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB