python-apt-binary 3.0.0__cp313-cp313-manylinux_2_39_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- apt/__init__.py +40 -0
- apt/cache.py +1007 -0
- apt/cdrom.py +91 -0
- apt/debfile.py +861 -0
- apt/package.py +1559 -0
- apt/progress/__init__.py +28 -0
- apt/progress/base.py +332 -0
- apt/progress/text.py +294 -0
- apt/py.typed +0 -0
- apt/utils.py +100 -0
- apt_inst.cpython-313-x86_64-linux-gnu.so +0 -0
- apt_pkg.cpython-313-x86_64-linux-gnu.so +0 -0
- aptsources/__init__.py +6 -0
- aptsources/_deb822.py +145 -0
- aptsources/distinfo.py +402 -0
- aptsources/distro.py +581 -0
- aptsources/sourceslist.py +1083 -0
- python_apt_binary-3.0.0.data/data/share/python-apt/templates/blankon.mirrors +17 -0
- python_apt_binary-3.0.0.data/data/share/python-apt/templates/debian.mirrors +433 -0
- python_apt_binary-3.0.0.data/data/share/python-apt/templates/gnewsense.mirrors +489 -0
- python_apt_binary-3.0.0.data/data/share/python-apt/templates/kali.mirrors +2 -0
- python_apt_binary-3.0.0.data/data/share/python-apt/templates/ubuntu.mirrors +706 -0
- python_apt_binary-3.0.0.data/purelib/apt_inst-stubs/__init__.pyi +37 -0
- python_apt_binary-3.0.0.data/purelib/apt_pkg-stubs/__init__.pyi +390 -0
- python_apt_binary-3.0.0.dist-info/METADATA +16 -0
- python_apt_binary-3.0.0.dist-info/RECORD +30 -0
- python_apt_binary-3.0.0.dist-info/WHEEL +5 -0
- python_apt_binary-3.0.0.dist-info/licenses/AUTHORS +7 -0
- python_apt_binary-3.0.0.dist-info/licenses/COPYING.GPL +340 -0
- python_apt_binary-3.0.0.dist-info/top_level.txt +4 -0
apt/__init__.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Copyright (c) 2005-2009 Canonical
|
|
2
|
+
#
|
|
3
|
+
# Author: Michael Vogt <michael.vogt@ubuntu.com>
|
|
4
|
+
#
|
|
5
|
+
# This program is free software; you can redistribute it and/or
|
|
6
|
+
# modify it under the terms of the GNU General Public License as
|
|
7
|
+
# published by the Free Software Foundation; either version 2 of the
|
|
8
|
+
# License, or (at your option) any later version.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
# GNU General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU General Public License
|
|
16
|
+
# along with this program; if not, write to the Free Software
|
|
17
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
18
|
+
# USA
|
|
19
|
+
# import the core of apt_pkg
|
|
20
|
+
"""High-Level Interface for working with apt."""
|
|
21
|
+
import apt_pkg
|
|
22
|
+
|
|
23
|
+
from apt.cache import Cache as Cache
|
|
24
|
+
from apt.cache import ProblemResolver as ProblemResolver
|
|
25
|
+
|
|
26
|
+
# import some fancy classes
|
|
27
|
+
from apt.package import Package as Package
|
|
28
|
+
from apt.package import Version as Version
|
|
29
|
+
|
|
30
|
+
Cache # pyflakes
|
|
31
|
+
ProblemResolver # pyflakes
|
|
32
|
+
Version # pyflakes
|
|
33
|
+
from apt.cdrom import Cdrom as Cdrom
|
|
34
|
+
|
|
35
|
+
# init the package system, but do not re-initialize config
|
|
36
|
+
if "APT" not in apt_pkg.config:
|
|
37
|
+
apt_pkg.init_config()
|
|
38
|
+
apt_pkg.init_system()
|
|
39
|
+
|
|
40
|
+
__all__ = ["Cache", "Cdrom", "Package"]
|