Skip to main content
murmurhash is a fast hash function ::
>>> import featurehash
    >>> featurehash.hash("abc")  #return the hashcode of the string "abc"
            -1277324294
    >>> featurehash.transform_feature("abc")   #return the code and the sign of hashcode;the code is equal to "hashcode mod 8388608(2^23) + 1"
            (2255879, -1.0)
    >>> featurehash.transform_features(["abc","edf","efd","123","efd"]) #pass a sequence to the function,return the sorted unique feature code.
            [124, 2255879, 3759816, 8023169]
    >>> featurehash.transform_features(["abc","edf","efd","123","efd"],8388607) #pass a sequence and upper_bound;upper_bound default 8388608(2^23)
    [124, 2256031, 3760024, 8023393]
    >>> featurehash.transform_features(["abc","edf","efd","123","efd"],8388607,0) #pass a sequence , upper_bound and min value; min value default 1;
    [123, 2256030, 3760023, 8023392]
    >>> featurehash.transform_features(["abc","edf","efd","123","efd"],8388607,1,1) #pass a sequence , upper_bound, min value and seed; seed value default 0;the same application must must the same seed,ensure the consistent value.
    [124, 661165, 3231265, 8317658]

Modified by jianghuachinacom@163.com

zsp windows,linux python lib

Metadata

Release files for featurehash 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for featurehash 1.0.2
File Size Uploaded Provenance Actions
featurehash-1.0.2.tar.gz 3.6 kB Without provenance Details for featurehash-1.0.2.tar.gz

Release files / featurehash-1.0.2.tar.gz

Download URL featurehash-1.0.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
42ef31e52d9f45468197c1664315ddb7e1284050ee5fa112825dec6c721d693e
BLAKE2b-256 checksum
How to use checksums
2a20450759e9cac696e191b2cf4abcf1e31c86b4e9b1ee9ccb4bddb6a91baa7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for featurehash 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page