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