windows-bluetooth-watcher 0.1.0__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.
Files changed (40) hide show
  1. windows_bluetooth_watcher-0.1.0/.gitignore +3 -0
  2. windows_bluetooth_watcher-0.1.0/AUTHORS +9 -0
  3. windows_bluetooth_watcher-0.1.0/BREAKING.md +23 -0
  4. windows_bluetooth_watcher-0.1.0/Cargo.lock +383 -0
  5. windows_bluetooth_watcher-0.1.0/Cargo.toml +21 -0
  6. windows_bluetooth_watcher-0.1.0/LICENSE +688 -0
  7. windows_bluetooth_watcher-0.1.0/PKG-INFO +107 -0
  8. windows_bluetooth_watcher-0.1.0/README.md +92 -0
  9. windows_bluetooth_watcher-0.1.0/dist/windows_bluetooth_watcher-0.1.0-cp313-cp313-win_amd64.whl +0 -0
  10. windows_bluetooth_watcher-0.1.0/dist/windows_bluetooth_watcher-0.1.0-cp314-cp314-win_amd64.whl +0 -0
  11. windows_bluetooth_watcher-0.1.0/dist/windows_bluetooth_watcher-0.1.0.tar.gz +0 -0
  12. windows_bluetooth_watcher-0.1.0/doc/en/PythonAPI/Explanation.md +642 -0
  13. windows_bluetooth_watcher-0.1.0/doc/zh-hans/PythonAPI/Explanation.md +642 -0
  14. windows_bluetooth_watcher-0.1.0/pyproject.toml +22 -0
  15. windows_bluetooth_watcher-0.1.0/readme.md +92 -0
  16. windows_bluetooth_watcher-0.1.0/readme_cn.md +93 -0
  17. windows_bluetooth_watcher-0.1.0/src/lib.rs +24 -0
  18. windows_bluetooth_watcher-0.1.0/src/modules/error/mod.rs +14 -0
  19. windows_bluetooth_watcher-0.1.0/src/modules/implements/diff.rs +24 -0
  20. windows_bluetooth_watcher-0.1.0/src/modules/implements/diff_tool.rs +85 -0
  21. windows_bluetooth_watcher-0.1.0/src/modules/implements/events/features/callback_token.rs +13 -0
  22. windows_bluetooth_watcher-0.1.0/src/modules/implements/events/features/mod.rs +2 -0
  23. windows_bluetooth_watcher-0.1.0/src/modules/implements/events/features/polling_eventify.rs +269 -0
  24. windows_bluetooth_watcher-0.1.0/src/modules/implements/events/mod.rs +1 -0
  25. windows_bluetooth_watcher-0.1.0/src/modules/implements/listener.rs +60 -0
  26. windows_bluetooth_watcher-0.1.0/src/modules/implements/mod.rs +4 -0
  27. windows_bluetooth_watcher-0.1.0/src/modules/mod.rs +3 -0
  28. windows_bluetooth_watcher-0.1.0/src/modules/types/device.rs +11 -0
  29. windows_bluetooth_watcher-0.1.0/src/modules/types/diff.rs +10 -0
  30. windows_bluetooth_watcher-0.1.0/src/modules/types/diff_tool.rs +5 -0
  31. windows_bluetooth_watcher-0.1.0/src/modules/types/events/features/callback_token.rs +17 -0
  32. windows_bluetooth_watcher-0.1.0/src/modules/types/events/features/events_type.rs +9 -0
  33. windows_bluetooth_watcher-0.1.0/src/modules/types/events/features/mod.rs +4 -0
  34. windows_bluetooth_watcher-0.1.0/src/modules/types/events/features/polling_eventify.rs +32 -0
  35. windows_bluetooth_watcher-0.1.0/src/modules/types/events/features/polling_status.rs +16 -0
  36. windows_bluetooth_watcher-0.1.0/src/modules/types/events/mod.rs +1 -0
  37. windows_bluetooth_watcher-0.1.0/src/modules/types/listener.rs +6 -0
  38. windows_bluetooth_watcher-0.1.0/src/modules/types/mod.rs +6 -0
  39. windows_bluetooth_watcher-0.1.0/src/modules/types/serialize_format.rs +9 -0
  40. windows_bluetooth_watcher-0.1.0/windows_bluetooth_watcher/__init__.py +22 -0
