winrt-Windows.Data.Html 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.
@@ -0,0 +1,21 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Data.Html
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
+
15
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
16
+
17
+ # winrt-Windows.Data.Html
18
+
19
+ Windows Runtime (WinRT) APIs for for the `Windows.Data.Html` namespace.
20
+
21
+ This package provides the `winrt.windows.data.html` module.
@@ -0,0 +1,7 @@
1
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
2
+
3
+ # winrt-Windows.Data.Html
4
+
5
+ Windows Runtime (WinRT) APIs for for the `Windows.Data.Html` namespace.
6
+
7
+ This package provides the `winrt.windows.data.html` module.
@@ -0,0 +1,158 @@
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.Html.h"
4
+
5
+
6
+ namespace py::cpp::Windows::Data::Html
7
+ {
8
+ // ----- HtmlUtilities class --------------------
9
+
10
+ static PyObject* _new_HtmlUtilities(PyTypeObject* /*unused*/, PyObject* /*unused*/, PyObject* /*unused*/) noexcept
11
+ {
12
+ static_assert(py::py_type<winrt::Windows::Data::Html::HtmlUtilities>::type_name);
13
+ py::set_invalid_activation_error(py::py_type<winrt::Windows::Data::Html::HtmlUtilities>::type_name);
14
+ return nullptr;
15
+ }
16
+
17
+ static PyObject* HtmlUtilities_ConvertToText(PyObject* /*unused*/, PyObject* args) noexcept
18
+ {
19
+ auto arg_count = PyTuple_Size(args);
20
+
21
+ if (arg_count == 1)
22
+ {
23
+ if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Data.Html.HtmlUtilities", L"ConvertToText", 1))
24
+ {
25
+ py::set_arg_count_version_error(1);
26
+ return nullptr;
27
+ }
28
+
29
+ try
30
+ {
31
+ auto param0 = py::convert_to<winrt::hstring>(args, 0);
32
+
33
+ return py::convert(winrt::Windows::Data::Html::HtmlUtilities::ConvertToText(param0));
34
+ }
35
+ catch (...)
36
+ {
37
+ py::to_PyErr();
38
+ return nullptr;
39
+ }
40
+ }
41
+ else
42
+ {
43
+ py::set_invalid_arg_count_error(arg_count);
44
+ return nullptr;
45
+ }
46
+ }
47
+
48
+ static PyMethodDef _methods_HtmlUtilities[] = {
49
+ { }
50
+ };
51
+
52
+ static PyGetSetDef _getset_HtmlUtilities[] = {
53
+ { }
54
+ };
55
+
56
+ static PyType_Slot _type_slots_HtmlUtilities[] =
57
+ {
58
+ { Py_tp_new, reinterpret_cast<void*>(_new_HtmlUtilities) },
59
+ { Py_tp_methods, reinterpret_cast<void*>(_methods_HtmlUtilities) },
60
+ { Py_tp_getset, reinterpret_cast<void*>(_getset_HtmlUtilities) },
61
+ { },
62
+ };
63
+
64
+ static PyType_Spec type_spec_HtmlUtilities =
65
+ {
66
+ "winrt._winrt_windows_data_html.HtmlUtilities",
67
+ 0,
68
+ 0,
69
+ Py_TPFLAGS_DEFAULT,
70
+ _type_slots_HtmlUtilities
71
+ };
72
+
73
+ static PyGetSetDef getset_HtmlUtilities_Static[] = {
74
+ { }
75
+ };
76
+
77
+ static PyMethodDef methods_HtmlUtilities_Static[] = {
78
+ { "convert_to_text", reinterpret_cast<PyCFunction>(HtmlUtilities_ConvertToText), METH_VARARGS, nullptr },
79
+ { }
80
+ };
81
+
82
+ static PyType_Slot type_slots_HtmlUtilities_Static[] =
83
+ {
84
+ { Py_tp_base, reinterpret_cast<void*>(&PyType_Type) },
85
+ { Py_tp_getset, reinterpret_cast<void*>(getset_HtmlUtilities_Static) },
86
+ { Py_tp_methods, reinterpret_cast<void*>(methods_HtmlUtilities_Static) },
87
+ { }
88
+ };
89
+
90
+ static PyType_Spec type_spec_HtmlUtilities_Static =
91
+ {
92
+ "winrt._winrt_windows_data_html.HtmlUtilities_Static",
93
+ static_cast<int>(PyType_Type.tp_basicsize),
94
+ static_cast<int>(PyType_Type.tp_itemsize),
95
+ Py_TPFLAGS_DEFAULT,
96
+ type_slots_HtmlUtilities_Static
97
+ };
98
+
99
+ // ----- Windows.Data.Html Initialization --------------------
100
+ PyDoc_STRVAR(module_doc, "Windows::Data::Html");
101
+
102
+
103
+ static PyModuleDef module_def
104
+ = {PyModuleDef_HEAD_INIT,
105
+ "_winrt_windows_data_html",
106
+ module_doc,
107
+ 0,
108
+ nullptr,
109
+ nullptr,
110
+ nullptr,
111
+ nullptr,
112
+ nullptr};
113
+
114
+ } // py::cpp::Windows::Data::Html
115
+
116
+ PyMODINIT_FUNC PyInit__winrt_windows_data_html(void) noexcept
117
+ {
118
+ using namespace py::cpp::Windows::Data::Html;
119
+
120
+ if (py::import_winrt_runtime() == -1)
121
+ {
122
+ return nullptr;
123
+ }
124
+
125
+ py::pyobj_handle module{PyModule_Create(&module_def)};
126
+
127
+ if (!module)
128
+ {
129
+ return nullptr;
130
+ }
131
+
132
+ auto object_type = py::get_object_type();
133
+ if (!object_type)
134
+ {
135
+ return nullptr;
136
+ }
137
+
138
+ py::pyobj_handle object_bases{PyTuple_Pack(1, object_type)};
139
+
140
+ if (!object_bases)
141
+ {
142
+ return nullptr;
143
+ }
144
+
145
+ py::pyobj_handle type_HtmlUtilities_Static{PyType_FromSpec(&type_spec_HtmlUtilities_Static)};
146
+ if (!type_HtmlUtilities_Static)
147
+ {
148
+ return nullptr;
149
+ }
150
+
151
+ if (py::register_python_type(module.get(), &type_spec_HtmlUtilities, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_HtmlUtilities_Static.get())) == -1)
152
+ {
153
+ return nullptr;
154
+ }
155
+
156
+
157
+ return module.detach();
158
+ }
@@ -0,0 +1,42 @@
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.Html"
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"]
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
+
31
+ [tool.cibuildwheel]
32
+ # use local winrt-sdk build dependency
33
+ environment = { PYTHONPATH="../winrt-sdk/src" }
34
+ # don't install winrt-sdk from PyPI
35
+ build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
36
+ # don't build for PyPy
37
+ skip = "pp*"
38
+ # suppress warnings about ARM64 testing
39
+ test-skip = "*-win_arm64"
40
+
41
+ [tool.cibuildwheel.windows]
42
+ archs = ["x86", "AMD64", "ARM64"]
@@ -0,0 +1 @@
1
+ 2.0.0-beta.1
@@ -0,0 +1,3 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ winrt-runtime==2.0.0-beta.1
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -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_html",
10
+ sources=["py.Windows.Data.Html.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,21 @@
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
+
13
+ Self = typing.TypeVar('Self')
14
+
15
+ class HtmlUtilities_Static(type):
16
+ def convert_to_text(cls, html: str, /) -> str: ...
17
+
18
+ class HtmlUtilities(winrt.system.Object, metaclass=HtmlUtilities_Static):
19
+ @staticmethod
20
+ def _from(obj: winrt.system.Object, /) -> HtmlUtilities: ...
21
+
@@ -0,0 +1,10 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.1
2
+
3
+ import winrt.system
4
+ from winrt import _winrt_windows_data_html
5
+
6
+ __all__ = [
7
+ "HtmlUtilities",
8
+ ]
9
+
10
+ HtmlUtilities = _winrt_windows_data_html.HtmlUtilities
@@ -0,0 +1,21 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Data.Html
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
+
15
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
16
+
17
+ # winrt-Windows.Data.Html
18
+
19
+ Windows Runtime (WinRT) APIs for for the `Windows.Data.Html` namespace.
20
+
21
+ This package provides the `winrt.windows.data.html` module.
@@ -0,0 +1,13 @@
1
+ README.md
2
+ py.Windows.Data.Html.cpp
3
+ pyproject.toml
4
+ pywinrt-version.txt
5
+ requirements.txt
6
+ setup.py
7
+ winrt/_winrt_windows_data_html.pyi
8
+ winrt/windows/data/html/__init__.py
9
+ winrt_Windows.Data.Html.egg-info/PKG-INFO
10
+ winrt_Windows.Data.Html.egg-info/SOURCES.txt
11
+ winrt_Windows.Data.Html.egg-info/dependency_links.txt
12
+ winrt_Windows.Data.Html.egg-info/requires.txt
13
+ winrt_Windows.Data.Html.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ winrt-runtime==2.0.0-beta.1