Add Babeltrace 2 Python bindings
[babeltrace.git] / bindings / python / bt2 / __init__.py.in
CommitLineData
81447b5b
PP
1# The MIT License (MIT)
2#
3# Copyright (c) 2016 Philippe Proulx <pproulx@efficios.com>
4#
5# Permission is hereby granted, free of charge, to any person obtaining a copy
6# of this software and associated documentation files (the "Software"), to deal
7# in the Software without restriction, including without limitation the rights
8# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9# copies of the Software, and to permit persons to whom the Software is
10# furnished to do so, subject to the following conditions:
11#
12# The above copyright notice and this permission notice shall be included in
13# all copies or substantial portions of the Software.
14#
15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21# THE SOFTWARE.
22
23__version__ = '@PACKAGE_VERSION@'
24
25
26from bt2.clock_class import *
27from bt2.component import *
28from bt2.ctf_writer import *
29from bt2.event_class import *
30from bt2.field_types import *
31from bt2.fields import *
32from bt2.notification import *
33from bt2.notification_iterator import *
34from bt2.plugin import *
35from bt2.stream_class import *
36from bt2.trace import *
37from bt2.values import *
38
39
40class Error(Exception):
41 pass
42
43
44class CreationError(Error):
45 pass
46
47
48class FrozenError(Error):
49 pass
50
51
52class UnsupportedFeature(Exception):
53 pass
54
55
56class TryAgain(Exception):
57 pass
58
59
60class Stop(StopIteration):
61 pass
62
63
64class IncompleteUserClassError(Error):
65 pass
66
67
68
69import bt2.native_bt as _native_bt
70import atexit
71
72atexit.register(_native_bt.py3_cc_exit_handler)
73_native_bt.py3_cc_init_from_bt2()
This page took 0.028417 seconds and 4 git commands to generate.