Skip to content

Instantly share code, notes, and snippets.

View Altai-man's full-sized avatar

Altai-man

  • Edument Central Europe sro.
View GitHub Profile
from i3pystatus import Status
status = Status(standalone=True)
# Displays clock like this:
# Tue 30 Jul 11:59:46 PM KW31
# ^-- calendar week
status.register("clock",
format=" %X ",)
import random
import string
import requests
import json
def main():
host = "http://127.0.0.1:8000/api/v1"
api_key = "value_here"
filename = "filename_here"