aioccl 2024.10__tar.gz → 2024.12__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioccl
3
- Version: 2024.10
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
@@ -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
- cors = aiohttp_cors.setup(app)
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.10
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
@@ -3,7 +3,7 @@
3
3
  from pathlib import Path
4
4
  from setuptools import find_packages, setup
5
5
 
6
- VERSION = "2024.10"
6
+ VERSION = "2024.12"
7
7
 
8
8
  ROOT_DIR = Path(__file__).parent.resolve()
9
9
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes