chainspotter
Redis Streams wrapper to track, store and query user-item interactions history by item count or time.
Usage example
Producer:
import redis
import chainspotter
@chainspotter.to_chain('user_history', redis.Redis(), limit=20)
def show_item_to_user(user_id, item_id):
print('item_id')
for i in range(5):
show_item_to_user(2, i)
Consumer:
import redis
import chainspotter
chain = chainspotter.ClickChain('user_history', redis.Redis())
chain.last_n_pcs(2)
> [0, 1, 2, 3, 4]
Metadata
Release files for chainspotter 0.0.25
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chainspotter-0.0.25.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chainspotter-0.0.25-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / chainspotter-0.0.25.tar.gz
| Download URL | chainspotter-0.0.25.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04a6927253bdabf2db55a5ccb63877ff8818303b270dc90c802a075c31c45b94
|
|
BLAKE2b-256 checksum How to use checksums |
7d689f9ae7f71428c7914060ec43d4954408dd7e6974ad35c0ee89218a66a82c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.8
|
Release files / chainspotter-0.0.25-py3-none-any.whl
| Download URL | chainspotter-0.0.25-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e0a8c40306c3c275f1e7049899164a8a482b6b722ab5958e13bd065231db6f3
|
|
BLAKE2b-256 checksum How to use checksums |
9d8a9e79b266423d4f5bcb4b59abf809ebbe09c1c04ba117954a5d5a60262970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.8
|