remstat
StreamsLogin
Simple remote monitoring for applications and batch jobs

remstat makes it easy to check on the status of applications and data processing jobs from anywhere. Please note that it is still a work-in-progress and you should not use it for critical tasks at this time.

from math import sin, pi
from time import sleep
from requests import post

stream = "sine-wave"

for n in range(0, 10):
  # Do something that takes a while.
  sleep(5)
  # Update your remstat stream.
  post(
    f"https://remstat.us/api/streams/{stream}/messages",
    params={
      "comment": "bar" if n % 2 else "foo",
      "value": sin(3*pi*n/9)
    },
    headers={"Authorization": "<your-api-key>",}
  ).raise_for_status()
AboutPrivacy Policy