Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

PYTHON API.


Data Structures

struct  hdrObject_s
class  Rpm
 START HERE / RPM base module for the Python API. More...
class  Rpmhdr
 A python header object represents an RPM package header. More...
class  Rpmdb
 A python rpmdb object represents an RPM database. More...
class  Rpmfd
 An python rpm.fd object represents an rpm I/O handle. More...
class  Rpmfts
 A python rpm.fts object represents an rpm fts(3) handle. More...
class  Rpmmi
 A python rpm.mi match iterator object represents the result of a database query. More...
class  Rpmrc
 A python rpm.rc object encapsulates rpmlib configuration. More...
class  Rpmte
 An python rpm.te object represents an element of a transaction set. More...
class  Rpmts
 A python rpm.ts object represents an RPM transaction set. More...

Class: rpm.db

rpmmiObjectrpmdb_Match (rpmdbObject *s, PyObject *args)
int rpmdb_length (rpmdbObject *s)
hdrObjectrpmdb_subscript (rpmdbObject *s, PyObject *key)
void rpmdb_dealloc (rpmdbObject *s)
PyObject * rpmdb_getattro (PyObject *o, PyObject *n)
int rpmdb_setattro (PyObject *o, PyObject *n, PyObject *v)
PyMethodDef rpmdb_methods []
PyMappingMethods rpmdb_as_mapping
char rpmdb_doc []
PyTypeObject rpmdb_Type

Class: Rpmmi

PyObject * rpmmi_iter (rpmmiObject *s)
PyObject * rpmmi_iternext (rpmmiObject *s)
PyObject * rpmmi_Next (rpmmiObject *s, PyObject *args)
PyObject * rpmmi_Instance (rpmmiObject *s, PyObject *args)
PyObject * rpmmi_Count (rpmmiObject *s, PyObject *args)
PyObject * rpmmi_Pattern (rpmmiObject *s, PyObject *args)
void rpmmi_dealloc (rpmmiObject *s)
PyObject * rpmmi_getattro (PyObject *o, PyObject *n)
int rpmmi_setattro (PyObject *o, PyObject *n, PyObject *v)
rpmmiObjectrpmmi_Wrap (rpmdbMatchIterator mi)
PyMethodDef rpmmi_methods []
char rpmmi_doc []
PyTypeObject rpmmi_Type

Module: rpm

PyObject * archScore (PyObject *self, PyObject *args)
PyObject * setLogFile (PyObject *self, PyObject *args)
PyObject * setVerbosity (PyObject *self, PyObject *args)
PyObject * setEpochPromote (PyObject *self, PyObject *args)
PyObject * setStats (PyObject *self, PyObject *args)
void initrpm (void)
PyMethodDef rpmModuleMethods []
char rpm__doc__ []

Class: rpm.rc

PyObject * rpmrc_AddMacro (PyObject *self, PyObject *args)
PyObject * rpmrc_DelMacro (PyObject *self, PyObject *args)
PyMethodDef rpmrc_methods []
PyTypeObject rpmrc_Type

Function Documentation

PyObject* archScore PyObject *  self,
PyObject *  args
[static]
 

Definition at line 40 of file rpmmodule.c.

References RPM_MACHTABLE_INSTARCH, and rpmMachineScore().

void initrpm void   ) 
 

Definition at line 170 of file rpmmodule.c.

