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 Provenance
tweetlimiter-0.1.0.tar.gz 3.7 kB Without provenance 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

Security for tweetlimiter 0.1.0

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

0.1.0 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