tokenspeed-flashkda 0.0.1__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
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LightSeek Foundation <contact@lightseek.org>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tokenspeed-flashkda
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Planning-stage capability interface for TokenSpeed FlashKDA kernels
|
|
5
|
+
Author-email: LightSeek Foundation <contact@lightseek.org>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# TokenSpeed FlashKDA
|
|
19
|
+
|
|
20
|
+
`tokenspeed-flashkda` is the planning-stage Python interface for FlashKDA
|
|
21
|
+
kernels in TokenSpeed.
|
|
22
|
+
|
|
23
|
+
The initial release does not yet ship a kernel implementation. It provides a
|
|
24
|
+
small capability interface so callers can detect support and fail with a clear
|
|
25
|
+
error while the kernels are under development.
|
|
26
|
+
|
|
27
|
+
```python
|
|
28
|
+
import tokenspeed_flashkda
|
|
29
|
+
|
|
30
|
+
if tokenspeed_flashkda.is_available():
|
|
31
|
+
# Use the FlashKDA implementation.
|
|
32
|
+
...
|
|
33
|
+
else:
|
|
34
|
+
# Select another implementation.
|
|
35
|
+
...
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Call `tokenspeed_flashkda.require()` when FlashKDA is mandatory. It raises
|
|
39
|
+
`FlashKDAUnavailableError` until an implementation is included in a future
|
|
40
|
+
release.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# TokenSpeed FlashKDA
|
|
2
|
+
|
|
3
|
+
`tokenspeed-flashkda` is the planning-stage Python interface for FlashKDA
|
|
4
|
+
kernels in TokenSpeed.
|
|
5
|
+
|
|
6
|
+
The initial release does not yet ship a kernel implementation. It provides a
|
|
7
|
+
small capability interface so callers can detect support and fail with a clear
|
|
8
|
+
error while the kernels are under development.
|
|
9
|
+
|
|
10
|
+
```python
|
|
11
|
+
import tokenspeed_flashkda
|
|
12
|
+
|
|
13
|
+
if tokenspeed_flashkda.is_available():
|
|
14
|
+
# Use the FlashKDA implementation.
|
|
15
|
+
...
|
|
16
|
+
else:
|
|
17
|
+
# Select another implementation.
|
|
18
|
+
...
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Call `tokenspeed_flashkda.require()` when FlashKDA is mandatory. It raises
|
|
22
|
+
`FlashKDAUnavailableError` until an implementation is included in a future
|
|
23
|
+
release.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "tokenspeed-flashkda"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "Planning-stage capability interface for TokenSpeed FlashKDA kernels"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "LightSeek Foundation", email = "contact@lightseek.org" },
|
|
15
|
+
]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 1 - Planning",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
]
|
|
25
|
+
dependencies = []
|
|
26
|
+
|
|
27
|
+
[tool.hatch.build.targets.wheel]
|
|
28
|
+
packages = ["src/tokenspeed_flashkda"]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Capability interface for TokenSpeed FlashKDA kernels."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__version__ = "0.0.1"
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"FlashKDAUnavailableError",
|
|
9
|
+
"is_available",
|
|
10
|
+
"require",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FlashKDAUnavailableError(RuntimeError):
|
|
15
|
+
"""Raised when FlashKDA kernels are required but unavailable."""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def is_available() -> bool:
|
|
19
|
+
"""Return whether this release includes FlashKDA kernels."""
|
|
20
|
+
return False
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def require() -> None:
|
|
24
|
+
"""Require FlashKDA kernels or raise a descriptive error."""
|
|
25
|
+
raise FlashKDAUnavailableError(
|
|
26
|
+
f"tokenspeed-flashkda {__version__} does not yet include FlashKDA kernels"
|
|
27
|
+
)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Tests for the planning-stage FlashKDA capability interface."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import unittest
|
|
6
|
+
|
|
7
|
+
import tokenspeed_flashkda
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FlashKDAPackageTest(unittest.TestCase):
|
|
11
|
+
def test_reports_unavailable(self) -> None:
|
|
12
|
+
self.assertFalse(tokenspeed_flashkda.is_available())
|
|
13
|
+
|
|
14
|
+
def test_require_raises_descriptive_error(self) -> None:
|
|
15
|
+
with self.assertRaisesRegex(
|
|
16
|
+
tokenspeed_flashkda.FlashKDAUnavailableError,
|
|
17
|
+
r"tokenspeed-flashkda 0\.0\.1.*does not yet include",
|
|
18
|
+
):
|
|
19
|
+
tokenspeed_flashkda.require()
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if __name__ == "__main__":
|
|
23
|
+
unittest.main()
|