References _RPMVSF_NODIGESTS, _RPMVSF_NOHEADER, _RPMVSF_NOPAYLOAD, _RPMVSF_NOSIGNATURES, hdr_Type, headerSprintfExtension, headerSprintfExtension_s::name, pyrpmError, REGISTER_ENUM, rpm__doc__, RPMAL_NOMATCH, rpmal_Type, RPMCALLBACK_CPIO_ERROR, RPMCALLBACK_INST_CLOSE_FILE, RPMCALLBACK_INST_OPEN_FILE, RPMCALLBACK_INST_PROGRESS, RPMCALLBACK_INST_START, RPMCALLBACK_REPACKAGE_PROGRESS, RPMCALLBACK_REPACKAGE_START, RPMCALLBACK_REPACKAGE_STOP, RPMCALLBACK_TRANS_PROGRESS, RPMCALLBACK_TRANS_START, RPMCALLBACK_TRANS_STOP, RPMCALLBACK_UNINST_PROGRESS, RPMCALLBACK_UNINST_START, RPMCALLBACK_UNINST_STOP, RPMCALLBACK_UNKNOWN, RPMCALLBACK_UNPACK_ERROR, RPMDBI_PACKAGES, RPMDEP_SENSE_CONFLICTS, RPMDEP_SENSE_REQUIRES, rpmds_Type, rpmfd_Type, rpmfi_Type, RPMFILE_CONFIG, RPMFILE_DOC, RPMFILE_EXCLUDE, RPMFILE_GHOST, RPMFILE_ICON, RPMFILE_LICENSE, RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, RPMFILE_PUBKEY, RPMFILE_README, RPMFILE_STATE_NETSHARED, RPMFILE_STATE_NORMAL, RPMFILE_STATE_NOTINSTALLED, RPMFILE_STATE_REPLACED, RPMFILE_STATE_WRONGCOLOR, RPMFILE_UNPATCHED, rpmfts_Type, RPMLOG_ALERT, RPMLOG_CRIT, RPMLOG_DEBUG, RPMLOG_EMERG, RPMLOG_ERR, RPMLOG_INFO, RPMLOG_NOTICE, RPMLOG_WARNING, rpmmi_Type, RPMMIRE_DEFAULT, RPMMIRE_GLOB, RPMMIRE_REGEX, RPMMIRE_STRCMP, rpmModuleMethods, RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_BADPRETRANS, RPMPROB_BADRELOCATE, RPMPROB_CONFLICT, RPMPROB_DISKNODES, RPMPROB_DISKSPACE, RPMPROB_FILE_CONFLICT, RPMPROB_FILTER_DISKNODES, RPMPROB_FILTER_DISKSPACE, RPMPROB_FILTER_FORCERELOCATE, RPMPROB_FILTER_IGNOREARCH, RPMPROB_FILTER_IGNOREOS, RPMPROB_FILTER_OLDPACKAGE, RPMPROB_FILTER_REPLACENEWFILES, RPMPROB_FILTER_REPLACEOLDFILES, RPMPROB_FILTER_REPLACEPKG, RPMPROB_NEW_FILE_CONFLICT, RPMPROB_OLDPACKAGE, RPMPROB_PKG_INSTALLED, RPMPROB_REQUIRES, rpmrc_Type, rpmReadConfigFiles(), RPMSENSE_CONFIG, RPMSENSE_EQUAL, RPMSENSE_FIND_PROVIDES, RPMSENSE_FIND_REQUIRES, RPMSENSE_GREATER, RPMSENSE_INTERP, RPMSENSE_KEYRING, RPMSENSE_LESS, RPMSENSE_PATCHES, RPMSENSE_PREREQ, RPMSENSE_RPMLIB, RPMSENSE_SCRIPT_BUILD, RPMSENSE_SCRIPT_CLEAN, RPMSENSE_SCRIPT_INSTALL, RPMSENSE_SCRIPT_POST, RPMSENSE_SCRIPT_POSTUN, RPMSENSE_SCRIPT_PRE, RPMSENSE_SCRIPT_PREP, RPMSENSE_SCRIPT_PREUN, RPMSENSE_SCRIPT_VERIFY, RPMSENSE_SERIAL, RPMSENSE_TRIGGERIN, RPMSENSE_TRIGGERPOSTUN, RPMSENSE_TRIGGERPREIN, RPMSENSE_TRIGGERUN, rpmTagTable, rpmte_Type, RPMTRANS_FLAG_ADDINDEPS, RPMTRANS_FLAG_ALLFILES, RPMTRANS_FLAG_ANACONDA, RPMTRANS_FLAG_BUILD_PROBS, RPMTRANS_FLAG_JUSTDB, RPMTRANS_FLAG_KEEPOBSOLETE, RPMTRANS_FLAG_NOCONFIGS, RPMTRANS_FLAG_NODOCS, RPMTRANS_FLAG_NOMD5, RPMTRANS_FLAG_NOPOST, RPMTRANS_FLAG_NOPOSTUN, RPMTRANS_FLAG_NOPRE, RPMTRANS_FLAG_NOPREUN, RPMTRANS_FLAG_NOSCRIPTS, RPMTRANS_FLAG_NOSUGGEST, RPMTRANS_FLAG_NOTRIGGERIN, RPMTRANS_FLAG_NOTRIGGERPOSTUN, RPMTRANS_FLAG_NOTRIGGERPREIN, RPMTRANS_FLAG_NOTRIGGERS, RPMTRANS_FLAG_NOTRIGGERUN, RPMTRANS_FLAG_REPACKAGE, RPMTRANS_FLAG_REVERSE, RPMTRANS_FLAG_TEST, rpmts_Type, RPMVSF_DEFAULT, RPMVSF_NEEDPAYLOAD, RPMVSF_NODSA, RPMVSF_NODSAHEADER, RPMVSF_NOHDRCHK, RPMVSF_NOMD5, RPMVSF_NOMD5HEADER, RPMVSF_NORSA, RPMVSF_NORSAHEADER, RPMVSF_NOSHA1, RPMVSF_NOSHA1HEADER, TR_ADDED, TR_REMOVED, VERIFY_DIGEST, and VERIFY_SIGNATURE.

