Permalink
Browse files

first commit

  • Loading branch information...
excid3 committed Aug 20, 2009
0 parents commit 184e166d016a911faa4ebb1dc76fe3bf9b2908d3
Showing with 96,190 additions and 0 deletions.
  1. +6 −0 AUTHORS
  2. +340 −0 COPYING.GPL
  3. +15 −0 README
  4. +9 −0 TODO
  5. +21 −0 apt/README.apt
  6. +19 −0 apt/__init__.py
  7. BIN apt/__init__.pyc
  8. +393 −0 apt/cache.py
  9. +47 −0 apt/cdrom.py
  10. +58 −0 apt/debfile.py
  11. +497 −0 apt/package.py
  12. +246 −0 apt/progress.py
  13. +5 −0 aptsources/__init__.py
  14. +264 −0 aptsources/distinfo.py
  15. +440 −0 aptsources/distro.py
  16. +438 −0 aptsources/sourceslist.py
  17. +127 −0 build/data/templates/Debian.info
  18. +521 −0 build/data/templates/Ubuntu.info
  19. +34 −0 configure.in
  20. +127 −0 data/templates/Debian.info.in
  21. +807 −0 data/templates/Debian.mirrors
  22. +46 −0 data/templates/README.templates
  23. +521 −0 data/templates/Ubuntu.info.in
  24. +351 −0 data/templates/Ubuntu.mirrors
  25. +3 −0 debian/README.source
  26. +587 −0 debian/changelog
  27. +1 −0 debian/compat
  28. +42 −0 debian/control
  29. +7 −0 debian/copyright
  30. +1 −0 debian/examples
  31. +1 −0 debian/pycompat
  32. +3 −0 debian/python-apt.docs
  33. +3 −0 debian/python-apt.install
  34. +37 −0 debian/rules
  35. +80 −0 doc/examples/acquire.py
  36. +122 −0 doc/examples/action.py
  37. +34 −0 doc/examples/all_deps.py
  38. +72 −0 doc/examples/build-deps.py
  39. +32 −0 doc/examples/cdrom.py
  40. +36 −0 doc/examples/checkstate.py
  41. +54 −0 doc/examples/config.py
  42. +39 −0 doc/examples/configisc.py
  43. +47 −0 doc/examples/deb_inspect.py
  44. +109 −0 doc/examples/depcache.py
  45. +36 −0 doc/examples/dependant-pkgs.py
  46. +25 −0 doc/examples/desc.py
  47. +124 −0 doc/examples/gui-inst.py
  48. +21 −0 doc/examples/indexfile.py
  49. +48 −0 doc/examples/inst.py
  50. +15 −0 doc/examples/metaindex.py
  51. +22 −0 doc/examples/print_uris.py
  52. +89 −0 doc/examples/progress.py
  53. +41 −0 doc/examples/recommends.py
  54. +12 −0 doc/examples/records.py
  55. +15 −0 doc/examples/sources.py
  56. +8 −0 doc/examples/tagfile.py
  57. +13 −0 doc/examples/update.py
  58. +36 −0 doc/examples/versiontest.py
  59. +13 −0 doc/makefile
  60. +4 −0 po/POTFILES.in
  61. +354 −0 po/am.po
  62. +725 −0 po/ar.po
  63. +623 −0 po/be.po
  64. +1,684 −0 po/bg.po
  65. +1,124 −0 po/bn.po
  66. +358 −0 po/br.po
  67. +1,640 −0 po/ca.po
  68. +1,541 −0 po/cs.po
  69. +537 −0 po/csb.po
  70. +1,542 −0 po/da.po
  71. +1,895 −0 po/de.po
  72. +1,645 −0 po/el.po
  73. +1,494 −0 po/en_AU.po
  74. +971 −0 po/en_CA.po
  75. +1,752 −0 po/en_GB.po
  76. +573 −0 po/eo.po
  77. +1,833 −0 po/es.po
  78. +435 −0 po/et.po
  79. +406 −0 po/eu.po
  80. +317 −0 po/fa.po
  81. +1,880 −0 po/fi.po
  82. +1,821 −0 po/fr.po
  83. +346 −0 po/fur.po
  84. +1,771 −0 po/gl.po
  85. +1,500 −0 po/he.po
  86. +352 −0 po/hi.po
  87. +1,536 −0 po/hr.po
  88. +1,553 −0 po/hu.po
  89. +1,432 −0 po/id.po
  90. +1,909 −0 po/it.po
  91. +1,872 −0 po/ja.po
  92. +1,523 −0 po/ka.po
  93. +1,360 −0 po/ko.po
  94. +1,423 −0 po/ku.po
  95. +1,408 −0 po/lt.po
  96. +447 −0 po/lv.po
  97. +1,447 −0 po/mk.po
  98. +313 −0 po/mr.po
  99. +645 −0 po/ms.po
  100. +1,795 −0 po/nb.po
  101. +975 −0 po/ne.po
  102. +1,566 −0 po/nl.po
  103. +481 −0 po/nn.po
  104. +1,022 −0 po/no.po
  105. +843 −0 po/oc.po
  106. +500 −0 po/pa.po
  107. +2,063 −0 po/pl.po
  108. +313 −0 po/ps.po
  109. +1,635 −0 po/pt.po
  110. +2,058 −0 po/pt_BR.po
  111. +327 −0 po/python-apt.pot
  112. +316 −0 po/qu.po
  113. +1,490 −0 po/ro.po
  114. +1,578 −0 po/ru.po
  115. +909 −0 po/rw.po
  116. +1,811 −0 po/sk.po
  117. +599 −0 po/sl.po
  118. +465 −0 po/sq.po
  119. +442 −0 po/sr.po
  120. +3,902 −0 po/sv.po
  121. +392 −0 po/ta.po
  122. +1,495 −0 po/th.po
  123. +901 −0 po/tl.po
  124. +1,389 −0 po/tr.po
  125. +1,004 −0 po/uk.po
  126. +354 −0 po/ur.po
  127. +348 −0 po/urd.po
  128. +993 −0 po/vi.po
  129. +448 −0 po/xh.po
  130. +1,575 −0 po/zh_CN.po
  131. +895 −0 po/zh_HK.po
  132. +1,308 −0 po/zh_TW.po
  133. +278 −0 python/acquire.cc
  134. +160 −0 python/apt_instmodule.cc
  135. +20 −0 python/apt_instmodule.h
  136. +532 −0 python/apt_pkgmodule.cc
  137. +103 −0 python/apt_pkgmodule.h
  138. +958 −0 python/cache.cc
  139. +110 −0 python/cdrom.cc
  140. +524 −0 python/configuration.cc
  141. +851 −0 python/depcache.cc
  142. +91 −0 python/generic.cc
  143. +148 −0 python/generic.h
  144. +92 −0 python/indexfile.cc
  145. +26 −0 python/makefile
  146. +81 −0 python/metaindex.cc
  147. +135 −0 python/pkgmanager.cc
  148. +123 −0 python/pkgrecords.cc
  149. +10 −0 python/pkgrecords.h
  150. +180 −0 python/pkgsrcrecords.cc
  151. +353 −0 python/progress.cc
  152. +92 −0 python/progress.h
  153. +123 −0 python/sourcelist.cc
  154. +108 −0 python/string.cc
  155. +445 −0 python/tag.cc
  156. +182 −0 python/tar.cc
  157. +5 −0 setup.cfg
  158. +47 −0 setup.py
  159. +26 −0 tests/apt-test.py
  160. +49 −0 tests/cache.py
  161. +6 −0 tests/data/sources.list
  162. +13 −0 tests/data/sources.list.testDistribution
  163. +52 −0 tests/depcache.py
  164. +1 −0 tests/hashsum_test.data
  165. BIN tests/hashsum_test_with_zero.data
  166. +47 −0 tests/lock.py
  167. +46 −0 tests/memleak.py
  168. +69 −0 tests/pkgproblemresolver.py
  169. +36 −0 tests/pkgrecords.py
  170. +25 −0 tests/pkgsrcrecords.py
  171. +54 −0 tests/refcount.py
  172. +59 −0 tests/test-data-ports/sources.list
  173. +143 −0 tests/test_aptsources.py
  174. +37 −0 tests/test_aptsources_ports.py
  175. +13 −0 tests/test_debextract.py
  176. +10 −0 tests/test_extract_archive.py
  177. +64 −0 tests/test_hashsums.py
  178. +71 −0 utils/get_debian_mirrors.py
  179. +61 −0 utils/get_ubuntu_mirrors.py
  180. +88 −0 utils/get_ubuntu_mirrors_from_lp.py
  181. +100 −0 utils/mirrortest
