Skip to main content

Package to manage functions call rate

Project description

# Install

python3 install

# Usage

``` python
import threading
from callrate import call_rate
import time

@call_rate(7, 10, False)
def test_print(i):
print("Thread -> {}".format(i))

def test_thread(i):
while True:

def main():
threads = []
for i in range(10):
threads.append(threading.Thread(target=test_thread, args=(i, )))

for thread in threads:

if __name__ == "__main__":

# Warning
Note that the `call_rate` and `CallRate` is thread safe (not process safe)

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
callrate-2018.4.tar.gz (1.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page