GRAYBYTE WORDPRESS FILE MANAGER7077

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/lxml/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/lxml//public-api.pxi
# Public C API for lxml.etree

cdef public api _Element deepcopyNodeToDocument(_Document doc, xmlNode* c_root):
    "Recursively copy the element into the document. doc is not modified."
    cdef xmlNode* c_node
    c_node = _copyNodeToDoc(c_root, doc._c_doc)
    return _elementFactory(doc, c_node)

cdef public api _ElementTree elementTreeFactory(_Element context_node):
    _assertValidNode(context_node)
    return newElementTree(context_node, _ElementTree)

cdef public api _ElementTree newElementTree(_Element context_node,
                                            object subclass):
    if <void*>context_node is NULL or context_node is None:
        raise TypeError
    _assertValidNode(context_node)
    return _newElementTree(context_node._doc, context_node, subclass)

cdef public api _ElementTree adoptExternalDocument(xmlDoc* c_doc, parser, bint is_owned):
    if c_doc is NULL:
        raise TypeError
    doc = _adoptForeignDoc(c_doc, parser, is_owned)
    return _elementTreeFactory(doc, None)

cdef public api _Element elementFactory(_Document doc, xmlNode* c_node):
    if c_node is NULL or doc is None:
        raise TypeError
    return _elementFactory(doc, c_node)

cdef public api _Element makeElement(tag, _Document doc, parser,
                                     text, tail, attrib, nsmap):
    return _makeElement(tag, NULL, doc, parser, text, tail, attrib, nsmap, None)

cdef public api _Element makeSubElement(_Element parent, tag, text, tail,
                                        attrib, nsmap):
    _assertValidNode(parent)
    return _makeSubElement(parent, tag, text, tail, attrib, nsmap, None)

cdef public api void setElementClassLookupFunction(
    _element_class_lookup_function function, state):
    _setElementClassLookupFunction(function, state)

cdef public api object lookupDefaultElementClass(state, doc, xmlNode* c_node):
    return _lookupDefaultElementClass(state, doc, c_node)

cdef public api object lookupNamespaceElementClass(state, doc, xmlNode* c_node):
    return _find_nselement_class(state, doc, c_node)

cdef public api object callLookupFallback(FallbackElementClassLookup lookup,
                                          _Document doc, xmlNode* c_node):
    return _callLookupFallback(lookup, doc, c_node)

cdef public api int tagMatches(xmlNode* c_node, const_xmlChar* c_href, const_xmlChar* c_name):
    if c_node is NULL:
        return -1
    return _tagMatches(c_node, c_href, c_name)

cdef public api _Document documentOrRaise(object input):
    return _documentOrRaise(input)

cdef public api _Element rootNodeOrRaise(object input):
    return _rootNodeOrRaise(input)

cdef public api bint hasText(xmlNode* c_node):
    return _hasText(c_node)

cdef public api bint hasTail(xmlNode* c_node):
    return _hasTail(c_node)

cdef public api unicode textOf(xmlNode* c_node):
    if c_node is NULL:
        return None
    return _collectText(c_node.children)

cdef public api unicode tailOf(xmlNode* c_node):
    if c_node is NULL:
        return None
    return _collectText(c_node.next)

cdef public api int setNodeText(xmlNode* c_node, text) except -1:
    if c_node is NULL:
        raise ValueError
    return _setNodeText(c_node, text)

cdef public api int setTailText(xmlNode* c_node, text) except -1:
    if c_node is NULL:
        raise ValueError
    return _setTailText(c_node, text)

cdef public api unicode attributeValue(xmlNode* c_element, xmlAttr* c_attrib_node):
    return _attributeValue(c_element, c_attrib_node)

cdef public api unicode attributeValueFromNsName(xmlNode* c_element,
                                                const_xmlChar* ns, const_xmlChar* name):
    return _attributeValueFromNsName(c_element, ns, name)

cdef public api object getAttributeValue(_Element element, key, default):
    _assertValidNode(element)
    return _getAttributeValue(element, key, default)

cdef public api object iterattributes(_Element element, int keysvalues):
    _assertValidNode(element)
    return _attributeIteratorFactory(element, keysvalues)

cdef public api list collectAttributes(xmlNode* c_element, int keysvalues):
    return _collectAttributes(c_element, keysvalues)

cdef public api int setAttributeValue(_Element element, key, value) except -1:
    _assertValidNode(element)
    return _setAttributeValue(element, key, value)

cdef public api int delAttribute(_Element element, key) except -1:
    _assertValidNode(element)
    return _delAttribute(element, key)

cdef public api int delAttributeFromNsName(tree.xmlNode* c_element,
                                           const_xmlChar* c_href, const_xmlChar* c_name):
    return _delAttributeFromNsName(c_element, c_href, c_name)

cdef public api bint hasChild(xmlNode* c_node):
    return _hasChild(c_node)

cdef public api xmlNode* findChild(xmlNode* c_node, Py_ssize_t index):
    return _findChild(c_node, index)

cdef public api xmlNode* findChildForwards(xmlNode* c_node, Py_ssize_t index):
    return _findChildForwards(c_node, index)

cdef public api xmlNode* findChildBackwards(xmlNode* c_node, Py_ssize_t index):
    return _findChildBackwards(c_node, index)

cdef public api xmlNode* nextElement(xmlNode* c_node):
    return _nextElement(c_node)

cdef public api xmlNode* previousElement(xmlNode* c_node):
    return _previousElement(c_node)

cdef public api void appendChild(_Element parent, _Element child):
    # deprecated, use appendChildToElement() instead!
    _appendChild(parent, child)

cdef public api int appendChildToElement(_Element parent, _Element child) except -1:
    return _appendChild(parent, child)