void rpmdb_dealloc rpmdbObject s  )  [static]
 

Definition at line 204 of file rpmdb-py.c.

References rpmdbObject_s::db, rpmdbClose(), and rpmdbObject.

PyObject* rpmdb_getattro PyObject *  o,
PyObject *  n
[static]
 

Definition at line 212 of file rpmdb-py.c.

int rpmdb_length rpmdbObject s  )  [static]
 

Definition at line 145 of file rpmdb-py.c.

References rpmdbObject_s::db, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), rpmdbMatchIterator, rpmdbNextIterator(), and rpmdbObject.

rpmmiObject* rpmdb_Match rpmdbObject s,
PyObject *  args
[static]
 

Definition at line 110 of file rpmdb-py.c.

References rpmdbObject_s::db, rpmdbInitIterator(), rpmdbObject, rpmmi_Wrap(), and tagNumFromPyObject().

int rpmdb_setattro PyObject *  o,
PyObject *  n,
PyObject *  v
[static]
 

Definition at line 218 of file rpmdb-py.c.

hdrObject* rpmdb_subscript rpmdbObject s,
PyObject *  key
[static]
 

Definition at line 164 of file rpmdb-py.c.

References rpmdbObject_s::db, hdr_Wrap(), hdrObject, Header, headerFree(), pyrpmError, rpmdbFreeIterator(), RPMDBI_PACKAGES, rpmdbInitIterator(), rpmdbMatchIterator, rpmdbNextIterator(), and rpmdbObject.

PyObject* rpmmi_Count rpmmiObject s,
PyObject *  args
[static]
 

Definition at line 140 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmdbGetIteratorCount(), and rpmmiObject.

void rpmmi_dealloc rpmmiObject s  )  [static]
 

Definition at line 203 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmdbFreeIterator(), and rpmmiObject.

PyObject* rpmmi_getattro PyObject *  o,
PyObject *  n
[static]
 

Definition at line 213 of file rpmmi-py.c.

PyObject* rpmmi_Instance rpmmiObject s,
PyObject *  args
[static]
 

Definition at line 122 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmdbGetIteratorOffset(), and rpmmiObject.

PyObject* rpmmi_iter rpmmiObject s  )  [static]
 

Definition at line 72 of file rpmmi-py.c.

References rpmmiObject.

PyObject* rpmmi_iternext rpmmiObject s  )  [static]
 

Definition at line 83 of file rpmmi-py.c.

References hdr_Wrap(), Header, rpmmiObject_s::mi, rpmdbFreeIterator(), rpmdbNextIterator(), and rpmmiObject.

Referenced by rpmmi_Next().

PyObject* rpmmi_Next rpmmiObject s,
PyObject *  args
[static]
 

Definition at line 100 of file rpmmi-py.c.

References rpmmi_iternext(), and rpmmiObject.

PyObject* rpmmi_Pattern rpmmiObject s,
PyObject *  args
[static]
 

Definition at line 158 of file rpmmi-py.c.

References rpmmiObject_s::mi, rpmdbSetIteratorRE(), rpmmiObject, rpmTag, and tagNumFromPyObject().

int rpmmi_setattro PyObject *  o,
PyObject *  n,
PyObject *  v
[static]
 

Definition at line 219 of file rpmmi-py.c.

rpmmiObject* rpmmi_Wrap rpmdbMatchIterator  mi  ) 
 

