==============
This is a minimalistic
`Count-min Sketch <http://en.wikipedia.org/wiki/Count%E2%80%93min_sketch>`_
for Python, featuring some cool things like:
- Being able to count anything that is hash-able by python (numbers, strings, tuples, inmutables, duck-typeds, etc.).
- Tests
- No dependencies
- No foreign languages, just 100% python.
This software was written by Rafael Carrascosa, you can contact me at
rafacarrascosa on gmail.
Usage
=====
.. code-block:: python
from countminsketch import CountMinSketch
sketch = CountMinSketch(1000, 10) # table size=1000, hash functions=10
sketch.add("oh yeah")
sketch.add(tuple())
sketch.add(1, value=123)
print sketch["oh yeah"] # prints 1
print sketch[tuple()] # prints 1
print sketch[1] # prints 123
print sketch["non-existent"] # prints 0
Install
=======
CountMinSketch is on PyPI, so you can install it with
pip install countminsketch
License
=======
BSD 3-clause, see the LICENSE file.
Metadata
Release files for countminsketch 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| countminsketch-0.2.tar.gz | 2.8 kB | Without provenance | Details for countminsketch-0.2.tar.gz |
Release files / countminsketch-0.2.tar.gz
| Download URL | countminsketch-0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df99c3e890f52382b63c8c0ee7b122375253d6d71ea4f30c7f9cd781be6b258a
|
|
BLAKE2b-256 checksum How to use checksums |
9999900137829a489f1e0855d5c6c6813c109a5281fee7665b6e740f7cdee6bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for countminsketch 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.