lxml 6.0.0__cp311-cp311-win_arm64.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 (177) hide show
  1. lxml/ElementInclude.py +244 -0
  2. lxml/__init__.py +22 -0
  3. lxml/_elementpath.cp311-win_arm64.pyd +0 -0
  4. lxml/_elementpath.py +343 -0
  5. lxml/apihelpers.pxi +1801 -0
  6. lxml/builder.cp311-win_arm64.pyd +0 -0
  7. lxml/builder.py +243 -0
  8. lxml/classlookup.pxi +580 -0
  9. lxml/cleanup.pxi +215 -0
  10. lxml/cssselect.py +101 -0
  11. lxml/debug.pxi +36 -0
  12. lxml/docloader.pxi +178 -0
  13. lxml/doctestcompare.py +488 -0
  14. lxml/dtd.pxi +479 -0
  15. lxml/etree.cp311-win_arm64.pyd +0 -0
  16. lxml/etree.h +244 -0
  17. lxml/etree.pyx +3853 -0
  18. lxml/etree_api.h +204 -0
  19. lxml/extensions.pxi +830 -0
  20. lxml/html/ElementSoup.py +10 -0
  21. lxml/html/__init__.py +1927 -0
  22. lxml/html/_diffcommand.py +86 -0
  23. lxml/html/_difflib.cp311-win_arm64.pyd +0 -0
  24. lxml/html/_difflib.py +2106 -0
  25. lxml/html/_html5builder.py +100 -0
  26. lxml/html/_setmixin.py +56 -0
  27. lxml/html/builder.py +173 -0
  28. lxml/html/clean.py +21 -0
  29. lxml/html/defs.py +135 -0
  30. lxml/html/diff.cp311-win_arm64.pyd +0 -0
  31. lxml/html/diff.py +972 -0
  32. lxml/html/formfill.py +299 -0
  33. lxml/html/html5parser.py +260 -0
  34. lxml/html/soupparser.py +314 -0
  35. lxml/html/usedoctest.py +13 -0
  36. lxml/includes/__init__.pxd +0 -0
  37. lxml/includes/__init__.py +0 -0
  38. lxml/includes/c14n.pxd +25 -0
  39. lxml/includes/config.pxd +3 -0
  40. lxml/includes/dtdvalid.pxd +18 -0
  41. lxml/includes/etree_defs.h +379 -0
  42. lxml/includes/etreepublic.pxd +237 -0
  43. lxml/includes/extlibs/__init__.py +0 -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/libexslt/libexslt.h +29 -0
  52. lxml/includes/libxml/HTMLparser.h +320 -0
  53. lxml/includes/libxml/HTMLtree.h +147 -0
  54. lxml/includes/libxml/SAX.h +204 -0
  55. lxml/includes/libxml/SAX2.h +173 -0
  56. lxml/includes/libxml/__init__.py +0 -0
  57. lxml/includes/libxml/c14n.h +128 -0
  58. lxml/includes/libxml/catalog.h +182 -0
  59. lxml/includes/libxml/chvalid.h +230 -0
  60. lxml/includes/libxml/debugXML.h +217 -0
  61. lxml/includes/libxml/dict.h +81 -0
  62. lxml/includes/libxml/encoding.h +233 -0
  63. lxml/includes/libxml/entities.h +151 -0
  64. lxml/includes/libxml/globals.h +529 -0
  65. lxml/includes/libxml/hash.h +236 -0
  66. lxml/includes/libxml/list.h +137 -0
  67. lxml/includes/libxml/nanoftp.h +186 -0
  68. lxml/includes/libxml/nanohttp.h +81 -0
  69. lxml/includes/libxml/parser.h +1265 -0
  70. lxml/includes/libxml/parserInternals.h +662 -0
  71. lxml/includes/libxml/pattern.h +100 -0
  72. lxml/includes/libxml/relaxng.h +218 -0
  73. lxml/includes/libxml/schemasInternals.h +958 -0
  74. lxml/includes/libxml/schematron.h +142 -0
  75. lxml/includes/libxml/threads.h +94 -0
  76. lxml/includes/libxml/tree.h +1314 -0
  77. lxml/includes/libxml/uri.h +94 -0
  78. lxml/includes/libxml/valid.h +448 -0
  79. lxml/includes/libxml/xinclude.h +129 -0
  80. lxml/includes/libxml/xlink.h +189 -0
  81. lxml/includes/libxml/xmlIO.h +369 -0
  82. lxml/includes/libxml/xmlautomata.h +146 -0
  83. lxml/includes/libxml/xmlerror.h +919 -0
  84. lxml/includes/libxml/xmlexports.h +50 -0
  85. lxml/includes/libxml/xmlmemory.h +228 -0
  86. lxml/includes/libxml/xmlmodule.h +57 -0
  87. lxml/includes/libxml/xmlreader.h +428 -0
  88. lxml/includes/libxml/xmlregexp.h +222 -0
  89. lxml/includes/libxml/xmlsave.h +88 -0
  90. lxml/includes/libxml/xmlschemas.h +246 -0
  91. lxml/includes/libxml/xmlschemastypes.h +152 -0
  92. lxml/includes/libxml/xmlstring.h +140 -0
  93. lxml/includes/libxml/xmlunicode.h +202 -0
  94. lxml/includes/libxml/xmlversion.h +526 -0
  95. lxml/includes/libxml/xmlwriter.h +488 -0
  96. lxml/includes/libxml/xpath.h +575 -0
  97. lxml/includes/libxml/xpathInternals.h +632 -0
  98. lxml/includes/libxml/xpointer.h +137 -0
  99. lxml/includes/libxslt/__init__.py +0 -0
  100. lxml/includes/libxslt/attributes.h +39 -0
  101. lxml/includes/libxslt/documents.h +93 -0
  102. lxml/includes/libxslt/extensions.h +262 -0
  103. lxml/includes/libxslt/extra.h +72 -0
  104. lxml/includes/libxslt/functions.h +78 -0
  105. lxml/includes/libxslt/imports.h +75 -0
  106. lxml/includes/libxslt/keys.h +53 -0
  107. lxml/includes/libxslt/libxslt.h +36 -0
  108. lxml/includes/libxslt/namespaces.h +68 -0
  109. lxml/includes/libxslt/numbersInternals.h +73 -0
  110. lxml/includes/libxslt/preproc.h +43 -0
  111. lxml/includes/libxslt/security.h +104 -0
  112. lxml/includes/libxslt/templates.h +77 -0
  113. lxml/includes/libxslt/transform.h +207 -0
  114. lxml/includes/libxslt/trio.h +216 -0
  115. lxml/includes/libxslt/triodef.h +220 -0
  116. lxml/includes/libxslt/variables.h +118 -0
  117. lxml/includes/libxslt/win32config.h +51 -0
  118. lxml/includes/libxslt/xslt.h +110 -0
  119. lxml/includes/libxslt/xsltInternals.h +1992 -0
  120. lxml/includes/libxslt/xsltconfig.h +179 -0
  121. lxml/includes/libxslt/xsltexports.h +64 -0
  122. lxml/includes/libxslt/xsltlocale.h +44 -0
  123. lxml/includes/libxslt/xsltutils.h +343 -0
  124. lxml/includes/lxml-version.h +3 -0
  125. lxml/includes/relaxng.pxd +64 -0
  126. lxml/includes/schematron.pxd +34 -0
  127. lxml/includes/tree.pxd +492 -0
  128. lxml/includes/uri.pxd +5 -0
  129. lxml/includes/xinclude.pxd +22 -0
  130. lxml/includes/xmlerror.pxd +852 -0
  131. lxml/includes/xmlparser.pxd +303 -0
  132. lxml/includes/xmlschema.pxd +35 -0
  133. lxml/includes/xpath.pxd +136 -0
  134. lxml/includes/xslt.pxd +190 -0
  135. lxml/isoschematron/__init__.py +348 -0
  136. lxml/isoschematron/resources/rng/iso-schematron.rng +709 -0
  137. lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl +75 -0
  138. lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl +77 -0
  139. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl +313 -0
  140. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl +1160 -0
  141. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl +55 -0
  142. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl +1796 -0
  143. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl +588 -0
  144. lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt +84 -0
  145. lxml/iterparse.pxi +438 -0
  146. lxml/lxml.etree.h +244 -0
  147. lxml/lxml.etree_api.h +204 -0
  148. lxml/nsclasses.pxi +281 -0
  149. lxml/objectify.cp311-win_arm64.pyd +0 -0
  150. lxml/objectify.pyx +2149 -0
  151. lxml/objectpath.pxi +332 -0
  152. lxml/parser.pxi +2059 -0
  153. lxml/parsertarget.pxi +180 -0
  154. lxml/proxy.pxi +619 -0
  155. lxml/public-api.pxi +178 -0
  156. lxml/pyclasslookup.py +3 -0
  157. lxml/readonlytree.pxi +565 -0
  158. lxml/relaxng.pxi +165 -0
  159. lxml/sax.cp311-win_arm64.pyd +0 -0
  160. lxml/sax.py +286 -0
  161. lxml/saxparser.pxi +875 -0
  162. lxml/schematron.pxi +173 -0
  163. lxml/serializer.pxi +1849 -0
  164. lxml/usedoctest.py +13 -0
  165. lxml/xinclude.pxi +67 -0
  166. lxml/xmlerror.pxi +1654 -0
  167. lxml/xmlid.pxi +179 -0
  168. lxml/xmlschema.pxi +215 -0
  169. lxml/xpath.pxi +487 -0
  170. lxml/xslt.pxi +957 -0
  171. lxml/xsltext.pxi +242 -0
  172. lxml-6.0.0.dist-info/METADATA +163 -0
  173. lxml-6.0.0.dist-info/RECORD +177 -0
  174. lxml-6.0.0.dist-info/WHEEL +5 -0
  175. lxml-6.0.0.dist-info/licenses/LICENSE.txt +31 -0
  176. lxml-6.0.0.dist-info/licenses/LICENSES.txt +29 -0
  177. lxml-6.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,142 @@
