@@@ lbuf needs test
[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 ###--------------------------------------------------------------------------
27 ### External stuff.
28
29 include 'defs.pxi'
30
31 ###--------------------------------------------------------------------------
32 ### Testing stuff.
33
34 def refcount(object obj):
35 return Py_REFCNT(<PyObject *>obj)
36
37 ###--------------------------------------------------------------------------
38 ### Various facilities.
39
40 ## Internal utilities.
41 include 'utils.pyx'
42
43 ## Hashing.
44 include 'crc32.pyx'
45 include 'unihash.pyx'
46
47 ## Data structures.
48 include 'mapping.pyx'
49 include 'sym.pyx'
50 include 'atom.pyx'
51 include 'assoc.pyx'
52
53 ## String utilities.
54 include 'str.pyx'
55
56 ## Encodings.
57 include 'codec.pyx'
58 include 'base64.pyx'
59 include 'base32.pyx'
60 include 'hex.pyx'
61 include 'url.pyx'
62
63 ## Error reporting.
64 include 'report.pyx'
65
66 ## File utilities.
67 include 'fwatch.pyx'
68 include 'fdutils.pyx'
69 include 'mdup.pyx'
70
71 ## Other useful stuff.
72 include 'stuff.pyx'
73
74 ## Buffering.
75 include 'lbuf.pyx'
76 #include 'pkbuf.pyx'
77
78 ## Select stuff.
79 #include 'sel-base.pyx'
80 #include 'sel-file.pyx'
81 #include 'sel-timer.pyx'
82 #include 'conn.pyx'
83 #include 'bres.pyx'
84 #include 'sig.pyx'
85 #include 'selbuf.pyx'
86 #include 'selpk.pyx'
87 #include 'ident.pyx'
88
89 ###--------------------------------------------------------------------------
90 ### Set-up stuff.
91
92 cdef object _tyobj(PyTypeObject *ty):
93 cdef PyObject *obj
94 obj = <PyObject *>ty
95 Py_INCREF(obj)
96 return <object>obj
97
98 #da_pysetup()
99 #Array = _tyobj(&da_pytype)
100 #ArrayIter = _tyobj(&daiter_pytype)
101
102 atom_pysetup()
103 Atom = _tyobj(&atom_pytype)
104
105 ###----- That's all, folks --------------------------------------------------