@@ -0,0 +1,3 @@
1
+ /target
2
+ Cargo.lock
3
+ .idea
@@ -0,0 +1,9 @@
1
+ # 此文件每行中列出的开发者享有 "许可证例外" 权利
2
+ # 以下排名不分先后, 每一行均为一个开发者, 使用邮箱或个人主页作为身份标识
3
+
4
+ silenthim18303 | https://github.com/silenthim18303 2066889432@qq.com |
5
+ JNTMTMTM | https://github.com/JNTMTMTM |
6
+ GeminiMortal | https://github.com/GeminiMortal |
7
+ mcxiaoqioumi2023 | https://github.com/mcxiaoqioumi2023 |
8
+ wanku0129 | https://github.com/wanku0129 |
9
+ 2064878930 | https://github.com/2064878930 |
@@ -0,0 +1,23 @@
1
+ # 破坏性更新与更新说明
2
+
3
+ 此文件用于说明各版本中 Python 侧 API 的变动
4
+
5
+ ---
6
+
7
+ ## 目录
8
+ - [破坏性更新与更新说明](#破坏性更新与更新说明)
9
+ - [目录](#目录)
10
+ - [详细信息](#详细信息)
11
+ - [v0.1.0](#v010)
12
+
13
+ ---
14
+
15
+ ## 详细信息
16
+
17
+ ### v01.0
18
+
19
+ 此版本是项目的初始版本, 不存在破坏性更新
20
+
21
+ ---
22
+
23
+ 末次编辑日期: 2026年3月18日
@@ -0,0 +1,383 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "equivalent"
7
+ version = "1.0.2"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
10
+
11
+ [[package]]
12
+ name = "hashbrown"
13
+ version = "0.16.1"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
16
+
17
+ [[package]]
18
+ name = "heck"
19
+ version = "0.5.0"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
22
+
23
+ [[package]]
24
+ name = "indexmap"
25
+ version = "2.13.0"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
28
+ dependencies = [
29
+ "equivalent",
30
+ "hashbrown",
31
+ ]
32
+
33
+ [[package]]
34
+ name = "itoa"
35
+ version = "1.0.17"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
38
+
39
+ [[package]]
40
+ name = "libc"
41
+ version = "0.2.183"
42
+ source = "registry+https://github.com/rust-lang/crates.io-index"
43
+ checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
44
+
45
+ [[package]]
46
+ name = "memchr"
47
+ version = "2.8.0"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
50
+
51
+ [[package]]
52
+ name = "once_cell"
53
+ version = "1.21.4"
54
+ source = "registry+https://github.com/rust-lang/crates.io-index"
55
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
56
+
57
+ [[package]]
58
+ name = "pin-project-lite"
59
+ version = "0.2.17"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
62
+
63
+ [[package]]
64
+ name = "portable-atomic"
65
+ version = "1.13.1"
66
+ source = "registry+https://github.com/rust-lang/crates.io-index"
67
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
68
+
69
+ [[package]]
70
+ name = "proc-macro2"
71
+ version = "1.0.106"
72
+ source = "registry+https://github.com/rust-lang/crates.io-index"
73
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
74
+ dependencies = [
75
+ "unicode-ident",
76
+ ]
77
+
78
+ [[package]]
79
+ name = "pyo3"
80
+ version = "0.28.2"
81
+ source = "registry+https://github.com/rust-lang/crates.io-index"
82
+ checksum = "cf85e27e86080aafd5a22eae58a162e133a589551542b3e5cee4beb27e54f8e1"
83
+ dependencies = [
84
+ "libc",
85
+ "once_cell",
86
+ "portable-atomic",
87
+ "pyo3-build-config",
88
+ "pyo3-ffi",
89
+ "pyo3-macros",
90
+ ]
91
+
92
+ [[package]]
93
+ name = "pyo3-build-config"
94
+ version = "0.28.2"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "8bf94ee265674bf76c09fa430b0e99c26e319c945d96ca0d5a8215f31bf81cf7"
97
+ dependencies = [
98
+ "target-lexicon",
99
+ ]
100
+
101
+ [[package]]
102
+ name = "pyo3-ffi"
103
+ version = "0.28.2"
104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
105
+ checksum = "491aa5fc66d8059dd44a75f4580a2962c1862a1c2945359db36f6c2818b748dc"
106
+ dependencies = [
107
+ "libc",
108
+ "pyo3-build-config",
109
+ ]
110
+
111
+ [[package]]
112
+ name = "pyo3-macros"
113
+ version = "0.28.2"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "f5d671734e9d7a43449f8480f8b38115df67bef8d21f76837fa75ee7aaa5e52e"
116
+ dependencies = [
117
+ "proc-macro2",
118
+ "pyo3-macros-backend",
119
+ "quote",
120
+ "syn",
121
+ ]
122
+
123
+ [[package]]
124
+ name = "pyo3-macros-backend"
125
+ version = "0.28.2"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+ checksum = "22faaa1ce6c430a1f71658760497291065e6450d7b5dc2bcf254d49f66ee700a"
128
+ dependencies = [
129
+ "heck",
130
+ "proc-macro2",
131
+ "pyo3-build-config",
132
+ "quote",
133
+ "syn",
134
+ ]
135
+
136
+ [[package]]
137
+ name = "quote"
138
+ version = "1.0.45"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
141
+ dependencies = [
142
+ "proc-macro2",
143
+ ]
144
+
145
+ [[package]]
146
+ name = "ryu"
147
+ version = "1.0.23"
148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
150
+
151
+ [[package]]
152
+ name = "serde"
153
+ version = "1.0.228"
154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
155
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
156
+ dependencies = [
157
+ "serde_core",
158
+ "serde_derive",
159
+ ]
160
+
161
+ [[package]]
162
+ name = "serde_core"
163
+ version = "1.0.228"
164
+ source = "registry+https://github.com/rust-lang/crates.io-index"
165
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
166
+ dependencies = [
167
+ "serde_derive",
168
+ ]
169
+
170
+ [[package]]
171
+ name = "serde_derive"
172
+ version = "1.0.228"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
175
+ dependencies = [
176
+ "proc-macro2",
177
+ "quote",
178
+ "syn",
179
+ ]
180
+
181
+ [[package]]
182
+ name = "serde_json"
183
+ version = "1.0.149"
184
+ source = "registry+https://github.com/rust-lang/crates.io-index"
185
+ checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
186
+ dependencies = [
187
+ "itoa",
188
+ "memchr",
189
+ "serde",
190
+ "serde_core",
191
+ "zmij",
192
+ ]
193
+
194
+ [[package]]
195
+ name = "serde_yaml"
196
+ version = "0.9.34+deprecated"
197
+ source = "registry+https://github.com/rust-lang/crates.io-index"
198
+ checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47"
199
+ dependencies = [
200
+ "indexmap",
201
+ "itoa",
202
+ "ryu",
203
+ "serde",
204
+ "unsafe-libyaml",
205
+ ]
206
+
207
+ [[package]]
208
+ name = "syn"
209
+ version = "2.0.117"
210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
211
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
212
+ dependencies = [
213
+ "proc-macro2",
214
+ "quote",
215
+ "unicode-ident",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "target-lexicon"
220
+ version = "0.13.5"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
223
+
224
+ [[package]]
225
+ name = "tokio"
226
+ version = "1.50.0"
227
+ source = "registry+https://github.com/rust-lang/crates.io-index"
228
+ checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d"
229
+ dependencies = [
230
+ "pin-project-lite",
231
+ "tokio-macros",
232
+ ]
233
+
234
+ [[package]]
235
+ name = "tokio-macros"
236
+ version = "2.6.1"
237
+ source = "registry+https://github.com/rust-lang/crates.io-index"
238
+ checksum = "5c55a2eff8b69ce66c84f85e1da1c233edc36ceb85a2058d11b0d6a3c7e7569c"
239
+ dependencies = [
240
+ "proc-macro2",
241
+ "quote",
242
+ "syn",
243
+ ]
244
+
245
+ [[package]]
246
+ name = "unicode-ident"
247
+ version = "1.0.24"
248
+ source = "registry+https://github.com/rust-lang/crates.io-index"
249
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
250
+
251
+ [[package]]
252
+ name = "unsafe-libyaml"
253
+ version = "0.2.11"
254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
255
+ checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
256
+
257
+ [[package]]
258
+ name = "windows"
259
+ version = "0.62.2"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
262
+ dependencies = [
263
+ "windows-collections",
264
+ "windows-core",
265
+ "windows-future",
266
+ "windows-numerics",
267
+ ]
268
+
269
+ [[package]]
270
+ name = "windows-collections"
271
+ version = "0.3.2"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
274
+ dependencies = [
275
+ "windows-core",
276
+ ]
277
+
278
+ [[package]]
279
+ name = "windows-core"
280
+ version = "0.62.2"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
283
+ dependencies = [
284
+ "windows-implement",
285
+ "windows-interface",
286
+ "windows-link",
287
+ "windows-result",
288
+ "windows-strings",
289
+ ]
290
+
291
+ [[package]]
292
+ name = "windows-future"
293
+ version = "0.3.2"
294
+ source = "registry+https://github.com/rust-lang/crates.io-index"
295
+ checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
296
+ dependencies = [
297
+ "windows-core",
298
+ "windows-link",
299
+ "windows-threading",
300
+ ]
301
+
302
+ [[package]]
303
+ name = "windows-implement"
304
+ version = "0.60.2"
305
+ source = "registry+https://github.com/rust-lang/crates.io-index"
306
+ checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
307
+ dependencies = [
308
+ "proc-macro2",
309
+ "quote",
310
+ "syn",
311
+ ]
312
+
313
+ [[package]]
314
+ name = "windows-interface"
315
+ version = "0.59.3"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
318
+ dependencies = [
319
+ "proc-macro2",
320
+ "quote",
321
+ "syn",
322
+ ]
323
+
324
+ [[package]]
325
+ name = "windows-link"
326
+ version = "0.2.1"
327
+ source = "registry+https://github.com/rust-lang/crates.io-index"
328
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
329
+
330
+ [[package]]
331
+ name = "windows-numerics"
332
+ version = "0.3.1"
333
+ source = "registry+https://github.com/rust-lang/crates.io-index"
334
+ checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
335
+ dependencies = [
336
+ "windows-core",
337
+ "windows-link",
338
+ ]
339
+
340
+ [[package]]
341
+ name = "windows-result"
342
+ version = "0.4.1"
343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
344
+ checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
345
+ dependencies = [
346
+ "windows-link",
347
+ ]
348
+
349
+ [[package]]
350
+ name = "windows-strings"
351
+ version = "0.5.1"
352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
353
+ checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
354
+ dependencies = [
355
+ "windows-link",
356
+ ]
357
+
358
+ [[package]]
359
+ name = "windows-threading"
360
+ version = "0.2.1"
361
+ source = "registry+https://github.com/rust-lang/crates.io-index"
362
+ checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
363
+ dependencies = [
364
+ "windows-link",
365
+ ]
366
+
367
+ [[package]]
368
+ name = "windows_bluetooth_watcher"
369
+ version = "0.1.0"
370
+ dependencies = [
371
+ "pyo3",
372
+ "serde",
373
+ "serde_json",
374
+ "serde_yaml",
375
+ "tokio",
376
+ "windows",
377
+ ]
378
+
379
+ [[package]]
380
+ name = "zmij"
381
+ version = "1.0.21"
382
+ source = "registry+https://github.com/rust-lang/crates.io-index"
383
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
@@ -0,0 +1,21 @@
1
+ [package]
2
+ name = "windows_bluetooth_watcher"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ license = "GPL-3"
6
+ homepage = "https://github.com/starwindv/windows-notice-lite.git"
7
+ description = "This project is a secondary development based on the windows crate. It primarily wraps related methods for obtaining the connection status of Bluetooth devices on the Windows system and uses PyO3 for Python bindings to provide it as a Python library."
8
+ readme = "README.md"
9
+
10
+ [dependencies]
11
+ pyo3 = { version = "0.28.2", features = ["experimental-async"] }
12
+ serde = { version = "1.0.228", features = ["derive"] }
13
+ serde_json = "1.0.149"
14
+ serde_yaml = "0.9.34"
15
+ tokio = { version = "1.50.0", features = [
16
+ "time",
17
+ "rt-multi-thread",
18
+ "macros"] }
19
+ windows = { version = "0.62.2", features = [
20
+ "Devices_Bluetooth",
21
+ "Devices_Enumeration"] }