lxml 5.3.0__cp313-cp313-manylinux_2_28_ppc64le.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. lxml/ElementInclude.py +244 -0
  2. lxml/__init__.py +22 -0
  3. lxml/_elementpath.cpython-313-powerpc64le-linux-gnu.so +0 -0
  4. lxml/_elementpath.py +341 -0
  5. lxml/apihelpers.pxi +1793 -0
  6. lxml/builder.cpython-313-powerpc64le-linux-gnu.so +0 -0
  7. lxml/builder.py +232 -0
  8. lxml/classlookup.pxi +580 -0
  9. lxml/cleanup.pxi +215 -0
  10. lxml/cssselect.py +101 -0
  11. lxml/debug.pxi +90 -0
  12. lxml/docloader.pxi +178 -0
  13. lxml/doctestcompare.py +488 -0
  14. lxml/dtd.pxi +478 -0
  15. lxml/etree.cpython-313-powerpc64le-linux-gnu.so +0 -0
  16. lxml/etree.h +248 -0
  17. lxml/etree.pyx +3731 -0
  18. lxml/etree_api.h +195 -0
  19. lxml/extensions.pxi +833 -0
  20. lxml/html/ElementSoup.py +10 -0
  21. lxml/html/__init__.py +1923 -0
  22. lxml/html/_diffcommand.py +86 -0
  23. lxml/html/_html5builder.py +100 -0
  24. lxml/html/_setmixin.py +56 -0
  25. lxml/html/builder.py +133 -0
  26. lxml/html/clean.py +21 -0
  27. lxml/html/defs.py +135 -0
  28. lxml/html/diff.cpython-313-powerpc64le-linux-gnu.so +0 -0
  29. lxml/html/diff.py +878 -0
  30. lxml/html/formfill.py +299 -0
  31. lxml/html/html5parser.py +260 -0
  32. lxml/html/soupparser.py +314 -0
  33. lxml/html/usedoctest.py +13 -0
  34. lxml/includes/__init__.pxd +0 -0
  35. lxml/includes/__init__.py +0 -0
  36. lxml/includes/c14n.pxd +25 -0
  37. lxml/includes/config.pxd +3 -0
  38. lxml/includes/dtdvalid.pxd +18 -0
  39. lxml/includes/etree_defs.h +379 -0
  40. lxml/includes/etreepublic.pxd +237 -0
  41. lxml/includes/extlibs/__init__.py +0 -0
  42. lxml/includes/extlibs/libcharset.h +45 -0
  43. lxml/includes/extlibs/localcharset.h +137 -0
  44. lxml/includes/extlibs/zconf.h +543 -0
  45. lxml/includes/extlibs/zlib.h +1938 -0
  46. lxml/includes/htmlparser.pxd +56 -0
  47. lxml/includes/libexslt/__init__.py +0 -0
  48. lxml/includes/libexslt/exslt.h +108 -0
  49. lxml/includes/libexslt/exsltconfig.h +70 -0
  50. lxml/includes/libexslt/exsltexports.h +63 -0
  51. lxml/includes/libxml/HTMLparser.h +343 -0
  52. lxml/includes/libxml/HTMLtree.h +147 -0
  53. lxml/includes/libxml/SAX.h +202 -0
  54. lxml/includes/libxml/SAX2.h +171 -0
  55. lxml/includes/libxml/__init__.py +0 -0
  56. lxml/includes/libxml/c14n.h +126 -0
  57. lxml/includes/libxml/catalog.h +182 -0
  58. lxml/includes/libxml/chvalid.h +230 -0
  59. lxml/includes/libxml/debugXML.h +217 -0
  60. lxml/includes/libxml/dict.h +82 -0
  61. lxml/includes/libxml/encoding.h +235 -0
  62. lxml/includes/libxml/entities.h +155 -0
  63. lxml/includes/libxml/globals.h +41 -0
  64. lxml/includes/libxml/hash.h +232 -0
  65. lxml/includes/libxml/list.h +137 -0
  66. lxml/includes/libxml/nanoftp.h +186 -0
  67. lxml/includes/libxml/nanohttp.h +81 -0
  68. lxml/includes/libxml/parser.h +1384 -0
  69. lxml/includes/libxml/parserInternals.h +663 -0
  70. lxml/includes/libxml/relaxng.h +219 -0
  71. lxml/includes/libxml/schemasInternals.h +959 -0
  72. lxml/includes/libxml/schematron.h +143 -0
  73. lxml/includes/libxml/threads.h +87 -0
  74. lxml/includes/libxml/tree.h +1362 -0
  75. lxml/includes/libxml/uri.h +95 -0
  76. lxml/includes/libxml/valid.h +450 -0
  77. lxml/includes/libxml/xinclude.h +129 -0
  78. lxml/includes/libxml/xlink.h +189 -0
  79. lxml/includes/libxml/xmlIO.h +421 -0
  80. lxml/includes/libxml/xmlautomata.h +146 -0
  81. lxml/includes/libxml/xmlerror.h +948 -0
  82. lxml/includes/libxml/xmlexports.h +50 -0
  83. lxml/includes/libxml/xmlmemory.h +225 -0
  84. lxml/includes/libxml/xmlmodule.h +57 -0
  85. lxml/includes/libxml/xmlreader.h +434 -0
  86. lxml/includes/libxml/xmlregexp.h +215 -0
  87. lxml/includes/libxml/xmlsave.h +97 -0
  88. lxml/includes/libxml/xmlschemas.h +249 -0
  89. lxml/includes/libxml/xmlschemastypes.h +152 -0
  90. lxml/includes/libxml/xmlstring.h +140 -0
  91. lxml/includes/libxml/xmlunicode.h +202 -0
  92. lxml/includes/libxml/xmlversion.h +511 -0
  93. lxml/includes/libxml/xmlwriter.h +488 -0
  94. lxml/includes/libxml/xpath.h +575 -0
  95. lxml/includes/libxml/xpathInternals.h +633 -0
  96. lxml/includes/libxml/xpointer.h +138 -0
  97. lxml/includes/libxslt/__init__.py +0 -0
  98. lxml/includes/libxslt/attributes.h +39 -0
  99. lxml/includes/libxslt/documents.h +93 -0
  100. lxml/includes/libxslt/extensions.h +262 -0
  101. lxml/includes/libxslt/extra.h +72 -0
  102. lxml/includes/libxslt/functions.h +78 -0
  103. lxml/includes/libxslt/imports.h +75 -0
  104. lxml/includes/libxslt/keys.h +53 -0
  105. lxml/includes/libxslt/namespaces.h +68 -0
  106. lxml/includes/libxslt/numbersInternals.h +73 -0
  107. lxml/includes/libxslt/pattern.h +84 -0
  108. lxml/includes/libxslt/preproc.h +43 -0
  109. lxml/includes/libxslt/security.h +104 -0
  110. lxml/includes/libxslt/templates.h +77 -0
  111. lxml/includes/libxslt/transform.h +207 -0
  112. lxml/includes/libxslt/variables.h +118 -0
  113. lxml/includes/libxslt/xslt.h +110 -0
  114. lxml/includes/libxslt/xsltInternals.h +1995 -0
  115. lxml/includes/libxslt/xsltconfig.h +146 -0
  116. lxml/includes/libxslt/xsltexports.h +64 -0
  117. lxml/includes/libxslt/xsltlocale.h +44 -0
  118. lxml/includes/libxslt/xsltutils.h +343 -0
  119. lxml/includes/lxml-version.h +3 -0
  120. lxml/includes/relaxng.pxd +64 -0
  121. lxml/includes/schematron.pxd +34 -0
  122. lxml/includes/tree.pxd +494 -0
  123. lxml/includes/uri.pxd +5 -0
  124. lxml/includes/xinclude.pxd +22 -0
  125. lxml/includes/xmlerror.pxd +852 -0
  126. lxml/includes/xmlparser.pxd +265 -0
  127. lxml/includes/xmlschema.pxd +35 -0
  128. lxml/includes/xpath.pxd +136 -0
  129. lxml/includes/xslt.pxd +190 -0
  130. lxml/isoschematron/__init__.py +348 -0
  131. lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
  132. lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
  133. lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
  134. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
  135. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
  136. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
  137. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
  138. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
  139. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
  140. lxml/iterparse.pxi +438 -0
  141. lxml/lxml.etree.h +248 -0
  142. lxml/lxml.etree_api.h +195 -0
  143. lxml/nsclasses.pxi +281 -0
  144. lxml/objectify.cpython-313-powerpc64le-linux-gnu.so +0 -0
  145. lxml/objectify.pyx +2145 -0
  146. lxml/objectpath.pxi +332 -0
  147. lxml/parser.pxi +2000 -0
  148. lxml/parsertarget.pxi +180 -0
  149. lxml/proxy.pxi +619 -0
  150. lxml/public-api.pxi +178 -0
  151. lxml/pyclasslookup.py +3 -0
  152. lxml/readonlytree.pxi +565 -0
  153. lxml/relaxng.pxi +165 -0
  154. lxml/sax.cpython-313-powerpc64le-linux-gnu.so +0 -0
  155. lxml/sax.py +275 -0
  156. lxml/saxparser.pxi +875 -0
  157. lxml/schematron.pxi +168 -0
  158. lxml/serializer.pxi +1781 -0
  159. lxml/usedoctest.py +13 -0
  160. lxml/xinclude.pxi +67 -0
  161. lxml/xmlerror.pxi +1654 -0
  162. lxml/xmlid.pxi +179 -0
  163. lxml/xmlschema.pxi +215 -0
  164. lxml/xpath.pxi +487 -0
  165. lxml/xslt.pxi +950 -0
  166. lxml/xsltext.pxi +242 -0
  167. lxml-5.3.0.dist-info/LICENSE.txt +29 -0
  168. lxml-5.3.0.dist-info/LICENSES.txt +29 -0
  169. lxml-5.3.0.dist-info/METADATA +103 -0
  170. lxml-5.3.0.dist-info/RECORD +172 -0
  171. lxml-5.3.0.dist-info/WHEEL +5 -0
  172. lxml-5.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Summary: macros for marking symbols as exportable/importable.