1
+ /*
2
+ * Summary: XML Schematron implementation
3
+ * Description: interface to the XML Schematron validity checking.
4
+ *
5
+ * Copy: See Copyright for the status of this software.
6
+ *
7
+ * Author: Daniel Veillard
8
+ */
9
+
10
+
11
+ #ifndef __XML_SCHEMATRON_H__
12
+ #define __XML_SCHEMATRON_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef LIBXML_SCHEMATRON_ENABLED
17
+
18
+ #include <libxml/tree.h>
19
+
20
+ #ifdef __cplusplus
21
+ extern "C" {
22
+ #endif
23
+
24
+ typedef enum {
25
+ XML_SCHEMATRON_OUT_QUIET = 1 << 0, /* quiet no report */
26
+ XML_SCHEMATRON_OUT_TEXT = 1 << 1, /* build a textual report */
27
+ XML_SCHEMATRON_OUT_XML = 1 << 2, /* output SVRL */
28
+ XML_SCHEMATRON_OUT_ERROR = 1 << 3, /* output via xmlStructuredErrorFunc */
29
+ XML_SCHEMATRON_OUT_FILE = 1 << 8, /* output to a file descriptor */
30
+ XML_SCHEMATRON_OUT_BUFFER = 1 << 9, /* output to a buffer */
31
+ XML_SCHEMATRON_OUT_IO = 1 << 10 /* output to I/O mechanism */
32
+ } xmlSchematronValidOptions;
33
+
34
+ /**
35
+ * The schemas related types are kept internal
36
+ */
37
+ typedef struct _xmlSchematron xmlSchematron;
38
+ typedef xmlSchematron *xmlSchematronPtr;
39
+
40
+ /**
41
+ * xmlSchematronValidityErrorFunc:
42
+ * @ctx: the validation context
43
+ * @msg: the message
44
+ * @...: extra arguments
45
+ *
46
+ * Signature of an error callback from a Schematron validation
47
+ */
48
+ typedef void (*xmlSchematronValidityErrorFunc) (void *ctx, const char *msg, ...);
49
+
50
+ /**
51
+ * xmlSchematronValidityWarningFunc:
52
+ * @ctx: the validation context
53
+ * @msg: the message
54
+ * @...: extra arguments
55
+ *
56
+ * Signature of a warning callback from a Schematron validation
57
+ */
58
+ typedef void (*xmlSchematronValidityWarningFunc) (void *ctx, const char *msg, ...);
59
+
60
+ /**
61
+ * A schemas validation context
62
+ */
63
+ typedef struct _xmlSchematronParserCtxt xmlSchematronParserCtxt;
64
+ typedef xmlSchematronParserCtxt *xmlSchematronParserCtxtPtr;
65
+
66
+ typedef struct _xmlSchematronValidCtxt xmlSchematronValidCtxt;
67
+ typedef xmlSchematronValidCtxt *xmlSchematronValidCtxtPtr;
68
+
69
+ /*
70
+ * Interfaces for parsing.
71
+ */
72
+ XMLPUBFUN xmlSchematronParserCtxtPtr
73
+ xmlSchematronNewParserCtxt (const char *URL);
74
+ XMLPUBFUN xmlSchematronParserCtxtPtr
75
+ xmlSchematronNewMemParserCtxt(const char *buffer,
76
+ int size);
77
+ XMLPUBFUN xmlSchematronParserCtxtPtr
78
+ xmlSchematronNewDocParserCtxt(xmlDocPtr doc);
79
+ XMLPUBFUN void
80
+ xmlSchematronFreeParserCtxt (xmlSchematronParserCtxtPtr ctxt);
81
+ /*****
82
+ XMLPUBFUN void
83
+ xmlSchematronSetParserErrors(xmlSchematronParserCtxtPtr ctxt,
84
+ xmlSchematronValidityErrorFunc err,
85
+ xmlSchematronValidityWarningFunc warn,
86
+ void *ctx);
87
+ XMLPUBFUN int
88
+ xmlSchematronGetParserErrors(xmlSchematronParserCtxtPtr ctxt,
89
+ xmlSchematronValidityErrorFunc * err,
90
+ xmlSchematronValidityWarningFunc * warn,
91
+ void **ctx);
92
+ XMLPUBFUN int
93
+ xmlSchematronIsValid (xmlSchematronValidCtxtPtr ctxt);
94
+ *****/
95
+ XMLPUBFUN xmlSchematronPtr
96
+ xmlSchematronParse (xmlSchematronParserCtxtPtr ctxt);
97
+ XMLPUBFUN void
98
+ xmlSchematronFree (xmlSchematronPtr schema);
99
+ /*
100
+ * Interfaces for validating
101
+ */
102
+ XMLPUBFUN void
103
+ xmlSchematronSetValidStructuredErrors(
104
+ xmlSchematronValidCtxtPtr ctxt,
105
+ xmlStructuredErrorFunc serror,
106
+ void *ctx);
107
+ /******
108
+ XMLPUBFUN void
109
+ xmlSchematronSetValidErrors (xmlSchematronValidCtxtPtr ctxt,
110
+ xmlSchematronValidityErrorFunc err,
111
+ xmlSchematronValidityWarningFunc warn,
112
+ void *ctx);
113
+ XMLPUBFUN int
114
+ xmlSchematronGetValidErrors (xmlSchematronValidCtxtPtr ctxt,
115
+ xmlSchematronValidityErrorFunc *err,
116
+ xmlSchematronValidityWarningFunc *warn,
117
+ void **ctx);
118
+ XMLPUBFUN int
119
+ xmlSchematronSetValidOptions(xmlSchematronValidCtxtPtr ctxt,
120
+ int options);
121
+ XMLPUBFUN int
122
+ xmlSchematronValidCtxtGetOptions(xmlSchematronValidCtxtPtr ctxt);
123
+ XMLPUBFUN int
124
+ xmlSchematronValidateOneElement (xmlSchematronValidCtxtPtr ctxt,
125
+ xmlNodePtr elem);
126
+ *******/
127
+
128
+ XMLPUBFUN xmlSchematronValidCtxtPtr
129
+ xmlSchematronNewValidCtxt (xmlSchematronPtr schema,
130
+ int options);
131
+ XMLPUBFUN void
132
+ xmlSchematronFreeValidCtxt (xmlSchematronValidCtxtPtr ctxt);
133
+ XMLPUBFUN int
134
+ xmlSchematronValidateDoc (xmlSchematronValidCtxtPtr ctxt,
135
+ xmlDocPtr instance);
136
+
137
+ #ifdef __cplusplus
138
+ }
139
+ #endif
140
+
141
+ #endif /* LIBXML_SCHEMATRON_ENABLED */
142
+ #endif /* __XML_SCHEMATRON_H__ */
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Summary: interfaces for thread handling
3
+ * Description: set of generic threading related routines
4
+ * should work with pthreads, Windows native or TLS threads
5
+ *
6
+ * Copy: See Copyright for the status of this software.
7
+ *
8
+ * Author: Daniel Veillard
9
+ */
10
+
11
+ #ifndef __XML_THREADS_H__
12
+ #define __XML_THREADS_H__
13
+
14
+ #include <libxml/xmlversion.h>
15
+
16
+ #ifdef __cplusplus
17
+ extern "C" {
18
+ #endif
19
+
20
+ /*
21
+ * xmlMutex are a simple mutual exception locks.
22
+ */
23
+ typedef struct _xmlMutex xmlMutex;
24
+ typedef xmlMutex *xmlMutexPtr;
25
+
26
+ /*
27
+ * xmlRMutex are reentrant mutual exception locks.
28
+ */
29
+ typedef struct _xmlRMutex xmlRMutex;
30
+ typedef xmlRMutex *xmlRMutexPtr;
31
+
32
+ #ifdef __cplusplus
33
+ }
34
+ #endif
35
+ #include <libxml/globals.h>
36
+ #ifdef __cplusplus
37
+ extern "C" {
38
+ #endif
39
+ XMLPUBFUN xmlMutexPtr
40
+ xmlNewMutex (void);
41
+ XMLPUBFUN void
42
+ xmlMutexLock (xmlMutexPtr tok);
43
+ XMLPUBFUN void
44
+ xmlMutexUnlock (xmlMutexPtr tok);
45
+ XMLPUBFUN void
46
+ xmlFreeMutex (xmlMutexPtr tok);
47
+
48
+ XMLPUBFUN xmlRMutexPtr
49
+ xmlNewRMutex (void);
50
+ XMLPUBFUN void
51
+ xmlRMutexLock (xmlRMutexPtr tok);
52
+ XMLPUBFUN void
53
+ xmlRMutexUnlock (xmlRMutexPtr tok);
54
+ XMLPUBFUN void
55
+ xmlFreeRMutex (xmlRMutexPtr tok);
56
+
57
+ /*
58
+ * Library wide APIs.
59
+ */
60
+ XML_DEPRECATED
61
+ XMLPUBFUN void
62
+ xmlInitThreads (void);
63
+ XMLPUBFUN void
64
+ xmlLockLibrary (void);
65
+ XMLPUBFUN void
66
+ xmlUnlockLibrary(void);
67
+ XML_DEPRECATED
68
+ XMLPUBFUN int
69
+ xmlGetThreadId (void);
70
+ XML_DEPRECATED
71
+ XMLPUBFUN int
72
+ xmlIsMainThread (void);
73
+ XML_DEPRECATED
74
+ XMLPUBFUN void
75
+ xmlCleanupThreads(void);
76
+ XML_DEPRECATED
77
+ XMLPUBFUN xmlGlobalStatePtr
78
+ xmlGetGlobalState(void);
79
+
80
+ /** DOC_DISABLE */
81
+ #if defined(LIBXML_THREAD_ENABLED) && defined(_WIN32) && \
82
+ !defined(HAVE_COMPILER_TLS) && defined(LIBXML_STATIC_FOR_DLL)
83
+ int
84
+ xmlDllMain(void *hinstDLL, unsigned long fdwReason,
85
+ void *lpvReserved);
86
+ #endif
87
+ /** DOC_ENABLE */
88
+
89
+ #ifdef __cplusplus
90
+ }
91
+ #endif
92
+
93
+
94
+ #endif /* __XML_THREADS_H__ */