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