diffusion-core 0.2.2__1-cp314-cp314-win_amd64.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,66 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: diffusion-core
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: Python SDK for Diffusion - CBOR serialisation.
|
|
5
|
+
Author-email: DiffusionData Limited <contact@diffusiondata.com>
|
|
6
|
+
License: Proprietary
|
|
7
|
+
Project-URL: Homepage, https://www.diffusiondata.com/
|
|
8
|
+
Keywords: diffusion,cloud,websockets,data,delta
|
|
9
|
+
Classifier: Environment :: Other Environment
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Requires-Python: <3.15,>=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Dynamic: license-file
|
|
15
|
+
|
|
16
|
+
# Python SDK for Diffusion - Core functionality
|
|
17
|
+
|
|
18
|
+
**Pre-release version; not ready for production.**
|
|
19
|
+
|
|
20
|
+
This is the core module for the [Python SDK for Diffusion](https://pypi.org/project/diffusion/).
|
|
21
|
+
It provides core functionality for the Python client, in particular
|
|
22
|
+
the native bindings for various performance-critical functions.
|
|
23
|
+
|
|
24
|
+
## Supported Python Versions
|
|
25
|
+
|
|
26
|
+
The Diffusion Python SDK officially supports the following:
|
|
27
|
+
|
|
28
|
+
Supported Interpreters:
|
|
29
|
+
|
|
30
|
+
* CPython 3.10.0 or later
|
|
31
|
+
* CPython 3.11.0 or later
|
|
32
|
+
* CPython 3.12.0 or later
|
|
33
|
+
* CPython 3.13.0 or later
|
|
34
|
+
* CPython 3.14.0 or later
|
|
35
|
+
|
|
36
|
+
Supported Platforms:
|
|
37
|
+
|
|
38
|
+
* MacOS 10.13-11.5
|
|
39
|
+
* Windows Intel 64-bit
|
|
40
|
+
* Any Linux supported by the [ManyLinux 2010/2014](https://github.com/pypa/manylinux) binary wheel standard.
|
|
41
|
+
|
|
42
|
+
## Current Capabilities
|
|
43
|
+
|
|
44
|
+
- CBOR (the binary protocol used to communicate with the Diffusion Server):
|
|
45
|
+
- indefinite encoding (the preferred variant)
|
|
46
|
+
- definite encoding
|
|
47
|
+
- Delta encoding/decoding (used to send and receive changes in a compact, CBOR-based format)
|
|
48
|
+
|
|
49
|
+
## Test call
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
python
|
|
53
|
+
import diffusion_core.cbor as diffusion_cbor
|
|
54
|
+
obj = {"arbitary":["json", "data", 0.0, -35]}
|
|
55
|
+
diffusion_cbor.dumps(obj, indefinite=True)
|
|
56
|
+
|
|
57
|
+
import diffusion_core.delta as diffusion_delta
|
|
58
|
+
orig = b'\0x00'
|
|
59
|
+
dest = b'\0xff'
|
|
60
|
+
# diff returns an object which is convertible to bytes
|
|
61
|
+
diff = bytes(diffusion_delta.diff(orig, dest))
|
|
62
|
+
# patch also returns an object which is convertible to bytes
|
|
63
|
+
reconstructed_dest = bytes(diffusion_delta.patch(orig, diff))
|
|
64
|
+
assert(dest == reconstructed_dest)
|
|
65
|
+
|
|
66
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
diffusion_core.cp314-win_amd64.pyd,sha256=C5epQN_tyKIzhEn-w2tzV_8z8g1PRpFvkUKkPWh-Vt4,198144
|
|
2
|
+
diffusion_core-0.2.2.dist-info/licenses/LICENSE,sha256=N_R9-5l0U5HZyk0-el1LtB0nxSXttAIy78h4x_w_bgk,2218
|
|
3
|
+
diffusion_core-0.2.2.dist-info/METADATA,sha256=goZLcSM3fqfnKzA45nlW28EQcNUwlHGRTcoxxbu3XxQ,2091
|
|
4
|
+
diffusion_core-0.2.2.dist-info/WHEEL,sha256=MkUjL8epNnyeHe054O-PQ5cKrZjY2iTy2ohTe3i4HFo,110
|
|
5
|
+
diffusion_core-0.2.2.dist-info/top_level.txt,sha256=JQwk9-yw6ANLX_HhSztjDTQ3kLch4ZXdkD-hqgzjPB8,21
|
|
6
|
+
diffusion_core-0.2.2.dist-info/RECORD,,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Copyright (c) 2016 The Pybind Development Team, All rights reserved.
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
|
4
|
+
modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
7
|
+
list of conditions and the following disclaimer.
|
|
8
|
+
|
|
9
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
|
11
|
+
and/or other materials provided with the distribution.
|
|
12
|
+
|
|
13
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
14
|
+
may be used to endorse or promote products derived from this software
|
|
15
|
+
without specific prior written permission.
|
|
16
|
+
|
|
17
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
18
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
19
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
20
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
21
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
22
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
23
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
24
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
25
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
26
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
27
|
+
|
|
28
|
+
You are under no obligation whatsoever to provide any bug fixes, patches, or
|
|
29
|
+
upgrades to the features, functionality or performance of the source code
|
|
30
|
+
("Enhancements") to anyone; however, if you choose to make your Enhancements
|
|
31
|
+
available either publicly, or directly to the author of this software, without
|
|
32
|
+
imposing a separate written license agreement for such Enhancements, then you
|
|
33
|
+
hereby grant the following license: a non-exclusive, royalty-free perpetual
|
|
34
|
+
license to install, use, modify, prepare derivative works, incorporate into
|
|
35
|
+
other computer software, distribute, and sublicense such enhancements or
|
|
36
|
+
derivative works thereof, in binary and source code form.
|
|
Binary file
|