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 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"]