cdef public api unicode pyunicode(const_xmlChar* s):
    if s is NULL:
        raise TypeError
    return funicode(s)

cdef public api bytes utf8(object s):
    return _utf8(s)

cdef public api tuple getNsTag(object tag):
    return _getNsTag(tag)

cdef public api tuple getNsTagWithEmptyNs(object tag):
    return _getNsTagWithEmptyNs(tag)

cdef public api unicode namespacedName(xmlNode* c_node):
    return _namespacedName(c_node)

cdef public api unicode namespacedNameFromNsName(const_xmlChar* href, const_xmlChar* name):
    return _namespacedNameFromNsName(href, name)

cdef public api void iteratorStoreNext(_ElementIterator iterator, _Element node):
    # deprecated!
    iterator._storeNext(node)

cdef public api void initTagMatch(_ElementTagMatcher matcher, tag):
    # deprecated!
    matcher._initTagMatch(tag)

cdef public api tree.xmlNs* findOrBuildNodeNsPrefix(
        _Document doc, xmlNode* c_node, const_xmlChar* href, const_xmlChar* prefix) except NULL:
    if doc is None:
        raise TypeError
    return doc._findOrBuildNodeNs(c_node, href, prefix, 0)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2025 08:31:29
root / root
0755
__pycache__
--
April 04 2025 08:00:21
root / root
0755
html
--
April 04 2025 08:00:21
root / root
0755
includes
--
April 04 2025 08:00:21
root / root
0755
isoschematron
--
April 04 2025 08:00:21
root / root
0755
ElementInclude.py
8.359 KB
April 04 2025 08:00:21
root / root
0644
__init__.py
0.561 KB
April 04 2025 08:00:21
root / root
0644
_elementpath.cpython-312-x86_64-linux-gnu.so
200.188 KB
April 04 2025 08:00:21
root / root
0755
_elementpath.py
10.633 KB
April 04 2025 08:00:21
root / root
0644
apihelpers.pxi
62.119 KB
April 04 2025 08:00:21
root / root
0644
builder.cpython-312-x86_64-linux-gnu.so
113.805 KB
April 04 2025 08:00:21
root / root
0755
builder.py
7.91 KB
April 04 2025 08:00:21
root / root
0644
classlookup.pxi
21.909 KB
April 04 2025 08:00:21
root / root
0644
cleanup.pxi
8.256 KB
April 04 2025 08:00:21
root / root
0644
cssselect.py
3.229 KB
April 04 2025 08:00:21
root / root
0644
debug.pxi
3.205 KB
April 04 2025 08:00:21
root / root
0644
docloader.pxi
5.637 KB
April 04 2025 08:00:21
root / root
0644
doctestcompare.py
17.315 KB
April 04 2025 08:00:21
root / root
0644
dtd.pxi
14.923 KB
April 04 2025 08:00:21
root / root
0644
etree.cpython-312-x86_64-linux-gnu.so
5.11 MB
April 04 2025 08:00:21
root / root
0755
etree.h
9.68 KB
April 04 2025 08:00:21
root / root
0644
etree.pyx
131.364 KB
April 04 2025 08:00:21
root / root
0644
etree_api.h
16.663 KB
April 04 2025 08:00:21
root / root
0644
extensions.pxi
31.336 KB
April 04 2025 08:00:21
root / root
0644
iterparse.pxi
16.134 KB
April 04 2025 08:00:21
root / root
0644
lxml.etree.h
9.68 KB
April 04 2025 08:00:21
root / root
0644
lxml.etree_api.h
16.668 KB
April 04 2025 08:00:21
root / root
0644
nsclasses.pxi
8.915 KB
April 04 2025 08:00:21
root / root
0644
objectify.cpython-312-x86_64-linux-gnu.so
2.94 MB
April 04 2025 08:00:21
root / root
0755
objectify.pyx
73.96 KB
April 04 2025 08:00:21
root / root
0644
objectpath.pxi
11.182 KB
April 04 2025 08:00:21
root / root
0644
parser.pxi
80.117 KB
April 04 2025 08:00:21
root / root
0644
parsertarget.pxi
6.178 KB
April 04 2025 08:00:21
root / root
0644
proxy.pxi
23.142 KB
April 04 2025 08:00:21
root / root
0644
public-api.pxi
6.51 KB
April 04 2025 08:00:21
root / root
0644
pyclasslookup.py
0.09 KB
April 04 2025 08:00:21
root / root
0644
readonlytree.pxi
18.531 KB
April 04 2025 08:00:21
root / root
0644
relaxng.pxi
6.19 KB
April 04 2025 08:00:21
root / root
0644
sax.cpython-312-x86_64-linux-gnu.so
181.68 KB
April 04 2025 08:00:21
root / root
0755
sax.py
9.085 KB
April 04 2025 08:00:21
root / root
0644
saxparser.pxi
32.541 KB
April 04 2025 08:00:21
root / root
0644
schematron.pxi
5.77 KB
April 04 2025 08:00:21
root / root
0644
serializer.pxi
64.212 KB
April 04 2025 08:00:21
root / root
0644
usedoctest.py
0.225 KB
April 04 2025 08:00:21
root / root
0644
xinclude.pxi
2.398 KB
April 04 2025 08:00:21
root / root
0644
xmlerror.pxi
48.686 KB
April 04 2025 08:00:21
root / root
0644
xmlid.pxi
5.931 KB
April 04 2025 08:00:21
root / root
0644
xmlschema.pxi
8.291 KB
April 04 2025 08:00:21
root / root
0644
xpath.pxi
18.684 KB
April 04 2025 08:00:21
root / root
0644
xslt.pxi
35.179 KB
April 04 2025 08:00:21
root / root
0644
xsltext.pxi
10.828 KB
April 04 2025 08:00:21
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF