gxhash 0.1.0__cp312-cp312-manylinux_2_34_x86_64.whl → 0.1.1__cp312-cp312-manylinux_2_34_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.
Potentially problematic release.
This version of gxhash might be problematic. Click here for more details.
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gxhash
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
Requires-Python: >=3.7
|
|
8
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
9
|
+
|
|
10
|
+
# gxhash-py
|
|
11
|
+
|
|
12
|
+
Python bindings for [GxHash](https://github.com/ogxd/gxhash), a blazingly fast and robust non-cryptographic hashing algorithm.
|
|
13
|
+
|
|
14
|
+
## Features
|
|
15
|
+
|
|
16
|
+
- **Blazingly Fast**: Minimal-overhead binding to leverage the full speed of GxHash.
|
|
17
|
+
- **Zero Python**: Pure Rust backend with zero additional Python runtime overhead.
|
|
18
|
+
- **Fine-Grained Control**: Build true multi-threaded or async hashing pipelines with GIL-free APIs.
|
|
19
|
+
- **Faster File Hashing**: Hash files directly using memory-mapped I/O via Rust — 3x faster than Python's sequential I/O.
|
|
20
|
+
- **Async-Ready**: Tokio-powered async hashing for fast and efficient concurrency.
|
|
21
|
+
- **Fully Typesafe**: Predictable, clean API with complete type safety.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install gxhash
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
Hashing bytes.
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
from gxhash import GxHash32
|
|
35
|
+
|
|
36
|
+
def main():
|
|
37
|
+
gxhash = GxHash32(seed=0)
|
|
38
|
+
result = gxhash.hash(b"Hello, world!")
|
|
39
|
+
|
|
40
|
+
if __name__ == "__main__":
|
|
41
|
+
main()
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Hashing a file.
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
from gxhash import GxHash64
|
|
48
|
+
|
|
49
|
+
def main():
|
|
50
|
+
gxhash = GxHash64(seed=0)
|
|
51
|
+
file = open("path/to/file.dmg", "rb")
|
|
52
|
+
result = gxhash.hash_file(file)
|
|
53
|
+
|
|
54
|
+
if __name__ == "__main__":
|
|
55
|
+
main()
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Hashing a file asynchronously.
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from asyncio import run
|
|
62
|
+
from gxhash import GxHash128
|
|
63
|
+
|
|
64
|
+
async def main():
|
|
65
|
+
gxhash = GxHash128(seed=0)
|
|
66
|
+
file = open("path/to/file.dmg", "rb")
|
|
67
|
+
result = await gxhash.hash_file_async(file)
|
|
68
|
+
|
|
69
|
+
if __name__ == "__main__":
|
|
70
|
+
run(main())
|
|
71
|
+
```
|
|
72
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
gxhash-0.1.
|
|
2
|
-
gxhash-0.1.
|
|
1
|
+
gxhash-0.1.1.dist-info/METADATA,sha256=zjNpu9HLpfBlwo2QKkSgGoPGJqlINq9KLP1NckRLIh0,1774
|
|
2
|
+
gxhash-0.1.1.dist-info/WHEEL,sha256=7FgAcpQES0h1xhfN9Ugve9FTUilU6sRAr1WJ5ph2cuw,108
|
|
3
3
|
gxhash/__init__.py,sha256=zLP3Jdvo2-JFQKZIocwkNCWkjYJVXauBSG3JSAW8rA0,107
|
|
4
4
|
gxhash/__init__.pyi,sha256=9HtHNSOemmwH6A1Av5GI2HsAiIf-s7JKIpC6uPzxzqM,5539
|
|
5
5
|
gxhash/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
6
|
gxhash/gxhash.cpython-312-x86_64-linux-gnu.so,sha256=YPY3zDApCX-TWBcR10PfWJTO0uXl3LN7Dfq5HQ53Q6c,642488
|
|
7
|
-
gxhash-0.1.
|
|
7
|
+
gxhash-0.1.1.dist-info/RECORD,,
|
gxhash-0.1.0.dist-info/METADATA
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: gxhash
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Classifier: Programming Language :: Rust
|
|
5
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
-
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
-
Requires-Python: >=3.7
|
|
8
|
-
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
9
|
-
|
|
10
|
-
# py-gxhash
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
uv sync --reinstall
|
|
14
|
-
```
|
|
15
|
-
|
|
File without changes
|