winrt-Windows.Data.Xml.Xsl 2.0.0b1__tar.gz
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.
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/PKG-INFO +22 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/README.md +7 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/all-requirements.txt +3 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/py.Windows.Data.Xml.Xsl.cpp +218 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/pyproject.toml +43 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/pywinrt-version.txt +1 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/requirements.txt +3 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/setup.cfg +4 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/setup.py +17 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt/_winrt_windows_data_xml_xsl.pyi +22 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt/windows/data/xml/xsl/__init__.py +10 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt_Windows.Data.Xml.Xsl.egg-info/PKG-INFO +22 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt_Windows.Data.Xml.Xsl.egg-info/SOURCES.txt +14 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt_Windows.Data.Xml.Xsl.egg-info/dependency_links.txt +1 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt_Windows.Data.Xml.Xsl.egg-info/requires.txt +4 -0
- winrt-Windows.Data.Xml.Xsl-2.0.0b1/winrt_Windows.Data.Xml.Xsl.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Data.Xml.Xsl
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.Data.Xml.Xsl
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Data.Xml.Xsl` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.data.xml.xsl` module.
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
#include "py.Windows.Data.Xml.Xsl.h"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
namespace py::cpp::Windows::Data::Xml::Xsl
|
|
7
|
+
{
|
|
8
|
+
// ----- XsltProcessor class --------------------
|
|
9
|
+
|
|
10
|
+
static PyObject* _new_XsltProcessor(PyTypeObject* type, PyObject* args, PyObject* kwds) noexcept
|
|
11
|
+
{
|
|
12
|
+
if (kwds != nullptr)
|
|
13
|
+
{
|
|
14
|
+
py::set_invalid_kwd_args_error();
|
|
15
|
+
return nullptr;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
auto arg_count = PyTuple_Size(args);
|
|
19
|
+
if (arg_count == 1)
|
|
20
|
+
{
|
|
21
|
+
try
|
|
22
|
+
{
|
|
23
|
+
auto param0 = py::convert_to<winrt::Windows::Data::Xml::Dom::XmlDocument>(args, 0);
|
|
24
|
+
|
|
25
|
+
winrt::Windows::Data::Xml::Xsl::XsltProcessor instance{ param0 };
|
|
26
|
+
return py::wrap(instance, type);
|
|
27
|
+
}
|
|
28
|
+
catch (...)
|
|
29
|
+
{
|
|
30
|
+
py::to_PyErr();
|
|
31
|
+
return nullptr;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
else
|
|
35
|
+
{
|
|
36
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
37
|
+
return nullptr;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static void _dealloc_XsltProcessor(py::wrapper::Windows::Data::Xml::Xsl::XsltProcessor* self) noexcept
|
|
42
|
+
{
|
|
43
|
+
auto tp = Py_TYPE(self);
|
|
44
|
+
std::destroy_at(&self->obj);
|
|
45
|
+
tp->tp_free(self);
|
|
46
|
+
Py_DECREF(tp);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
static PyObject* XsltProcessor_TransformToDocument(py::wrapper::Windows::Data::Xml::Xsl::XsltProcessor* self, PyObject* args) noexcept
|
|
50
|
+
{
|
|
51
|
+
auto arg_count = PyTuple_Size(args);
|
|
52
|
+
|
|
53
|
+
if (arg_count == 1)
|
|
54
|
+
{
|
|
55
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Xml.Xsl.XsltProcessor", L"TransformToDocument", 1))
|
|
56
|
+
{
|
|
57
|
+
py::set_arg_count_version_error(1);
|
|
58
|
+
return nullptr;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
try
|
|
62
|
+
{
|
|
63
|
+
auto param0 = py::convert_to<winrt::Windows::Data::Xml::Dom::IXmlNode>(args, 0);
|
|
64
|
+
|
|
65
|
+
return py::convert(self->obj.TransformToDocument(param0));
|
|
66
|
+
}
|
|
67
|
+
catch (...)
|
|
68
|
+
{
|
|
69
|
+
py::to_PyErr();
|
|
70
|
+
return nullptr;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
else
|
|
74
|
+
{
|
|
75
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
76
|
+
return nullptr;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static PyObject* XsltProcessor_TransformToString(py::wrapper::Windows::Data::Xml::Xsl::XsltProcessor* self, PyObject* args) noexcept
|
|
81
|
+
{
|
|
82
|
+
auto arg_count = PyTuple_Size(args);
|
|
83
|
+
|
|
84
|
+
if (arg_count == 1)
|
|
85
|
+
{
|
|
86
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Xml.Xsl.XsltProcessor", L"TransformToString", 1))
|
|
87
|
+
{
|
|
88
|
+
py::set_arg_count_version_error(1);
|
|
89
|
+
return nullptr;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
try
|
|
93
|
+
{
|
|
94
|
+
auto param0 = py::convert_to<winrt::Windows::Data::Xml::Dom::IXmlNode>(args, 0);
|
|
95
|
+
|
|
96
|
+
return py::convert(self->obj.TransformToString(param0));
|
|
97
|
+
}
|
|
98
|
+
catch (...)
|
|
99
|
+
{
|
|
100
|
+
py::to_PyErr();
|
|
101
|
+
return nullptr;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
else
|
|
105
|
+
{
|
|
106
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
107
|
+
return nullptr;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static PyObject* _assign_array_XsltProcessor(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
112
|
+
{
|
|
113
|
+
auto array = std::make_unique<py::ComArray<winrt::Windows::Data::Xml::Xsl::XsltProcessor>>();
|
|
114
|
+
if (!py::cpp::_winrt::Array_Assign(arg, std::move(array)))
|
|
115
|
+
{
|
|
116
|
+
return nullptr;
|
|
117
|
+
}
|
|
118
|
+
Py_RETURN_NONE;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static PyObject* _from_XsltProcessor(PyObject* /*unused*/, PyObject* arg) noexcept
|
|
122
|
+
{
|
|
123
|
+
try
|
|
124
|
+
{
|
|
125
|
+
auto return_value = py::convert_to<winrt::Windows::Foundation::IInspectable>(arg);
|
|
126
|
+
return py::convert(return_value.as<winrt::Windows::Data::Xml::Xsl::XsltProcessor>());
|
|
127
|
+
}
|
|
128
|
+
catch (...)
|
|
129
|
+
{
|
|
130
|
+
py::to_PyErr();
|
|
131
|
+
return nullptr;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
static PyMethodDef _methods_XsltProcessor[] = {
|
|
136
|
+
{ "transform_to_document", reinterpret_cast<PyCFunction>(XsltProcessor_TransformToDocument), METH_VARARGS, nullptr },
|
|
137
|
+
{ "transform_to_string", reinterpret_cast<PyCFunction>(XsltProcessor_TransformToString), METH_VARARGS, nullptr },
|
|
138
|
+
{ "_assign_array_", _assign_array_XsltProcessor, METH_O | METH_STATIC, nullptr },
|
|
139
|
+
{ "_from", reinterpret_cast<PyCFunction>(_from_XsltProcessor), METH_O | METH_STATIC, nullptr },
|
|
140
|
+
{ }
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
static PyGetSetDef _getset_XsltProcessor[] = {
|
|
144
|
+
{ }
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
static PyType_Slot _type_slots_XsltProcessor[] =
|
|
148
|
+
{
|
|
149
|
+
{ Py_tp_new, reinterpret_cast<void*>(_new_XsltProcessor) },
|
|
150
|
+
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_XsltProcessor) },
|
|
151
|
+
{ Py_tp_methods, reinterpret_cast<void*>(_methods_XsltProcessor) },
|
|
152
|
+
{ Py_tp_getset, reinterpret_cast<void*>(_getset_XsltProcessor) },
|
|
153
|
+
{ },
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
static PyType_Spec type_spec_XsltProcessor =
|
|
157
|
+
{
|
|
158
|
+
"winrt._winrt_windows_data_xml_xsl.XsltProcessor",
|
|
159
|
+
sizeof(py::wrapper::Windows::Data::Xml::Xsl::XsltProcessor),
|
|
160
|
+
0,
|
|
161
|
+
Py_TPFLAGS_DEFAULT,
|
|
162
|
+
_type_slots_XsltProcessor
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// ----- Windows.Data.Xml.Xsl Initialization --------------------
|
|
166
|
+
PyDoc_STRVAR(module_doc, "Windows::Data::Xml::Xsl");
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
static PyModuleDef module_def
|
|
170
|
+
= {PyModuleDef_HEAD_INIT,
|
|
171
|
+
"_winrt_windows_data_xml_xsl",
|
|
172
|
+
module_doc,
|
|
173
|
+
0,
|
|
174
|
+
nullptr,
|
|
175
|
+
nullptr,
|
|
176
|
+
nullptr,
|
|
177
|
+
nullptr,
|
|
178
|
+
nullptr};
|
|
179
|
+
|
|
180
|
+
} // py::cpp::Windows::Data::Xml::Xsl
|
|
181
|
+
|
|
182
|
+
PyMODINIT_FUNC PyInit__winrt_windows_data_xml_xsl(void) noexcept
|
|
183
|
+
{
|
|
184
|
+
using namespace py::cpp::Windows::Data::Xml::Xsl;
|
|
185
|
+
|
|
186
|
+
if (py::import_winrt_runtime() == -1)
|
|
187
|
+
{
|
|
188
|
+
return nullptr;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
py::pyobj_handle module{PyModule_Create(&module_def)};
|
|
192
|
+
|
|
193
|
+
if (!module)
|
|
194
|
+
{
|
|
195
|
+
return nullptr;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
auto object_type = py::get_object_type();
|
|
199
|
+
if (!object_type)
|
|
200
|
+
{
|
|
201
|
+
return nullptr;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
|
|
205
|
+
|
|
206
|
+
if (!object_bases)
|
|
207
|
+
{
|
|
208
|
+
return nullptr;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (py::register_python_type(module.get(), &type_spec_XsltProcessor, object_bases.get(), nullptr) == -1)
|
|
212
|
+
{
|
|
213
|
+
return nullptr;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
return module.detach();
|
|
218
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["setuptools", "setuptools-scm", "winrt-sdk"]
|
|
5
|
+
build-backend = "setuptools.build_meta"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "winrt-Windows.Data.Xml.Xsl"
|
|
9
|
+
description = "Python projection of Windows Runtime (WinRT) APIs"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Operating System :: Microsoft :: Windows",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
]
|
|
18
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
+
requires-python = ">=3.9,<3.13"
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
# Homepage = "https://github.com/pywrint/pywrinrt"
|
|
23
|
+
# Documentation = "https://readthedocs.org"
|
|
24
|
+
Repository = "https://github.com/pywrint/pywrinrt"
|
|
25
|
+
Changelog = "https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md"
|
|
26
|
+
|
|
27
|
+
[tool.setuptools.dynamic]
|
|
28
|
+
version = { file = "pywinrt-version.txt" }
|
|
29
|
+
dependencies = { file = "requirements.txt" }
|
|
30
|
+
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
|
+
|
|
32
|
+
[tool.cibuildwheel]
|
|
33
|
+
# use local winrt-sdk build dependency
|
|
34
|
+
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
35
|
+
# don't install winrt-sdk from PyPI
|
|
36
|
+
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
37
|
+
# don't build for PyPy
|
|
38
|
+
skip = "pp*"
|
|
39
|
+
# suppress warnings about ARM64 testing
|
|
40
|
+
test-skip = "*-win_arm64"
|
|
41
|
+
|
|
42
|
+
[tool.cibuildwheel.windows]
|
|
43
|
+
archs = ["x86", "AMD64", "ARM64"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-beta.1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from winrt_sdk import get_include_dirs
|
|
5
|
+
|
|
6
|
+
setup(
|
|
7
|
+
ext_modules=[
|
|
8
|
+
Extension(
|
|
9
|
+
"winrt._winrt_windows_data_xml_xsl",
|
|
10
|
+
sources=["py.Windows.Data.Xml.Xsl.cpp"],
|
|
11
|
+
include_dirs=get_include_dirs(),
|
|
12
|
+
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
+
libraries=["windowsapp"],
|
|
14
|
+
)
|
|
15
|
+
],
|
|
16
|
+
package_data={"winrt": ["*.pyi"]},
|
|
17
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.data.xml.dom
|
|
13
|
+
|
|
14
|
+
Self = typing.TypeVar('Self')
|
|
15
|
+
|
|
16
|
+
class XsltProcessor(winrt.system.Object):
|
|
17
|
+
@staticmethod
|
|
18
|
+
def _from(obj: winrt.system.Object, /) -> XsltProcessor: ...
|
|
19
|
+
def __new__(cls: typing.Type[XsltProcessor], document: typing.Optional[winrt.windows.data.xml.dom.XmlDocument]) -> XsltProcessor:...
|
|
20
|
+
def transform_to_document(self, input_node: typing.Optional[winrt.windows.data.xml.dom.IXmlNode], /) -> typing.Optional[winrt.windows.data.xml.dom.XmlDocument]: ...
|
|
21
|
+
def transform_to_string(self, input_node: typing.Optional[winrt.windows.data.xml.dom.IXmlNode], /) -> str: ...
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: winrt-Windows.Data.Xml.Xsl
|
|
3
|
+
Version: 2.0.0b1
|
|
4
|
+
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
|
+
License: MIT
|
|
6
|
+
Project-URL: Repository, https://github.com/pywrint/pywrinrt
|
|
7
|
+
Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
|
|
8
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Requires-Python: <3.13,>=3.9
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
Provides-Extra: all
|
|
15
|
+
|
|
16
|
+
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
17
|
+
|
|
18
|
+
# winrt-Windows.Data.Xml.Xsl
|
|
19
|
+
|
|
20
|
+
Windows Runtime (WinRT) APIs for for the `Windows.Data.Xml.Xsl` namespace.
|
|
21
|
+
|
|
22
|
+
This package provides the `winrt.windows.data.xml.xsl` module.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
all-requirements.txt
|
|
3
|
+
py.Windows.Data.Xml.Xsl.cpp
|
|
4
|
+
pyproject.toml
|
|
5
|
+
pywinrt-version.txt
|
|
6
|
+
requirements.txt
|
|
7
|
+
setup.py
|
|
8
|
+
winrt/_winrt_windows_data_xml_xsl.pyi
|
|
9
|
+
winrt/windows/data/xml/xsl/__init__.py
|
|
10
|
+
winrt_Windows.Data.Xml.Xsl.egg-info/PKG-INFO
|
|
11
|
+
winrt_Windows.Data.Xml.Xsl.egg-info/SOURCES.txt
|
|
12
|
+
winrt_Windows.Data.Xml.Xsl.egg-info/dependency_links.txt
|
|
13
|
+
winrt_Windows.Data.Xml.Xsl.egg-info/requires.txt
|
|
14
|
+
winrt_Windows.Data.Xml.Xsl.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
winrt
|