@@ -0,0 +1,6 @@
+jgg Jason Gunthorpe <jgg@debian.org>
+mdz Matt Zimmerman <mdz@debian.org>
+mvo Michael Vogt <mvo@debian.org>
+Michiel Sikkes <michiel@eyesopened.nl>
+Sebastian Heinlein <glatzor@ubuntu.com>
+Sean Wheller <sean@inwords.co.za>

Large diffs are not rendered by default.

Oops, something went wrong.
15 README
@@ -0,0 +1,15 @@
+Python-apt is a wrapper to use features of apt from python.
+
+It contains the following modules:
+
+C++ Wrapper:
+------------
+apt_pkg - access to libapt-pkg (wrapper to the lowlevel c++ code)
+apt_inst - access to libapt-inst (wrapper to the lowlevel c++ code)
+
+Python module:
+--------------
+WARNING: the API of this module is not stable yet
+
+apt - high level python interface build on top of apt_pkg, apt_inst
+
9 TODO
@@ -0,0 +1,9 @@
+* apt.Package:
+ - change all candidateInstalledSize() to installSize(useCandidate=True)
+ same for candidateOrigin() (see downloadable for a example).
+ - might be better to have "Package.candidate.{downloadable,size,etc}
+
+* aptsources:
+ - make the distro detection in sources.list more clever by using the
+ origin informaton to avoid adding full uris to (unofficial/internal)
+ mirrors
@@ -0,0 +1,21 @@
+In addition to "apt_pkg" and "apt_inst" (that are thin wrappers around
+the c++ libapt code) a new python module "apt" is provided since version
+0.6.13 of python-apt.
+
+It is a more python like interface to work with libapt (it uses apt_pkg
+internally). Although there are already applications written against the new
+apt python interface the API may change in the future and should not be
+considered stable. If in doubt, please contact deity@lists.debian.org.
+
+WARNING !!! The API is not 100% stable yet !!!
+
+
+Style Guides:
+-------------
+
+Follow PEP08.
+
+Internal variables/methods are prefixed with a "_" (e.g. _foo).
+
+
+
@@ -0,0 +1,19 @@
+# import the core of apt_pkg
+import apt_pkg
+import sys
+import os
+
+# import some fancy classes
+from apt.package import Package
+from apt.cache import Cache
+from apt.progress import OpProgress, FetchProgress, InstallProgress, CdromProgress
+from apt.cdrom import Cdrom
+from apt_pkg import SizeToStr, TimeToStr, VersionCompare
+
+# init the package system
+apt_pkg.init()
+
+
+import warnings
+warnings.warn("apt API not stable yet", FutureWarning)
+del warnings
Binary file not shown.
Oops, something went wrong.

0 comments on commit 184e166

Please sign in to comment.