Definition at line 281 of file rpmmi-py.c.

References rpmmiObject_s::mi, pyrpmError, rpmdbMatchIterator, rpmmi_Type, and rpmmiObject.

Referenced by rpmdb_Match(), and rpmts_Match().

PyObject* rpmrc_AddMacro PyObject *  self,
PyObject *  args
 

Definition at line 32 of file rpmrc-py.c.

References addMacro().

PyObject* rpmrc_DelMacro PyObject *  self,
PyObject *  args
 

Definition at line 47 of file rpmrc-py.c.

References delMacro().

PyObject* setEpochPromote PyObject *  self,
PyObject *  args
[static]
 

Definition at line 94 of file rpmmodule.c.

References _rpmds_nopromote.

PyObject* setLogFile PyObject *  self,
PyObject *  args
[static]
 

Definition at line 55 of file rpmmodule.c.

References pyrpmError, and rpmlogSetFile().

PyObject* setStats PyObject *  self,
PyObject *  args
[static]
 

Definition at line 104 of file rpmmodule.c.

References _rpmts_stats.

PyObject* setVerbosity PyObject *  self,
PyObject *  args
[static]
 

Definition at line 79 of file rpmmodule.c.

References rpmSetVerbosity.


Variable Documentation

char rpm__doc__[] [static]
 

Initial value:

""

Definition at line 164 of file rpmmodule.c.

Referenced by initrpm().

PyMappingMethods rpmdb_as_mapping [static]
 

Initial value:

 {
        (inquiry) rpmdb_length,         
        (binaryfunc) rpmdb_subscript,   
        (objobjargproc)0,               
}

Definition at line 196 of file rpmdb-py.c.

char rpmdb_doc[] [static]
 

Initial value:

""

Definition at line 227 of file rpmdb-py.c.

struct PyMethodDef rpmdb_methods[] [static]
 

Initial value:

 {
    {"match",       (PyCFunction) rpmdb_Match,  METH_VARARGS,
"db.match([TagN, [key, [len]]]) -> mi\n\
- Create an rpm db match iterator.\n" },
    {NULL,              NULL}           
}

Definition at line 134 of file rpmdb-py.c.

PyTypeObject rpmdb_Type
 

Definition at line 233 of file rpmdb-py.c.

char rpmmi_doc[] [static]
 

Initial value:

""

Definition at line 228 of file rpmmi-py.c.

struct PyMethodDef rpmmi_methods[] [static]
 

Initial value:

 {
    {"next",        (PyCFunction) rpmmi_Next,           METH_VARARGS,
"mi.next() -> hdr\n\
- Retrieve next header that matches. Iterate directly in python if possible.\n" },
    {"instance",    (PyCFunction) rpmmi_Instance,       METH_VARARGS,
        NULL },
    {"count",       (PyCFunction) rpmmi_Count,          METH_VARARGS,
        NULL },
    {"pattern",     (PyCFunction) rpmmi_Pattern,        METH_VARARGS,
"mi.pattern(TagN, mire_type, pattern)\n\
- Set a secondary match pattern on tags from retrieved header.\n" },
    {NULL,              NULL}           
}

Definition at line 186 of file rpmmi-py.c.

PyTypeObject rpmmi_Type
 

Definition at line 234 of file rpmmi-py.c.

Referenced by initrpm(), and rpmmi_Wrap().

PyMethodDef rpmModuleMethods[] [static]
 

Definition at line 114 of file rpmmodule.c.

Referenced by initrpm().

struct PyMethodDef rpmrc_methods[] [static]
 

Initial value:

 {
    { "addMacro",       (PyCFunction) rpmrc_AddMacro, METH_VARARGS,
        NULL },
    { "delMacro",       (PyCFunction) rpmrc_DelMacro, METH_VARARGS,
        NULL },




    {NULL,              NULL}           
}

Definition at line 314 of file rpmrc-py.c.

PyTypeObject rpmrc_Type
 

Initial value:

 {
        PyObject_HEAD_INIT(&PyType_Type)
        0,                              
        "rpm.rc",                       
        sizeof(rpmrcObject),            
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0,                              
        0                               
}

Definition at line 375 of file rpmrc-py.c.

Referenced by initrpm().


Generated on Fri May 4 07:55:23 2007 for rpm by  doxygen 1.3.9.1