Overhaul formatting.
[mLib-python] / mLib.pyx
1 ### -*-pyrex-*-
2 ###
3 ### Main driver for mLib module
4 ###
5 ### (c) 2005 Straylight/Edgeware
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of the Python interface to mLib.
11 ###
12 ### mLib/Python is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
16 ###
17 ### mLib/Python is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
21 ###
22 ### You should have received a copy of the GNU General Public License
23 ### along with mLib/Python; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 ###----- External stuff -----------------------------------------------------
27
28 include 'defs.pxi'
29
30 ###----- Various facilities -------------------------------------------------
31
32 ## Internal utilities.
33 include 'utils.pyx'
34
35 ## Hashing.
36 include 'crc32.pyx'
37 include 'unihash.pyx'
38
39 ## Data structures.
40 include 'mapping.pyx'
41 include 'sym.pyx'
42 include 'atom.pyx'
43 include 'assoc.pyx'
44
45 ## String utilities.
46 include 'str.pyx'
47
48 ## Encodings.
49 include 'base64.pyx'
50 include 'base32.pyx'
51 include 'hex.pyx'
52 include 'url.pyx'
53
54 ## Error reporting.
55 include 'report.pyx'
56
57 ## File utilities.
58 include 'fwatch.pyx'
59 include 'fdutils.pyx'
60 include 'mdup.pyx'
61
62 ## Other useful stuff.
63 include 'stuff.pyx'
64
65 ## Buffering.
66 include 'lbuf.pyx'
67 include 'pkbuf.pyx'
68
69 ## Select stuff.
70 include 'sel-base.pyx'
71 include 'sel-file.pyx'
72 include 'sel-timer.pyx'
73 include 'conn.pyx'
74 include 'bres.pyx'
75 include 'sig.pyx'
76 include 'selbuf.pyx'
77 include 'selpk.pyx'
78 include 'ident.pyx'
79
80 ###----- Set-up stuff -------------------------------------------------------
81
82 cdef object _tyobj(PyTypeObject *ty):
83 cdef PyObject *obj
84 obj = <PyObject *>ty
85 Py_INCREF(obj)
86 return <object>obj
87
88 da_pysetup()
89 Array = _tyobj(&da_pytype)
90 ArrayIter = _tyobj(&daiter_pytype)
91
92 atom_pysetup()
93 Atom = _tyobj(&atom_pytype)
94
95 ###----- That's all, folks --------------------------------------------------