pact-python-ffi 0.4.22.0__cp39-abi3-manylinux_2_24_x86_64.manylinux_2_28_x86_64.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.
@@ -0,0 +1,21 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
3
+
4
+ __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
5
+
6
+ TYPE_CHECKING = False
7
+ if TYPE_CHECKING:
8
+ from typing import Tuple
9
+ from typing import Union
10
+
11
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
12
+ else:
13
+ VERSION_TUPLE = object
14
+
15
+ version: str
16
+ __version__: str
17
+ __version_tuple__: VERSION_TUPLE
18
+ version_tuple: VERSION_TUPLE
19
+
20
+ __version__ = version = '0.4.22.0'
21
+ __version_tuple__ = version_tuple = (0, 4, 22, 0)
pact_ffi/ffi.abi3.so ADDED
Binary file
pact_ffi/ffi.pyi ADDED
@@ -0,0 +1,6 @@
1
+ import ctypes
2
+
3
+ import cffi
4
+
5
+ lib: ctypes.CDLL
6
+ ffi: cffi.FFI
Binary file
pact_ffi/py.typed ADDED
File without changes
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: pact-python-ffi
3
+ Version: 0.4.22.0
4
+ Summary: Python bindings for the Pact FFI library
5
+ Project-URL: Bug Tracker, https://github.com/pact-foundation/pact-python/issues
6
+ Project-URL: Changelog, https://github.com/pact-foundation/pact-python/blob/main/pact-python-ffi/CHANGELOG.md
7
+ Project-URL: Documentation, https://docs.pact.io
8
+ Project-URL: Homepage, https://pact.io
9
+ Project-URL: Repository, https://github.com/pact-foundation/pact-python
10
+ Author-email: Joshua Ellis <josh@jpellis.me>
11
+ Maintainer-email: Joshua Ellis <josh@jpellis.me>
12
+ License-Expression: MIT
13
+ License-File: LICENSE
14
+ Keywords: contract-testing,ffi,pact,pact-python
15
+ Classifier: Development Status :: 5 - Production/Stable
16
+ Classifier: Environment :: Console
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: License :: OSI Approved :: MIT License
19
+ Classifier: Operating System :: MacOS :: MacOS X
20
+ Classifier: Operating System :: Microsoft :: Windows
21
+ Classifier: Operating System :: POSIX :: Linux
22
+ Classifier: Programming Language :: Python
23
+ Classifier: Programming Language :: Python :: 3 :: Only
24
+ Classifier: Programming Language :: Python :: 3.9
25
+ Classifier: Programming Language :: Python :: 3.10
26
+ Classifier: Programming Language :: Python :: 3.11
27
+ Classifier: Programming Language :: Python :: 3.12
28
+ Classifier: Programming Language :: Python :: 3.13
29
+ Classifier: Topic :: Software Development :: Testing
30
+ Requires-Python: >=3.9
31
+ Requires-Dist: cffi~=1.0
32
+ Provides-Extra: devel
33
+ Requires-Dist: mypy==1.17.0; extra == 'devel'
34
+ Requires-Dist: pytest-cov~=6.0; extra == 'devel'
35
+ Requires-Dist: pytest-mock~=3.0; extra == 'devel'
36
+ Requires-Dist: pytest~=8.0; extra == 'devel'
37
+ Requires-Dist: ruff==0.12.4; extra == 'devel'
38
+ Provides-Extra: devel-test
39
+ Requires-Dist: pytest-cov~=6.0; extra == 'devel-test'
40
+ Requires-Dist: pytest-mock~=3.0; extra == 'devel-test'
41
+ Requires-Dist: pytest~=8.0; extra == 'devel-test'
42
+ Provides-Extra: devel-types
43
+ Requires-Dist: mypy==1.17.0; extra == 'devel-types'
44
+ Description-Content-Type: text/markdown
45
+
46
+ # Pact Python FFI
47
+
48
+ > [!NOTE]
49
+ >
50
+ > This package provides direct access to the Pact Foreign Function Interface (FFI) with minimal abstraction. It is intended for advanced users who need low-level control over Pact operations in Python.
51
+
52
+ ---
53
+
54
+ This sub-package is part of the [Pact Python](https://github.com/pact-foundation/pact-python) project and exists to expose the [Pact FFI](https://github.com/pact-foundation/pact-reference) directly to Python. If you are looking for the main Pact Python library for contract testing, please see the [root package](https://github.com/pact-foundation/pact-python#pact-python).
55
+
56
+ ## Overview
57
+
58
+ - The module provides a thin Python wrapper around the Pact FFI (C API).
59
+ - Most classes correspond directly to structs from the FFI, and are designed to wrap the underlying C pointers.
60
+ - Many classes implement the `__del__` method to ensure memory allocated by the Rust library is freed when the Python object is destroyed, preventing memory leaks.
61
+ - Functions from the FFI are exposed directly: if a function `foo` exists in the FFI, it is accessible as `pact_ffi.foo(...)`.
62
+ - The API is not guaranteed to be stable and is intended for use by advanced users or for building higher-level libraries. For typical contract testing, use the main Pact Python client library.
63
+
64
+ ## Installation
65
+
66
+ You can install this package via pip:
67
+
68
+ ```console
69
+ pip install pact-python-ffi
70
+ ```
71
+
72
+ ## Usage
73
+
74
+ This package exposes the raw FFI bindings for Pact. It is suitable for advanced use cases, custom integrations, or for building higher-level libraries. For typical contract testing, prefer using the main Pact Python library.
75
+
76
+ ## Contributing
77
+
78
+ As this is a relatively thin wrapper around the Pact FFI, the code is unlikely to change frequently; however, contributions to improve the coverage of the FFI bindings or to improve existing functionality are welcome. See the [main contributing guide](https://github.com/pact-foundation/pact-python/blob/main/CONTRIBUTING.md) for details.
79
+
80
+ To release a new version of `pact-python-ffi`, simply push a tag in the format `pact-python-ffi/x.y.z.w`. This will automatically trigger a release process, pulling in version `x.y.z` of the underlying Pact FFI. Before creating and pushing such a tag, please ensure that the Python wrapper has been updated to reflect any changes or updates in the corresponding FFI version.
81
+
82
+ Higher-level abstractions or utilities should be implemented in separate libraries (such as [`pact-python`](https://github.com/pact-foundation/pact-python)).
83
+
84
+ ---
85
+
86
+ For questions or support, please visit the [Pact Foundation Slack](https://slack.pact.io) or [GitHub Discussions](https://github.com/pact-foundation/pact-python/discussions)
87
+
88
+ ---
@@ -0,0 +1,11 @@
1
+ pact_ffi/__init__.py,sha256=KA9tCouAVCJL8LINTjd4tdHjqw56k1q2OkBM8HNWHhE,235418
2
+ pact_ffi/__version__.py,sha256=UxCMs7eOnEK6mVnGUnoiMB3xJ7xGtO2aNiQJX-ajbzg,518
3
+ pact_ffi/ffi.abi3.so,sha256=bIXFAgZwMCz0DJ9RtfdjkSSRH2egiSisnO4LnYGy3i0,1169273
4
+ pact_ffi/ffi.pyi,sha256=02zc7PLxl_l3-x-oR7MQtDNe8e9a2DkBvpvxSq73m7c,59
5
+ pact_ffi/libpact_ffi.so,sha256=6MQOPV7v4pfnLnU1frC12fyhOjV3LMcToqs9gtf8X1I,18582496
6
+ pact_ffi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ pact_python_ffi.libs/libpact_ffi-e8c40e3d.so,sha256=R-zRNDdaCY-s9OZLYjML-HvC90N1FnFlB3Zd0lCblSQ,18598169
8
+ pact_python_ffi-0.4.22.0.dist-info/METADATA,sha256=zAP2sC-X0Bpp3kCZkI07bWYjS1R_KvYLYMyVovaF1ao,4724
9
+ pact_python_ffi-0.4.22.0.dist-info/WHEEL,sha256=kgCGBWYVd9hPr6G3wrQrnKRi5lD3gUr2LlfJBkFXb5Y,144
10
+ pact_python_ffi-0.4.22.0.dist-info/RECORD,,
11
+ pact_python_ffi-0.4.22.0.dist-info/licenses/LICENSE,sha256=uTxhowVHKIpgbNm66VjRYAGhAmkXsZspSG_Qo8e6HhI,1072
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: cp39-abi3-manylinux_2_28_x86_64
5
+ Tag: cp39-abi3-manylinux_2_24_x86_64
6
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Pact Foundation
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.