Skip to main content

Simple to use functions to emulate native functions like setInterval in JavaScript

Project description

Package name: JSutils

  • Author: Jaime Loeuf
  • License: MIT
  • Package Desciption:
    • This package contains classes/functions that implements functions like the setInterval function from JavaScript.
    • This package currently does not have any external dependencies, written only with py std. lib
    • Currently this package contains the
      1. 'setInterval' class
To call a function over and over again with a fixed interval:
from JSutils import setInterval

def HelloWorld(message):
	print('Hello world')
	print(message) # Print out / use the arguement.

setInterval(5, HelloWorld)

Project details


Download files

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

Source Distribution

JSutils-0.2.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page