hayahash 0.4.2__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,9 @@
1
+ include README.md
2
+ include pyproject.toml
3
+ include setup.py
4
+ recursive-include include *.h
5
+ recursive-include native *.c
6
+ recursive-include src *.py *.pyi *.typed
7
+ recursive-include tests *.py
8
+ global-exclude *.pyc
9
+ global-exclude __pycache__
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: hayahash
3
+ Version: 0.4.2
4
+ Summary: hayahash64, a small, fast, portable 64-bit hash function; CPython C extension over the C reference
5
+ Author-email: Ville Vesilehto <ville@vesilehto.fi>
6
+ License: Unlicense
7
+ Project-URL: Homepage, https://github.com/thevilledev/hayahash
8
+ Project-URL: Repository, https://github.com/thevilledev/hayahash
9
+ Project-URL: Issues, https://github.com/thevilledev/hayahash/issues
10
+ Keywords: hash,hashing,non-cryptographic,hayahash,hayahash64
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: C
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: Implementation :: CPython
19
+ Classifier: Topic :: Software Development :: Libraries
20
+ Requires-Python: >=3.9
21
+ Description-Content-Type: text/markdown
22
+ Provides-Extra: test
23
+ Requires-Dist: pytest>=8; extra == "test"
24
+ Provides-Extra: dev
25
+ Requires-Dist: ruff==0.16.1; extra == "dev"
26
+ Requires-Dist: pyright==1.1.411; extra == "dev"
27
+ Requires-Dist: pytest>=8; extra == "dev"
28
+
29
+ # hayahash for Python
30
+
31
+ CPython C extension over [`hayahash.h`](../hayahash.h): a small, fast,
32
+ portable 64-bit non-cryptographic hash for targets with ordinary
33
+ wrapping 64×64→64 multiply.
34
+
35
+ ```python
36
+ from hayahash import hayahash64
37
+
38
+ h = hayahash64(b"hello world", 0)
39
+ h = hayahash64(data, seed=0x9E3779B97F4A7C15)
40
+ ```
41
+
42
+ Requires CPython 3.9+. Package version tracks the shared algorithm
43
+ version across every language port in this repository.
44
+
45
+ ```sh
46
+ python -m pip install -e ".[test]"
47
+ pytest
48
+ ```
49
+
50
+ The extension compiles the reference header directly (not a reimplementation).
51
+ When building from this monorepo, `../hayahash.h` is preferred; the copy
52
+ under `include/` is kept for sdists and checked against the root header in CI.
@@ -0,0 +1,24 @@
1
+ # hayahash for Python
2
+
3
+ CPython C extension over [`hayahash.h`](../hayahash.h): a small, fast,
4
+ portable 64-bit non-cryptographic hash for targets with ordinary
5
+ wrapping 64×64→64 multiply.
6
+
7
+ ```python
8
+ from hayahash import hayahash64
9
+
10
+ h = hayahash64(b"hello world", 0)
11
+ h = hayahash64(data, seed=0x9E3779B97F4A7C15)
12
+ ```
13
+
14
+ Requires CPython 3.9+. Package version tracks the shared algorithm
15
+ version across every language port in this repository.
16
+
17
+ ```sh
18
+ python -m pip install -e ".[test]"
19
+ pytest
20
+ ```
21
+
22
+ The extension compiles the reference header directly (not a reimplementation).
23
+ When building from this monorepo, `../hayahash.h` is preferred; the copy
24
+ under `include/` is kept for sdists and checked against the root header in CI.