Skip to main content

tweetlimiter

Package to estimate the rate of a message stream and to limit the number of message.

Quickstart

Install the package using pip

$ pip install tweetlimiter

Usage:

import tweetlimiter as tl

limiter = tl.Limiter(target=1, damp_rate=0.1)

for msg in stream():  # loop over messages
    decision = limiter.filter(msg.time, msg.followers)
    if decision:
        pass  # process

Metadata

Release files for tweetlimiter 0.1.0

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

Source distribution (sdist)

Source distribution for tweetlimiter 0.1.0
File Size Uploaded
tweetlimiter-0.1.0.tar.gz 3.7 kB Details

Release files / tweetlimiter-0.1.0.tar.gz

Download URL tweetlimiter-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
33c8a273ff33d0305082878366ce8f67be89682f1874d2f9a6bf6e234e5076b1
BLAKE2b-256 checksum
How to use checksums
6b4fb8b533734cf92767d61af4d64bfc97b236344e0c2d5061ad1845e61d49ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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