gstreamer-python 1.27.90__cp39-cp39-win32.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.
- gstreamer_python/Lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/HarfBuzz-0.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/Json-1.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/Pango-1.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/Soup-3.0.typelib +0 -0
- gstreamer_python/Lib/gstreamer-1.0/gstpython.dll +0 -0
- gstreamer_python/Lib/site-packages/PyGObject-3.50.2.dist-info/METADATA +21 -0
- gstreamer_python/Lib/site-packages/cairo/__init__.py +25 -0
- gstreamer_python/Lib/site-packages/cairo/__init__.pyi +5889 -0
- gstreamer_python/Lib/site-packages/cairo/_cairo.cp39-win32.pyd +0 -0
- gstreamer_python/Lib/site-packages/cairo/include/py3cairo.h +266 -0
- gstreamer_python/Lib/site-packages/cairo/py.typed +0 -0
- gstreamer_python/Lib/site-packages/gi/__init__.py +197 -0
- gstreamer_python/Lib/site-packages/gi/_constants.py +47 -0
- gstreamer_python/Lib/site-packages/gi/_error.py +55 -0
- gstreamer_python/Lib/site-packages/gi/_gi.cp39-win32.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/_gi_cairo.cp39-win32.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/_gtktemplate.py +307 -0
- gstreamer_python/Lib/site-packages/gi/_option.py +379 -0
- gstreamer_python/Lib/site-packages/gi/_ossighelper.py +275 -0
- gstreamer_python/Lib/site-packages/gi/_propertyhelper.py +402 -0
- gstreamer_python/Lib/site-packages/gi/_signalhelper.py +249 -0
- gstreamer_python/Lib/site-packages/gi/docstring.py +205 -0
- gstreamer_python/Lib/site-packages/gi/events.py +674 -0
- gstreamer_python/Lib/site-packages/gi/importer.py +153 -0
- gstreamer_python/Lib/site-packages/gi/module.py +269 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GES.py +94 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GIMarshallingTests.py +72 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GLib.py +882 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GObject.py +692 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gdk.py +444 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GdkPixbuf.py +53 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gio.py +655 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gst.py +1273 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstAnalytics.py +106 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstApp.py +50 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstAudio.py +18 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstPbutils.py +99 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstVideo.py +17 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gtk.py +1707 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Pango.py +58 -0
- gstreamer_python/Lib/site-packages/gi/overrides/__init__.py +357 -0
- gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst.cp39-win32.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst_analytics.cp39-win32.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/overrides/keysyms.py +53 -0
- gstreamer_python/Lib/site-packages/gi/pygtkcompat.py +26 -0
- gstreamer_python/Lib/site-packages/gi/repository/__init__.py +28 -0
- gstreamer_python/Lib/site-packages/gi/types.py +350 -0
- gstreamer_python/Lib/site-packages/pycairo-1.27.0.dist-info/METADATA +9 -0
- gstreamer_python/__init__.py +32 -0
- gstreamer_python-1.27.90.dist-info/METADATA +26 -0
- gstreamer_python-1.27.90.dist-info/RECORD +55 -0
- gstreamer_python-1.27.90.dist-info/WHEEL +5 -0
- gstreamer_python-1.27.90.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# -*- Mode: Python; py-indent-offset: 4 -*-
|
|
2
|
+
# vim: tabstop=4 shiftwidth=4 expandtab
|
|
3
|
+
#
|
|
4
|
+
# Copyright (C) 2005-2009 Johan Dahlin <johan@gnome.org>
|
|
5
|
+
#
|
|
6
|
+
# types.py: base types for introspected items.
|
|
7
|
+
#
|
|
8
|
+
# This library is free software; you can redistribute it and/or
|
|
9
|
+
# modify it under the terms of the GNU Lesser General Public
|
|
10
|
+
# License as published by the Free Software Foundation; either
|
|
11
|
+
# version 2.1 of the License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This library is distributed in the hope that it will be useful,
|
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16
|
+
# Lesser General Public License for more details.
|
|
17
|
+
#
|
|
18
|
+
# You should have received a copy of the GNU Lesser General Public
|
|
19
|
+
# License along with this library; if not, write to the Free Software
|
|
20
|
+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
|
|
21
|
+
# USA
|
|
22
|
+
|
|
23
|
+
import re
|
|
24
|
+
|
|
25
|
+
from ._constants import TYPE_INVALID
|
|
26
|
+
from .docstring import generate_doc_string
|
|
27
|
+
|
|
28
|
+
from ._gi import \
|
|
29
|
+
InterfaceInfo, \
|
|
30
|
+
ObjectInfo, \
|
|
31
|
+
StructInfo, \
|
|
32
|
+
VFuncInfo, \
|
|
33
|
+
register_interface_info, \
|
|
34
|
+
hook_up_vfunc_implementation, \
|
|
35
|
+
GInterface
|
|
36
|
+
from . import _gi
|
|
37
|
+
|
|
38
|
+
StructInfo, GInterface # pyflakes
|
|
39
|
+
|
|
40
|
+
from . import _propertyhelper as propertyhelper
|
|
41
|
+
from . import _signalhelper as signalhelper
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def snake_case(name):
|
|
45
|
+
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', name)
|
|
46
|
+
return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class MetaClassHelper(object):
|
|
50
|
+
def _setup_methods(cls):
|
|
51
|
+
for method_info in cls.__info__.get_methods():
|
|
52
|
+
setattr(cls, method_info.__name__, method_info)
|
|
53
|
+
|
|
54
|
+
def _setup_class_methods(cls):
|
|
55
|
+
info = cls.__info__
|
|
56
|
+
class_struct = info.get_class_struct()
|
|
57
|
+
if class_struct is None:
|
|
58
|
+
return
|
|
59
|
+
for method_info in class_struct.get_methods():
|
|
60
|
+
name = method_info.__name__
|
|
61
|
+
# Don't mask regular methods or base class methods with TypeClass methods.
|
|
62
|
+
if not hasattr(cls, name):
|
|
63
|
+
setattr(cls, name, classmethod(method_info))
|
|
64
|
+
|
|
65
|
+
def _setup_fields(cls):
|
|
66
|
+
for field_info in cls.__info__.get_fields():
|
|
67
|
+
name = field_info.get_name().replace('-', '_')
|
|
68
|
+
setattr(cls, name, property(field_info.get_value, field_info.set_value))
|
|
69
|
+
|
|
70
|
+
def _setup_constants(cls):
|
|
71
|
+
for constant_info in cls.__info__.get_constants():
|
|
72
|
+
name = constant_info.get_name()
|
|
73
|
+
value = constant_info.get_value()
|
|
74
|
+
setattr(cls, name, value)
|
|
75
|
+
|
|
76
|
+
def _setup_vfuncs(cls):
|
|
77
|
+
for vfunc_name, py_vfunc in cls.__dict__.items():
|
|
78
|
+
if not vfunc_name.startswith("do_") or not callable(py_vfunc):
|
|
79
|
+
continue
|
|
80
|
+
|
|
81
|
+
skip_ambiguity_check = False
|
|
82
|
+
|
|
83
|
+
# If a method name starts with "do_" assume it is a vfunc, and search
|
|
84
|
+
# in the base classes for a method with the same name to override.
|
|
85
|
+
# Recursion is necessary as overriden methods in most immediate parent
|
|
86
|
+
# classes may shadow vfuncs from classes higher in the hierarchy.
|
|
87
|
+
vfunc_info = None
|
|
88
|
+
for base in cls.__mro__:
|
|
89
|
+
method = getattr(base, vfunc_name, None)
|
|
90
|
+
if method is not None and isinstance(method, VFuncInfo):
|
|
91
|
+
vfunc_info = method
|
|
92
|
+
break
|
|
93
|
+
|
|
94
|
+
if not hasattr(base, '__info__') or not hasattr(base.__info__, 'get_vfuncs'):
|
|
95
|
+
continue
|
|
96
|
+
|
|
97
|
+
base_name = snake_case(base.__info__.get_type_name())
|
|
98
|
+
|
|
99
|
+
for v in base.__info__.get_vfuncs():
|
|
100
|
+
if vfunc_name == 'do_%s_%s' % (base_name, v.get_name()):
|
|
101
|
+
vfunc_info = v
|
|
102
|
+
skip_ambiguity_check = True
|
|
103
|
+
break
|
|
104
|
+
|
|
105
|
+
if vfunc_info:
|
|
106
|
+
break
|
|
107
|
+
|
|
108
|
+
# If we did not find a matching method name in the bases, we might
|
|
109
|
+
# be overriding an interface virtual method. Since interfaces do not
|
|
110
|
+
# provide implementations, there will be no method attribute installed
|
|
111
|
+
# on the object. Instead we have to search through
|
|
112
|
+
# InterfaceInfo.get_vfuncs(). Note that the infos returned by
|
|
113
|
+
# get_vfuncs() use the C vfunc name (ie. there is no "do_" prefix).
|
|
114
|
+
if vfunc_info is None:
|
|
115
|
+
vfunc_info = find_vfunc_info_in_interface(cls.__bases__, vfunc_name[len("do_"):])
|
|
116
|
+
|
|
117
|
+
if vfunc_info is not None:
|
|
118
|
+
# Check to see if there are vfuncs with the same name in the bases.
|
|
119
|
+
# We have no way of specifying which one we are supposed to override.
|
|
120
|
+
if not skip_ambiguity_check:
|
|
121
|
+
ambiguous_base = find_vfunc_conflict_in_bases(vfunc_info, cls.__bases__)
|
|
122
|
+
if ambiguous_base is not None:
|
|
123
|
+
base_info = vfunc_info.get_container()
|
|
124
|
+
raise TypeError('Method %s() on class %s.%s is ambiguous '
|
|
125
|
+
'with methods in base classes %s.%s and %s.%s' %
|
|
126
|
+
(vfunc_name,
|
|
127
|
+
cls.__info__.get_namespace(),
|
|
128
|
+
cls.__info__.get_name(),
|
|
129
|
+
base_info.get_namespace(),
|
|
130
|
+
base_info.get_name(),
|
|
131
|
+
ambiguous_base.__info__.get_namespace(),
|
|
132
|
+
ambiguous_base.__info__.get_name()
|
|
133
|
+
))
|
|
134
|
+
hook_up_vfunc_implementation(vfunc_info, cls.__gtype__,
|
|
135
|
+
py_vfunc)
|
|
136
|
+
|
|
137
|
+
def _setup_native_vfuncs(cls):
|
|
138
|
+
# Only InterfaceInfo and ObjectInfo have the get_vfuncs() method.
|
|
139
|
+
# We skip InterfaceInfo because interfaces have no implementations for vfuncs.
|
|
140
|
+
# Also check if __info__ in __dict__, not hasattr('__info__', ...)
|
|
141
|
+
# because we do not want to accidentally retrieve __info__ from a base class.
|
|
142
|
+
class_info = cls.__dict__.get('__info__')
|
|
143
|
+
if class_info is None or not isinstance(class_info, ObjectInfo):
|
|
144
|
+
return
|
|
145
|
+
|
|
146
|
+
# Special case skipping of vfuncs for GObject.Object because they will break
|
|
147
|
+
# the static bindings which will try to use them.
|
|
148
|
+
if cls.__module__ == 'gi.repository.GObject' and cls.__name__ == 'Object':
|
|
149
|
+
return
|
|
150
|
+
|
|
151
|
+
for vfunc_info in class_info.get_vfuncs():
|
|
152
|
+
name = 'do_%s' % vfunc_info.__name__
|
|
153
|
+
setattr(cls, name, vfunc_info)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
def find_vfunc_info_in_interface(bases, vfunc_name):
|
|
157
|
+
for base in bases:
|
|
158
|
+
# All wrapped interfaces inherit from GInterface.
|
|
159
|
+
# This can be seen in IntrospectionModule.__getattr__() in module.py.
|
|
160
|
+
# We do not need to search regular classes here, only wrapped interfaces.
|
|
161
|
+
# We also skip GInterface, because it is not wrapped and has no __info__ attr.
|
|
162
|
+
# Skip bases without __info__ (static _gi.GObject)
|
|
163
|
+
if base is GInterface or\
|
|
164
|
+
not issubclass(base, GInterface) or\
|
|
165
|
+
not hasattr(base, '__info__'):
|
|
166
|
+
continue
|
|
167
|
+
|
|
168
|
+
# Only look at this classes vfuncs if it is an interface.
|
|
169
|
+
if isinstance(base.__info__, InterfaceInfo):
|
|
170
|
+
for vfunc in base.__info__.get_vfuncs():
|
|
171
|
+
if vfunc.get_name() == vfunc_name:
|
|
172
|
+
return vfunc
|
|
173
|
+
|
|
174
|
+
# Recurse into the parent classes
|
|
175
|
+
vfunc = find_vfunc_info_in_interface(base.__bases__, vfunc_name)
|
|
176
|
+
if vfunc is not None:
|
|
177
|
+
return vfunc
|
|
178
|
+
|
|
179
|
+
return None
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def find_vfunc_conflict_in_bases(vfunc, bases):
|
|
183
|
+
for klass in bases:
|
|
184
|
+
if not hasattr(klass, '__info__') or \
|
|
185
|
+
not hasattr(klass.__info__, 'get_vfuncs'):
|
|
186
|
+
continue
|
|
187
|
+
vfuncs = klass.__info__.get_vfuncs()
|
|
188
|
+
vfunc_name = vfunc.get_name()
|
|
189
|
+
for v in vfuncs:
|
|
190
|
+
if v.get_name() == vfunc_name and v != vfunc:
|
|
191
|
+
return klass
|
|
192
|
+
|
|
193
|
+
aklass = find_vfunc_conflict_in_bases(vfunc, klass.__bases__)
|
|
194
|
+
if aklass is not None:
|
|
195
|
+
return aklass
|
|
196
|
+
return None
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class _GObjectMetaBase(type):
|
|
200
|
+
"""Metaclass for automatically registering GObject classes."""
|
|
201
|
+
def __init__(cls, name, bases, dict_):
|
|
202
|
+
type.__init__(cls, name, bases, dict_)
|
|
203
|
+
propertyhelper.install_properties(cls)
|
|
204
|
+
signalhelper.install_signals(cls)
|
|
205
|
+
cls._type_register(cls.__dict__)
|
|
206
|
+
|
|
207
|
+
def _type_register(cls, namespace):
|
|
208
|
+
# don't register the class if already registered
|
|
209
|
+
if '__gtype__' in namespace:
|
|
210
|
+
return
|
|
211
|
+
|
|
212
|
+
# Do not register a new GType for the overrides, as this would sort of
|
|
213
|
+
# defeat the purpose of overrides...
|
|
214
|
+
if cls.__module__.startswith('gi.overrides.'):
|
|
215
|
+
return
|
|
216
|
+
|
|
217
|
+
_gi.type_register(cls, namespace.get('__gtype_name__'))
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
_gi._install_metaclass(_GObjectMetaBase)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class GObjectMeta(_GObjectMetaBase, MetaClassHelper):
|
|
224
|
+
"""Meta class used for GI GObject based types."""
|
|
225
|
+
def __init__(cls, name, bases, dict_):
|
|
226
|
+
super(GObjectMeta, cls).__init__(name, bases, dict_)
|
|
227
|
+
is_gi_defined = False
|
|
228
|
+
if cls.__module__ == 'gi.repository.' + cls.__info__.get_namespace():
|
|
229
|
+
is_gi_defined = True
|
|
230
|
+
|
|
231
|
+
is_python_defined = False
|
|
232
|
+
if not is_gi_defined and cls.__module__ != GObjectMeta.__module__:
|
|
233
|
+
is_python_defined = True
|
|
234
|
+
|
|
235
|
+
if is_python_defined:
|
|
236
|
+
cls._setup_vfuncs()
|
|
237
|
+
elif is_gi_defined:
|
|
238
|
+
if isinstance(cls.__info__, ObjectInfo):
|
|
239
|
+
cls._setup_class_methods()
|
|
240
|
+
cls._setup_methods()
|
|
241
|
+
cls._setup_constants()
|
|
242
|
+
cls._setup_native_vfuncs()
|
|
243
|
+
|
|
244
|
+
if isinstance(cls.__info__, ObjectInfo):
|
|
245
|
+
cls._setup_fields()
|
|
246
|
+
elif isinstance(cls.__info__, InterfaceInfo):
|
|
247
|
+
register_interface_info(cls.__info__.get_g_type())
|
|
248
|
+
|
|
249
|
+
def mro(cls):
|
|
250
|
+
return mro(cls)
|
|
251
|
+
|
|
252
|
+
@property
|
|
253
|
+
def __doc__(cls):
|
|
254
|
+
"""Meta class property which shows up on any class using this meta-class."""
|
|
255
|
+
if cls == GObjectMeta:
|
|
256
|
+
return ''
|
|
257
|
+
|
|
258
|
+
doc = cls.__dict__.get('__doc__', None)
|
|
259
|
+
if doc is not None:
|
|
260
|
+
return doc
|
|
261
|
+
|
|
262
|
+
# For repository classes, dynamically generate a doc string if it wasn't overridden.
|
|
263
|
+
if cls.__module__.startswith(('gi.repository.', 'gi.overrides')):
|
|
264
|
+
return generate_doc_string(cls.__info__)
|
|
265
|
+
|
|
266
|
+
return None
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def mro(C):
|
|
270
|
+
"""Compute the class precedence list (mro) according to C3, with GObject
|
|
271
|
+
interface considerations.
|
|
272
|
+
|
|
273
|
+
We override Python's MRO calculation to account for the fact that
|
|
274
|
+
GObject classes are not affected by the diamond problem:
|
|
275
|
+
http://en.wikipedia.org/wiki/Diamond_problem
|
|
276
|
+
|
|
277
|
+
Based on http://www.python.org/download/releases/2.3/mro/
|
|
278
|
+
"""
|
|
279
|
+
# TODO: If this turns out being too slow, consider using generators
|
|
280
|
+
bases = []
|
|
281
|
+
bases_of_subclasses = [[C]]
|
|
282
|
+
|
|
283
|
+
if C.__bases__:
|
|
284
|
+
for base in C.__bases__:
|
|
285
|
+
# Python causes MRO's to be calculated starting with the lowest
|
|
286
|
+
# base class and working towards the descendant, storing the result
|
|
287
|
+
# in __mro__ at each point. Therefore at this point we know that
|
|
288
|
+
# we already have our base class MRO's available to us, there is
|
|
289
|
+
# no need for us to (re)calculate them.
|
|
290
|
+
bases_of_subclasses += [list(base.__mro__)]
|
|
291
|
+
bases_of_subclasses += [list(C.__bases__)]
|
|
292
|
+
|
|
293
|
+
while bases_of_subclasses:
|
|
294
|
+
for subclass_bases in bases_of_subclasses:
|
|
295
|
+
candidate = subclass_bases[0]
|
|
296
|
+
not_head = [s for s in bases_of_subclasses if candidate in s[1:]]
|
|
297
|
+
if not_head and GInterface not in candidate.__bases__:
|
|
298
|
+
candidate = None # conflict, reject candidate
|
|
299
|
+
else:
|
|
300
|
+
break
|
|
301
|
+
|
|
302
|
+
if candidate is None:
|
|
303
|
+
raise TypeError('Cannot create a consistent method resolution '
|
|
304
|
+
'order (MRO)')
|
|
305
|
+
|
|
306
|
+
bases.append(candidate)
|
|
307
|
+
|
|
308
|
+
for subclass_bases in bases_of_subclasses[:]: # remove candidate
|
|
309
|
+
if subclass_bases and subclass_bases[0] == candidate:
|
|
310
|
+
del subclass_bases[0]
|
|
311
|
+
if not subclass_bases:
|
|
312
|
+
bases_of_subclasses.remove(subclass_bases)
|
|
313
|
+
|
|
314
|
+
return bases
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def nothing(*args, **kwargs):
|
|
318
|
+
pass
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
class StructMeta(type, MetaClassHelper):
|
|
322
|
+
"""Meta class used for GI Struct based types."""
|
|
323
|
+
|
|
324
|
+
def __init__(cls, name, bases, dict_):
|
|
325
|
+
super(StructMeta, cls).__init__(name, bases, dict_)
|
|
326
|
+
|
|
327
|
+
# Avoid touching anything else than the base class.
|
|
328
|
+
g_type = cls.__info__.get_g_type()
|
|
329
|
+
if g_type != TYPE_INVALID and g_type.pytype is not None:
|
|
330
|
+
return
|
|
331
|
+
|
|
332
|
+
cls._setup_fields()
|
|
333
|
+
cls._setup_methods()
|
|
334
|
+
|
|
335
|
+
for method_info in cls.__info__.get_methods():
|
|
336
|
+
if method_info.is_constructor() and \
|
|
337
|
+
method_info.__name__ == 'new' and \
|
|
338
|
+
(not method_info.get_arguments() or
|
|
339
|
+
cls.__info__.get_size() == 0):
|
|
340
|
+
cls.__new__ = staticmethod(method_info)
|
|
341
|
+
# Boxed will raise an exception
|
|
342
|
+
# if arguments are given to __init__
|
|
343
|
+
cls.__init__ = nothing
|
|
344
|
+
break
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
def __doc__(cls):
|
|
348
|
+
if cls == StructMeta:
|
|
349
|
+
return ''
|
|
350
|
+
return generate_doc_string(cls.__info__)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pycairo
|
|
3
|
+
Version: 1.27.0
|
|
4
|
+
Summary: Python interface for cairo
|
|
5
|
+
Maintainer-Email: Christoph Reiter <reiter.christoph@gmail.com>
|
|
6
|
+
License: LGPL-2.1-only OR MPL-1.1
|
|
7
|
+
Project-URL: Homepage, https://pycairo.readthedocs.io
|
|
8
|
+
Project-URL: Source, https://github.com/pygobject/pycairo
|
|
9
|
+
Requires-Python: >=3.9
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
_module_name = __name__.split('.')[0]
|
|
6
|
+
|
|
7
|
+
_gstreamer_root = Path(__file__).parent.as_posix()
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def _get_site_packages_prefix(base):
|
|
11
|
+
for root, dirs, files in os.walk(base):
|
|
12
|
+
if 'gi' in dirs:
|
|
13
|
+
return root
|
|
14
|
+
raise RuntimeError(f"Couldn't find site-packages prefix inside {base}")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
_site_packages_prefix = _get_site_packages_prefix(_gstreamer_root)
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
These paths will be prepended by gstreamer's build_environment
|
|
21
|
+
"""
|
|
22
|
+
environment = {
|
|
23
|
+
'PYTHONPATH': os.pathsep.join(
|
|
24
|
+
[Path(__file__).parent.parent.as_posix(), Path(_gstreamer_root, _site_packages_prefix).as_posix()]
|
|
25
|
+
),
|
|
26
|
+
'PATH': f'{_gstreamer_root}/bin',
|
|
27
|
+
'LD_LIBRARY_PATH': f'{_gstreamer_root}/lib',
|
|
28
|
+
'GI_TYPELIB_PATH': f'{_gstreamer_root}/lib/girepository-1.0',
|
|
29
|
+
'GST_PLUGIN_PATH_1_0': f'{_gstreamer_root}/lib/gstreamer-1.0',
|
|
30
|
+
'GST_PLUGIN_SYSTEM_PATH_1_0': f'{_gstreamer_root}/lib/gstreamer-1.0',
|
|
31
|
+
'GST_PYTHONPATH_1_0': Path(_gstreamer_root, _site_packages_prefix).as_posix(),
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gstreamer_python
|
|
3
|
+
Version: 1.27.90
|
|
4
|
+
Summary: GStreamer 1.0
|
|
5
|
+
Home-page: http://gstreamer.freedesktop.org
|
|
6
|
+
Author: GStreamer Project
|
|
7
|
+
License: MIT AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
12
|
+
Classifier: Topic :: Multimedia :: Sound/Audio
|
|
13
|
+
Classifier: Topic :: Multimedia :: Video
|
|
14
|
+
Classifier: Topic :: Software Development
|
|
15
|
+
Classifier: Topic :: Utilities
|
|
16
|
+
Classifier: Environment :: MacOS X
|
|
17
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
|
+
Classifier: Environment :: Win32 (MS Windows)
|
|
19
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
20
|
+
Requires-Python: >= 3.9
|
|
21
|
+
Dynamic: author
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: license
|
|
25
|
+
Dynamic: requires-python
|
|
26
|
+
Dynamic: summary
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
gstreamer_python/__init__.py,sha256=QByNQrXT6-FqjDWoGn7bswu-Rh6EMoo8i2NA3SACn6U,1020
|
|
2
|
+
gstreamer_python/Lib/girepository-1.0/GdkPixbuf-2.0.typelib,sha256=jIKPpSDjiL81XBEfsRC6cFj5IQcLPbAJV4vuqi-nkDw,20484
|
|
3
|
+
gstreamer_python/Lib/girepository-1.0/HarfBuzz-0.0.typelib,sha256=Orjnt5jWjZyHYpteWoAkYRCNsaWaH2V16Gkz33CSnns,148888
|
|
4
|
+
gstreamer_python/Lib/girepository-1.0/Json-1.0.typelib,sha256=9sJ9zakgcA-9OnD_QOlDnzZ95W_SndpHaBqfdiQPCvE,26592
|
|
5
|
+
gstreamer_python/Lib/girepository-1.0/Pango-1.0.typelib,sha256=L8ihZYvznjp1zgRCmuu8r4f-LUlS65_AMyZw5FQdsIw,77432
|
|
6
|
+
gstreamer_python/Lib/girepository-1.0/PangoCairo-1.0.typelib,sha256=uD-ivE402RJ6TKPzm521y2Pt8wOYtwohntpWHz30ekk,4412
|
|
7
|
+
gstreamer_python/Lib/girepository-1.0/Soup-3.0.typelib,sha256=TCYJhRwSwoFe25d0wTjMNlavmaiCs5rsaChm_5RmKLA,1020
|
|
8
|
+
gstreamer_python/Lib/gstreamer-1.0/gstpython.dll,sha256=ta9rA3J07wqTZFpwl8P1pyxX3-cnkbLpNEOkNqqPpIA,21504
|
|
9
|
+
gstreamer_python/Lib/site-packages/cairo/__init__.py,sha256=XIH_dv8y8hXxV9pPD7RO70ZtfcxP95JMzc_Bnxv78TQ,660
|
|
10
|
+
gstreamer_python/Lib/site-packages/cairo/__init__.pyi,sha256=KfH95IcSiWbtqQpcgI9fxVEPVDCs9Jz2B1ecFafXNVg,217323
|
|
11
|
+
gstreamer_python/Lib/site-packages/cairo/_cairo.cp39-win32.pyd,sha256=u38zS28F7qxMOZhoV0G2c9N5ZeS74ydaYicpifWncN4,143872
|
|
12
|
+
gstreamer_python/Lib/site-packages/cairo/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
gstreamer_python/Lib/site-packages/cairo/include/py3cairo.h,sha256=I_EkJoP2ZKXhYnHupIiBz0RdR4Cy6TqE8Y0UXcdVceE,8778
|
|
14
|
+
gstreamer_python/Lib/site-packages/gi/__init__.py,sha256=nn2kka6fIgDGv5q0dQSTv1odnJ8bBKgF7y7iIrz58GY,6659
|
|
15
|
+
gstreamer_python/Lib/site-packages/gi/_constants.py,sha256=OF8oWv2Hj4HjYy61rIKw3njajTzTHe7xbUDTiFJ_X9U,1969
|
|
16
|
+
gstreamer_python/Lib/site-packages/gi/_error.py,sha256=zzWJcGnAz1NQnLEeoenCme-VipaeRTnvEb4oJXhU2Kc,2082
|
|
17
|
+
gstreamer_python/Lib/site-packages/gi/_gi.cp39-win32.pyd,sha256=6TY6123UGDUBSromKMwoNdTVXsI8FWVfqO2Ats1Mk7o,248320
|
|
18
|
+
gstreamer_python/Lib/site-packages/gi/_gi_cairo.cp39-win32.pyd,sha256=OjlPGe2_eFy9RMv-lJw6pzVDAtM78_iA_Rm1REoeg3E,18944
|
|
19
|
+
gstreamer_python/Lib/site-packages/gi/_gtktemplate.py,sha256=lJEIRm8tBX_iCxtUIXzHEmKbXiOmfEbf2fHDfZZshLI,10193
|
|
20
|
+
gstreamer_python/Lib/site-packages/gi/_option.py,sha256=O3iO75wjQRgMNhCFOgdtDEY5jZEV6Eun0OX1RqVR-Ak,13717
|
|
21
|
+
gstreamer_python/Lib/site-packages/gi/_ossighelper.py,sha256=2_7Xgu5hY14CfJoWhCpdUogAEp5WuIY4Ru3y3ojvNOg,8538
|
|
22
|
+
gstreamer_python/Lib/site-packages/gi/_propertyhelper.py,sha256=LuJQEuTlBgL2ez_xnGnp2hJ-8iD__NUioqZNyLiE-zo,14163
|
|
23
|
+
gstreamer_python/Lib/site-packages/gi/_signalhelper.py,sha256=psYxDA7FicZ5GvnEcn8ugKZ3FHrzgXG_P03GKVLiIGM,9303
|
|
24
|
+
gstreamer_python/Lib/site-packages/gi/docstring.py,sha256=RqvNeYMRYMVA_qd9UrTgX2eyjtTVgVYLq0PEuplz91I,6726
|
|
25
|
+
gstreamer_python/Lib/site-packages/gi/events.py,sha256=cHugTTOi2VMyNJnLHMi8DEH_NWT4etC3hLEMy0gu4YQ,25034
|
|
26
|
+
gstreamer_python/Lib/site-packages/gi/importer.py,sha256=e5r_HBnFJ6jUB3hBoZKZh1LbmGwLO4VrA9qYvgmFNc0,5435
|
|
27
|
+
gstreamer_python/Lib/site-packages/gi/module.py,sha256=bTUZTsvlHOoVr_93TXEIAsfmG8Dvk9ZYfz5JdNHtrX8,9979
|
|
28
|
+
gstreamer_python/Lib/site-packages/gi/pygtkcompat.py,sha256=LW-xg5I8_1rxNnKkeadxCe20hk8AmMd5yRzqVgvpj4Q,727
|
|
29
|
+
gstreamer_python/Lib/site-packages/gi/types.py,sha256=AY1nr_iFqx8Ql4qvRzlzBRWjmy4uKE7FiJD2i770CAE,13543
|
|
30
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GES.py,sha256=i4iGFnM0c0Jgu6eQNjqg6a3EyRMHQv8_J0RGSa9Itnk,3115
|
|
31
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GIMarshallingTests.py,sha256=iok8VELkOYzAEp54RnroudH4DbOa30Y_dt5w06Lf4z0,2242
|
|
32
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GLib.py,sha256=UyLEP0MRnCUh5tqS_nLyX9WCh3hVsiA3wTiegUC6fzQ,29989
|
|
33
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GObject.py,sha256=WtVqSIVikfH7wYFd6fWAJ0soSkyt89SEkksDXFk_J7Y,24610
|
|
34
|
+
gstreamer_python/Lib/site-packages/gi/overrides/Gdk.py,sha256=OquvH9vpWttJHwNu6fSh4sb7JzGMgQ35OdIixrqjxig,16189
|
|
35
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GdkPixbuf.py,sha256=neFewqbI0w-VFM6uBX1A5O_Bh_aVDE4bdr7jRqoLZKQ,1724
|
|
36
|
+
gstreamer_python/Lib/site-packages/gi/overrides/Gio.py,sha256=guAR6K37PM873bmUbr9nwYn0aSp25cLYns_puFuEt5s,21939
|
|
37
|
+
gstreamer_python/Lib/site-packages/gi/overrides/Gst.py,sha256=YtPIZ6G_MTwBdJd4OMbPL1ZqFU1lkKZX3kFrT-5NNHI,35194
|
|
38
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GstAnalytics.py,sha256=3L2VpMDprbBjNaet6pIrnnzD5mkrM3JQKtRhrXVMd6k,3469
|
|
39
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GstApp.py,sha256=XGRHvTlwTEgt8Oce5j7Ey23njCkzz_fp3CJYAc8vCPs,1641
|
|
40
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GstAudio.py,sha256=buNtsFudqpEBUonStFNixaZSJPFIuN5SIXRJuxmL9F8,488
|
|
41
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GstPbutils.py,sha256=eDqXRDBWaPTX5kejnNhdPTbzq_iF920wh0Yz-ubssJ4,3214
|
|
42
|
+
gstreamer_python/Lib/site-packages/gi/overrides/GstVideo.py,sha256=ZSv7U9_pZmD4FyFjN5mF-h3yFvRr4hjtIGrIy5eJt5M,487
|
|
43
|
+
gstreamer_python/Lib/site-packages/gi/overrides/Gtk.py,sha256=kOf8P-4kJ2Q9rQi8GD8HB7n5ROqS1frmqxF3lfh2hZ4,63104
|
|
44
|
+
gstreamer_python/Lib/site-packages/gi/overrides/Pango.py,sha256=EfvBpdb4_O9QE0KY6_Ti_pBMxQMkMABoVP10J0EZy8s,1774
|
|
45
|
+
gstreamer_python/Lib/site-packages/gi/overrides/__init__.py,sha256=WCw4USRO92nVDs1lmeNxOQ__MrQLA1VCLTyWyc15z5o,12940
|
|
46
|
+
gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst.cp39-win32.pyd,sha256=VdyOruG1XEo5cRicJh6lKu1RqqXLJ6ARP6HEtLOm4x0,35328
|
|
47
|
+
gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst_analytics.cp39-win32.pyd,sha256=jjrrljtvlfWaK9yMOWvLIg2aylwRZ823qf3kSHuvZhA,16384
|
|
48
|
+
gstreamer_python/Lib/site-packages/gi/overrides/keysyms.py,sha256=KwGPGLnkURFMAZsEFVzr0IFDmysrs8gTbVKUO1aV2c4,1705
|
|
49
|
+
gstreamer_python/Lib/site-packages/gi/repository/__init__.py,sha256=E7QO3N09lZ1uPgXao0j3-jAY3NDrcUW_L2lnq_cmhQI,1002
|
|
50
|
+
gstreamer_python-1.27.90.dist-info/METADATA,sha256=ymZI3vnv0I5K-rrXLBsIG8-pgMe1VwKQgWFNTE-LDzY,911
|
|
51
|
+
gstreamer_python-1.27.90.dist-info/WHEEL,sha256=Q3uEVTFw-CqGed7ywmQZcdvBC5FiRV941NvAhTjjkOQ,95
|
|
52
|
+
gstreamer_python-1.27.90.dist-info/top_level.txt,sha256=Vcow4AZSj0E8qWwL4YdpFDqKNJH-dGoFH7aaMR3VC8Q,17
|
|
53
|
+
gstreamer_python/Lib/site-packages/PyGObject-3.50.2.dist-info/METADATA,sha256=Sk4dR7QG9tJyrYtCcxcIZfarn1DPMZpF91mgDnlAGQk,832
|
|
54
|
+
gstreamer_python/Lib/site-packages/pycairo-1.27.0.dist-info/METADATA,sha256=pXlSpX7JQS9l0CkbIm1T30DNiplRuvWTgDGOvD2BBjI,321
|
|
55
|
+
gstreamer_python-1.27.90.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gstreamer_python
|