aioccl 2024.10__py3-none-any.whl → 2024.12__py3-none-any.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.
- aioccl/server.py +2 -15
- {aioccl-2024.10.dist-info → aioccl-2024.12.dist-info}/METADATA +3 -3
- aioccl-2024.12.dist-info/RECORD +9 -0
- {aioccl-2024.10.dist-info → aioccl-2024.12.dist-info}/WHEEL +1 -1
- aioccl-2024.10.dist-info/RECORD +0 -9
- {aioccl-2024.10.dist-info → aioccl-2024.12.dist-info}/LICENSE +0 -0
- {aioccl-2024.10.dist-info → aioccl-2024.12.dist-info}/top_level.txt +0 -0
aioccl/server.py
CHANGED
@@ -5,7 +5,6 @@ from __future__ import annotations
|
|
5
5
|
import logging
|
6
6
|
|
7
7
|
from aiohttp import web
|
8
|
-
import aiohttp_cors
|
9
8
|
|
10
9
|
from .device import CCLDevice, CCL_DEVICE_INFO_TYPES
|
11
10
|
from .sensor import CCL_SENSORS
|
@@ -90,20 +89,8 @@ class CCLServer:
|
|
90
89
|
return web.Response(status=_status, text=_text)
|
91
90
|
|
92
91
|
app = web.Application()
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
resource = cors.add(app.router.add_resource("/{passkey}"))
|
97
|
-
route = cors.add(
|
98
|
-
resource.add_route("POST", _handler),
|
99
|
-
{
|
100
|
-
"*": aiohttp_cors.ResourceOptions(
|
101
|
-
allow_credentials=True,
|
102
|
-
expose_headers="*",
|
103
|
-
allow_headers="*",
|
104
|
-
)
|
105
|
-
},
|
106
|
-
)
|
92
|
+
|
93
|
+
app.add_routes([web.get('/{passkey}', _handler)])
|
107
94
|
|
108
95
|
@staticmethod
|
109
96
|
async def run() -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: aioccl
|
3
|
-
Version: 2024.
|
3
|
+
Version: 2024.12
|
4
4
|
Summary: A Python library for CCL API server
|
5
5
|
Home-page: https://github.com/fkiscd/aioccl
|
6
6
|
Download-URL: https://github.com/fkiscd/aioccl
|
@@ -16,8 +16,8 @@ Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
License-File: LICENSE
|
19
|
-
Requires-Dist: aiohttp
|
20
|
-
Requires-Dist:
|
19
|
+
Requires-Dist: aiohttp>3
|
20
|
+
Requires-Dist: aiohttp_cors>=0.7.0
|
21
21
|
|
22
22
|
# aioCCL
|
23
23
|
A Python library for CCL API server
|
@@ -0,0 +1,9 @@
|
|
1
|
+
aioccl/__init__.py,sha256=XnegKtbvHvUTwVuuWNLb4LB9ZuGGar0xrZYOqk7scyg,133
|
2
|
+
aioccl/device.py,sha256=AjTlcIFysxPg57InXE8BEnRethEpypZsu5wf3tW5wuk,5390
|
3
|
+
aioccl/sensor.py,sha256=tMv_ypqsDIxWdghHQv91PUTOt2kUJGygZmFnJtzOx0k,16905
|
4
|
+
aioccl/server.py,sha256=T9VY5gqdr-NcDbytH_8IkHDTUGKpDqAxyOJX3yy4L70,3588
|
5
|
+
aioccl-2024.12.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
+
aioccl-2024.12.dist-info/METADATA,sha256=udIKIXa6n6BstSdHv2WLTJF6CeSun_v2p3ibRNLVWEQ,766
|
7
|
+
aioccl-2024.12.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
8
|
+
aioccl-2024.12.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
+
aioccl-2024.12.dist-info/RECORD,,
|
aioccl-2024.10.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
aioccl/__init__.py,sha256=XnegKtbvHvUTwVuuWNLb4LB9ZuGGar0xrZYOqk7scyg,133
|
2
|
-
aioccl/device.py,sha256=AjTlcIFysxPg57InXE8BEnRethEpypZsu5wf3tW5wuk,5390
|
3
|
-
aioccl/sensor.py,sha256=tMv_ypqsDIxWdghHQv91PUTOt2kUJGygZmFnJtzOx0k,16905
|
4
|
-
aioccl/server.py,sha256=2uilFTQ44SOoPG925K7lW9WJvGBgllaoR8QznK2LNe4,3916
|
5
|
-
aioccl-2024.10.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
-
aioccl-2024.10.dist-info/METADATA,sha256=FCuVzmEzJ9_tTnlPF6jGPVFq-JrIm3dZD4V4K8i75_E,768
|
7
|
-
aioccl-2024.10.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
8
|
-
aioccl-2024.10.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
-
aioccl-2024.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|