Whispool
Fast in memory word frequency count, with Rust
Installation
pip install whispool
Basic usage
We assume we have n sentences, with each sentence broken into words. And each sentence is
# each sentence could have diffrent length of words
sentence = [
['This', 'is', 'a', 'sentence'],
['This', 'is', 'another', 'sentence'],
['This', 'is', 'a', 'third', 'sentence', 'here'],
...
]
# each info list has to be IN THE SAME LENGTH
info = list([
['id1', 'category1', 'sci-fi', 'movie','Jan.'],
['id2', 'category1', 'romance', 'movie','Jan.'],
['id3', 'category2', 'sci-fi', 'tv','Feb.'],
...
])
Put in data
Now we put in data
from whispool import Whispool
from pathlib import Path
whisper_multi = Whispool(
directory=Path("test_data"), threads=2, capacity=200)
whisper_multi.consume(sentence, info)
whisper_multi.consume(sentence_batch2, info_batch2)
...
whisper_multi.consume(sentence_batchN, info_batchN)
Fetch the result data
Now we want to see the hot key words of Sci-Fi movies in January.
df = whisper_multi.final_stats(
[None, None, 'sci-fi', 'movie', 'Jan.'],
top_n=2)
Build from rust
maturin build --release
Metadata
Release files for whispool 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 12.6 MB
Release files / whispool-0.1.2-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | whispool-0.1.2-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Linux glibc 2.5+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
79e28aac9bf9b84a7a483ed2363346679b4c0559ab7b4557a4f5bb4ba0eed12d
|
|
BLAKE2b-256 checksum How to use checksums |
3d08d6f278d8676639908b355f58571c45059d146633bc3d2d57dcea70736fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | whispool-0.1.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
47fd7cec322d1d17f3e904e5ad355ca3e5bd601e84ea5bf8453f4d41ee8cb0b0
|
|
BLAKE2b-256 checksum How to use checksums |
dd405342d06b2ece759efeb68b5b6eee01e268878c25e8c8e4b2450fd74d73a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | whispool-0.1.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 759.3 kB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
388041bc1e60f1f436170fe323bd997bf60c2d70288107c4e6ae68194b0dab31
|
|
BLAKE2b-256 checksum How to use checksums |
86ca8cb1c7a11b1ff881707e36d34af92906175a29a5e824a80c990dc5c0c38d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl
| Download URL | whispool-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl |
|---|---|
| Size | 389.6 kB |
| Tags | CPython 3.10 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
38c9dea439988ff021a3648474ed71bfa786cb8f23422b177ee6ec033b449b4f
|
|
BLAKE2b-256 checksum How to use checksums |
e6b10dc9292ecbc6ff3eada07e2ecc20175efd1c0d74b62f919036f00d35683b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | whispool-0.1.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
a8e09198159eb08b8245e5412e956972b370c9b5e0d5db6e3d58430395fad627
|
|
BLAKE2b-256 checksum How to use checksums |
858e359a64e0eb1511afad33ee66b170ec9af960a6d9ed58d9b4751608d59e8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | whispool-0.1.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 759.1 kB |
| Tags | CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1552a0a7393abad0d6f5fd6a2b44da1abb4d8aca5665a471385ec5aaa7f761f3
|
|
BLAKE2b-256 checksum How to use checksums |
d96368e08b7e9a90729faa89f7e59070b070c51180aa9b835c268b6a213ac8bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
| Download URL | whispool-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl |
|---|---|
| Size | 389.5 kB |
| Tags | CPython 3.9 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
d6d9e29d5dc4c1537498c50aeec30a693bcf3d063fc399f81f52de31cdb0efa1
|
|
BLAKE2b-256 checksum How to use checksums |
ee944fa0518d7424b0e9bf81459afb241f87ee172313ae2be5e28028b7e114b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | whispool-0.1.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
e9567dde86050b133e9321418226cf022ae299d73c9311eb7c7d32f2f08ec381
|
|
BLAKE2b-256 checksum How to use checksums |
aacebcf5c7919d2c9da869e9a068a5fd46f925fa31915a2e20225dafe819be04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | whispool-0.1.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 761.0 kB |
| Tags | CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
220ad8067a440bac1f86aea17fc0d5512b0d6b68950d021bcd26c7728866875d
|
|
BLAKE2b-256 checksum How to use checksums |
35be13aa9b02534614a1d687f7395b7a55e97975ec55934affd87721f3247ff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
| Download URL | whispool-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl |
|---|---|
| Size | 390.4 kB |
| Tags | CPython 3.8 macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
bb912558e7cd616d444ca7ce3b5a53b82b24dc07984f7f7d2b7a545207d487ec
|
|
BLAKE2b-256 checksum How to use checksums |
9b1b23516b419725cf963f736577b8e8535875bd22472dd2e31191d55e1f3219
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | whispool-0.1.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
f06891f3a4894f09da60c68ccb035e80e526e77d0e5b86d6ec0c33f6e3b58024
|
|
BLAKE2b-256 checksum How to use checksums |
8330c3e390264609355911372fd47b70170bc7aa99882b1a7e0d5a00244777bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | whispool-0.1.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 761.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ed285c6e23f5bae075be47a562a291d8f40bb109fc71b1aaaa4bf7f24013b992
|
|
BLAKE2b-256 checksum How to use checksums |
5926406156eea3c45273af559d17982a87139af1718a498633e47ece92f01d8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
| Download URL | whispool-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 390.5 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
a58df3ff9d44e926555feeb1a065c331c6cafeac5021264bf3b1b547fb5e3391
|
|
BLAKE2b-256 checksum How to use checksums |
ab8c74274ee06da48856621bf3d7236c7d92bd402afeb75675300f9d8ebc2ddb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
| Download URL | whispool-0.1.2-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
f3cd2e124188c2e0d6aab190906fab38048b1b558b757e80a64f57c819271bd5
|
|
BLAKE2b-256 checksum How to use checksums |
83c61e4566bcc985cb9a06a9883ea8abb771dfa519fd4c68947ae6c642f15fa8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp36-cp36m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
| Download URL | whispool-0.1.2-cp36-cp36m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl |
|---|---|
| Size | 754.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f92fbe6d0224c8c3085d8bb4f7838e3c7b8a9c079706e511892290d228d84db5
|
|
BLAKE2b-256 checksum How to use checksums |
005c36f460f9eb272f9980c4a146a9c31e4c8183642ecf2b4c1743add6a0653a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Release files / whispool-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl
| Download URL | whispool-0.1.2-cp36-cp36m-macosx_10_7_x86_64.whl |
|---|---|
| Size | 386.9 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc macOS 10.7+ x86-64 |
|
SHA-256 checksum How to use checksums |
d67e16ddc99881ab2c9052d0870d7355ec81d22908c119315c09c5377774c309
|
|
BLAKE2b-256 checksum How to use checksums |
cde425a90a85918300e525aceb20d5f9997ddef7a7abb79e760d28a9dfde557d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.15
|
Security for whispool 0.1.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.