necoherence-http-adapter 0.2.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.
@@ -0,0 +1,58 @@
1
+ # SPDX-FileCopyrightText: 2026 barineco
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ __pycache__/
5
+ *.egg-info/
6
+ .venv/
7
+ lean/.lake
8
+ rust/target/
9
+ typescript/node_modules/
10
+ typescript/dist/
11
+ typescript/.package-consumer/
12
+ typescript/*.tgz
13
+ python/dist/
14
+ python-http-adapter/dist/
15
+ python-http-adapter/.clean-install*/
16
+ python-http-adapter/.pytest_cache/
17
+ python-http-adapter/.mypy_cache/
18
+ typescript-http-adapter/node_modules/
19
+ typescript-http-adapter/dist/
20
+ typescript-http-adapter/*.tgz
21
+ typescript-http-adapter/.package-consumer/
22
+ java-http-adapter/build/
23
+ gleam-http-adapter/build
24
+ gleam-http-adapter/*.tar
25
+ python/.clean-install*/
26
+ python/.verify-*/
27
+ java/build/
28
+ java/lib/
29
+ gleam/build
30
+ gleam/*.tar
31
+ tools/lean/.lake
32
+ tools/rust/target/
33
+ tools/gleam/build
34
+ tools/gleam/*.tar
35
+ tools/typescript/node_modules/
36
+ tools/typescript/dist/
37
+ tools/typescript/.package-consumer/
38
+ tools/typescript/*.tgz
39
+ tools/python/dist/
40
+ tools/python/.clean-install*/
41
+ tools/python/.verify-*/
42
+ tools/python/.pytest_cache/
43
+ tools/python/.mypy_cache/
44
+ tools/java/build/
45
+ tools/java/lib/
46
+ comparison/network_effect/gleam_driver/build
47
+ comparison/network_effect/java_driver/classes/
48
+ comparison/network_effect/rust_driver/target/
49
+ comparison/declaration/gleam_driver/build
50
+ comparison/declaration/rust_driver/target
51
+ comparison/shared_operations/gleam_driver/build
52
+ comparison/shared_operations/lean_driver/.lake
53
+ comparison/shared_operations/rust_driver/target/
54
+ residual-coherence/dist/
55
+ residual-coherence/*.egg-info/
56
+ residual-coherence/.clean-install*/
57
+ residual-coherence/.pytest_cache/
58
+ residual-coherence/.mypy_cache/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 barineco
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,11 @@
1
+ Metadata-Version: 2.5
2
+ Name: necoherence-http-adapter
3
+ Version: 0.2.0
4
+ Summary: HTTP host adapter for Necoherence
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Requires-Python: >=3.12
8
+ Requires-Dist: necoherence==0.2.0
9
+ Provides-Extra: dev
10
+ Requires-Dist: mypy; extra == 'dev'
11
+ Requires-Dist: pytest; extra == 'dev'
@@ -0,0 +1,32 @@
1
+ # Necoherence HTTP adapter for Python
2
+
3
+ [Project overview](https://github.com/barineco/necoherence/blob/publish/README.md) | [日本語](README-ja.md)
4
+
5
+ This optional MIT package executes Necoherence network-effect commands using the Python standard library.
6
+ It requires Python 3.12 or later and `necoherence==0.2.0`.
7
+ The core package contains the network-effect ledger and accepts caller-supplied observations.
8
+
9
+ Install this package when the application executes HTTP requests:
10
+
11
+ ```bash
12
+ python -m pip install necoherence-http-adapter==0.2.0
13
+ ```
14
+
15
+ Import the adapter explicitly:
16
+
17
+ ```python
18
+ from necoherence_http_adapter import HttpHostAdapter
19
+
20
+ adapter = HttpHostAdapter()
21
+ ```
22
+
23
+ From this source directory, install the core and test dependencies before running the tests:
24
+
25
+ ```bash
26
+ python -m pip install ../python '.[dev]'
27
+ python -m pytest -q
28
+ python -m mypy src tests
29
+ python -m build
30
+ ```
31
+
32
+ [MIT License](LICENSE)
@@ -0,0 +1,27 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "necoherence-http-adapter"
7
+ version = "0.2.0"
8
+ description = "HTTP host adapter for Necoherence"
9
+ license = "MIT"
10
+ license-files = ["LICENSE"]
11
+ requires-python = ">=3.12"
12
+ dependencies = ["necoherence==0.2.0"]
13
+
14
+ [project.optional-dependencies]
15
+ dev = ["pytest", "mypy"]
16
+
17
+ [tool.hatch.build.targets.wheel]
18
+ packages = ["src/necoherence_http_adapter"]
19
+
20
+ [tool.hatch.build.targets.sdist]
21
+ include = ["src", "tests", "README.md", "LICENSE", "pyproject.toml"]
22
+
23
+ [tool.pytest.ini_options]
24
+ pythonpath = ["src", "../python/src"]
25
+
26
+ [tool.mypy]
27
+ mypy_path = "src:../python/src"