3
+ * Description: macros for marking symbols as exportable/importable.
4
+ *
5
+ * Copy: See Copyright for the status of this software.
6
+ */
7
+
8
+ #ifndef __XML_EXPORTS_H__
9
+ #define __XML_EXPORTS_H__
10
+
11
+ /** DOC_DISABLE */
12
+ #if defined(_WIN32) || defined(__CYGWIN__)
13
+ #ifdef LIBXML_STATIC
14
+ #define XMLPUBLIC
15
+ #elif defined(IN_LIBXML)
16
+ #define XMLPUBLIC __declspec(dllexport)
17
+ #else
18
+ #define XMLPUBLIC __declspec(dllimport)
19
+ #endif
20
+ #else /* not Windows */
21
+ #define XMLPUBLIC
22
+ #endif /* platform switch */
23
+ /** DOC_ENABLE */
24
+
25
+ /*
26
+ * XMLPUBFUN:
27
+ *
28
+ * Macro which declares an exportable function
29
+ */
30
+ #define XMLPUBFUN XMLPUBLIC
31
+
32
+ /**
33
+ * XMLPUBVAR:
34
+ *
35
+ * Macro which declares an exportable variable
36
+ */
37
+ #define XMLPUBVAR XMLPUBLIC extern
38
+
39
+ /** DOC_DISABLE */
40
+ /* Compatibility */
41
+ #define XMLCALL
42
+ #define XMLCDECL
43
+ #if !defined(LIBXML_DLL_IMPORT)
44
+ #define LIBXML_DLL_IMPORT XMLPUBVAR
45
+ #endif
46
+ /** DOC_ENABLE */
47
+
48
+ #endif /* __XML_EXPORTS_H__ */
49
+
50
+
@@ -0,0 +1,225 @@
1
+ /*
2
+ * Summary: interface for the memory allocator
3
+ * Description: provides interfaces for the memory allocator,
4
+ * including debugging capabilities.
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Daniel Veillard
9
+ */
10
+
11
+
12
+ #ifndef __DEBUG_MEMORY_ALLOC__
13
+ #define __DEBUG_MEMORY_ALLOC__
14
+
15
+ #include <stdio.h>
16
+ #include <libxml/xmlversion.h>
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
22
+ /*
23
+ * The XML memory wrapper support 4 basic overloadable functions.
24
+ */
25
+ /**
26
+ * xmlFreeFunc:
27
+ * @mem: an already allocated block of memory
28
+ *
29
+ * Signature for a free() implementation.
30
+ */
31
+ typedef void (*xmlFreeFunc)(void *mem);
32
+ /**
33
+ * xmlMallocFunc:
34
+ * @size: the size requested in bytes
35
+ *
36
+ * Signature for a malloc() implementation.
37
+ *
38
+ * Returns a pointer to the newly allocated block or NULL in case of error.
39
+ */
40
+ typedef void *(LIBXML_ATTR_ALLOC_SIZE(1) *xmlMallocFunc)(size_t size);
41
+
42
+ /**
43
+ * xmlReallocFunc:
44
+ * @mem: an already allocated block of memory
45
+ * @size: the new size requested in bytes
46
+ *
47
+ * Signature for a realloc() implementation.
48
+ *
49
+ * Returns a pointer to the newly reallocated block or NULL in case of error.
50
+ */
51
+ typedef void *(*xmlReallocFunc)(void *mem, size_t size);
52
+
53
+ /**
54
+ * xmlStrdupFunc:
55
+ * @str: a zero terminated string
56
+ *
57
+ * Signature for an strdup() implementation.
58
+ *
59
+ * Returns the copy of the string or NULL in case of error.
60
+ */
61
+ typedef char *(*xmlStrdupFunc)(const char *str);
62
+
63
+ /*
64
+ * In general the memory allocation entry points are not kept
65
+ * thread specific but this can be overridden by LIBXML_THREAD_ALLOC_ENABLED
66
+ * - xmlMalloc
67
+ * - xmlMallocAtomic
68
+ * - xmlRealloc
69
+ * - xmlMemStrdup
70
+ * - xmlFree
71
+ */
72
+ /** DOC_DISABLE */
73
+ #ifdef LIBXML_THREAD_ALLOC_ENABLED
74
+ #define XML_GLOBALS_ALLOC \
75
+ XML_OP(xmlMalloc, xmlMallocFunc, XML_NO_ATTR) \
76
+ XML_OP(xmlMallocAtomic, xmlMallocFunc, XML_NO_ATTR) \
77
+ XML_OP(xmlRealloc, xmlReallocFunc, XML_NO_ATTR) \
78
+ XML_OP(xmlFree, xmlFreeFunc, XML_NO_ATTR) \
79
+ XML_OP(xmlMemStrdup, xmlStrdupFunc, XML_NO_ATTR)
80
+ #define XML_OP XML_DECLARE_GLOBAL
81
+ XML_GLOBALS_ALLOC
82
+ #undef XML_OP
83
+ #if defined(LIBXML_THREAD_ENABLED) && !defined(XML_GLOBALS_NO_REDEFINITION)
84
+ #define xmlMalloc XML_GLOBAL_MACRO(xmlMalloc)
85
+ #define xmlMallocAtomic XML_GLOBAL_MACRO(xmlMallocAtomic)
86
+ #define xmlRealloc XML_GLOBAL_MACRO(xmlRealloc)
87
+ #define xmlFree XML_GLOBAL_MACRO(xmlFree)
88
+ #define xmlMemStrdup XML_GLOBAL_MACRO(xmlMemStrdup)
89
+ #endif
90
+ #else
91
+ #define XML_GLOBALS_ALLOC
92
+ /** DOC_ENABLE */
93
+ XMLPUBVAR xmlMallocFunc xmlMalloc;
94
+ XMLPUBVAR xmlMallocFunc xmlMallocAtomic;
95
+ XMLPUBVAR xmlReallocFunc xmlRealloc;
96
+ XMLPUBVAR xmlFreeFunc xmlFree;
97
+ XMLPUBVAR xmlStrdupFunc xmlMemStrdup;
98
+ #endif
99
+
100
+ /*
101
+ * The way to overload the existing functions.
102
+ * The xmlGc function have an extra entry for atomic block
103
+ * allocations useful for garbage collected memory allocators
104
+ */
105
+ XMLPUBFUN int
106
+ xmlMemSetup (xmlFreeFunc freeFunc,
107
+ xmlMallocFunc mallocFunc,
108
+ xmlReallocFunc reallocFunc,
109
+ xmlStrdupFunc strdupFunc);
110
+ XMLPUBFUN int
111
+ xmlMemGet (xmlFreeFunc *freeFunc,
112
+ xmlMallocFunc *mallocFunc,
113
+ xmlReallocFunc *reallocFunc,
114
+ xmlStrdupFunc *strdupFunc);
115
+ XMLPUBFUN int
116
+ xmlGcMemSetup (xmlFreeFunc freeFunc,
117
+ xmlMallocFunc mallocFunc,
118
+ xmlMallocFunc mallocAtomicFunc,
119
+ xmlReallocFunc reallocFunc,
120
+ xmlStrdupFunc strdupFunc);
121
+ XMLPUBFUN int
122
+ xmlGcMemGet (xmlFreeFunc *freeFunc,
123
+ xmlMallocFunc *mallocFunc,
124
+ xmlMallocFunc *mallocAtomicFunc,
125
+ xmlReallocFunc *reallocFunc,
126
+ xmlStrdupFunc *strdupFunc);
127
+
128
+ /*
129
+ * Initialization of the memory layer.
130
+ */
131
+ XML_DEPRECATED
132
+ XMLPUBFUN int
133
+ xmlInitMemory (void);
134
+
135
+ /*
136
+ * Cleanup of the memory layer.
137
+ */
138
+ XML_DEPRECATED
139
+ XMLPUBFUN void
140
+ xmlCleanupMemory (void);
141
+ /*
142
+ * These are specific to the XML debug memory wrapper.
143
+ */
144
+ XMLPUBFUN size_t
145
+ xmlMemSize (void *ptr);
146
+ XMLPUBFUN int
147
+ xmlMemUsed (void);
148
+ XMLPUBFUN int
149
+ xmlMemBlocks (void);
150
+ XMLPUBFUN void
151
+ xmlMemDisplay (FILE *fp);
152
+ XMLPUBFUN void
153
+ xmlMemDisplayLast(FILE *fp, long nbBytes);
154
+ XMLPUBFUN void
155
+ xmlMemShow (FILE *fp, int nr);
156
+ XMLPUBFUN void
157
+ xmlMemoryDump (void);
158
+ XMLPUBFUN void *
159
+ xmlMemMalloc (size_t size) LIBXML_ATTR_ALLOC_SIZE(1);
160
+ XMLPUBFUN void *
161
+ xmlMemRealloc (void *ptr,size_t size);
162
+ XMLPUBFUN void
163
+ xmlMemFree (void *ptr);
164
+ XMLPUBFUN char *
165
+ xmlMemoryStrdup (const char *str);
166
+ XMLPUBFUN void *
167
+ xmlMallocLoc (size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1);
168
+ XMLPUBFUN void *
169
+ xmlReallocLoc (void *ptr, size_t size, const char *file, int line);
170
+ XMLPUBFUN void *
171
+ xmlMallocAtomicLoc (size_t size, const char *file, int line) LIBXML_ATTR_ALLOC_SIZE(1);
172
+ XMLPUBFUN char *
173
+ xmlMemStrdupLoc (const char *str, const char *file, int line);
174
+
175
+
176
+ /** DOC_DISABLE */
177
+ #ifdef DEBUG_MEMORY_LOCATION
178
+ /**
179
+ * xmlMalloc:
180
+ * @size: number of bytes to allocate
181
+ *
182
+ * Wrapper for the malloc() function used in the XML library.
183
+ *
184
+ * Returns the pointer to the allocated area or NULL in case of error.
185
+ */
186
+ #define xmlMalloc(size) xmlMallocLoc((size), __FILE__, __LINE__)
187
+ /**
188
+ * xmlMallocAtomic:
189
+ * @size: number of bytes to allocate
190
+ *
191
+ * Wrapper for the malloc() function used in the XML library for allocation
192
+ * of block not containing pointers to other areas.
193
+ *
194
+ * Returns the pointer to the allocated area or NULL in case of error.
195
+ */
196
+ #define xmlMallocAtomic(size) xmlMallocAtomicLoc((size), __FILE__, __LINE__)
197
+ /**
198
+ * xmlRealloc:
199
+ * @ptr: pointer to the existing allocated area
200
+ * @size: number of bytes to allocate
201
+ *
202
+ * Wrapper for the realloc() function used in the XML library.
203
+ *
204
+ * Returns the pointer to the allocated area or NULL in case of error.
205
+ */
206
+ #define xmlRealloc(ptr, size) xmlReallocLoc((ptr), (size), __FILE__, __LINE__)
207
+ /**
208
+ * xmlMemStrdup:
209
+ * @str: pointer to the existing string
210
+ *
211
+ * Wrapper for the strdup() function, xmlStrdup() is usually preferred.
212
+ *
213
+ * Returns the pointer to the allocated area or NULL in case of error.
214
+ */
215
+ #define xmlMemStrdup(str) xmlMemStrdupLoc((str), __FILE__, __LINE__)
216
+
217
+ #endif /* DEBUG_MEMORY_LOCATION */
218
+ /** DOC_ENABLE */
219
+
220
+ #ifdef __cplusplus
221
+ }
222
+ #endif /* __cplusplus */
223
+
224
+ #endif /* __DEBUG_MEMORY_ALLOC__ */
225
+
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Summary: dynamic module loading
3
+ * Description: basic API for dynamic module loading, used by
4
+ * libexslt added in 2.6.17
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Joel W. Reed
9
+ */
10
+
11
+ #ifndef __XML_MODULE_H__
12
+ #define __XML_MODULE_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef LIBXML_MODULES_ENABLED
17
+
18
+ #ifdef __cplusplus
19
+ extern "C" {
20
+ #endif
21
+
22
+ /**
23
+ * xmlModulePtr:
24
+ *
25
+ * A handle to a dynamically loaded module
26
+ */
27
+ typedef struct _xmlModule xmlModule;
28
+ typedef xmlModule *xmlModulePtr;
29
+
30
+ /**
31
+ * xmlModuleOption:
32
+ *
33
+ * enumeration of options that can be passed down to xmlModuleOpen()
34
+ */
35
+ typedef enum {
36
+ XML_MODULE_LAZY = 1, /* lazy binding */
37
+ XML_MODULE_LOCAL= 2 /* local binding */
38
+ } xmlModuleOption;
39
+
40
+ XMLPUBFUN xmlModulePtr xmlModuleOpen (const char *filename,
41
+ int options);
42
+
43
+ XMLPUBFUN int xmlModuleSymbol (xmlModulePtr module,
44
+ const char* name,
45
+ void **result);
46
+
47
+ XMLPUBFUN int xmlModuleClose (xmlModulePtr module);
48
+
49
+ XMLPUBFUN int xmlModuleFree (xmlModulePtr module);
50
+
51
+ #ifdef __cplusplus
52
+ }
53
+ #endif
54
+
55
+ #endif /* LIBXML_MODULES_ENABLED */
56
+
57
+ #endif /*__XML_MODULE_H__ */