Skip to main content

python + Ubersicht.app (MacOS)

Project description

Install

$ [sudo] pip install ubersicht

Classes

ubersicht.Coffee

index.coffee generator class

attr default value
command echo
html None
refresh 365 days
style None
update $(domEl).empty().append("#{output}")
ubersicht.Widget

widget generator class

method description
create() create widget
rm() remove widget (if exists)

Functions

function description
ubersicht.kill() kill Übersicht.app process
ubersicht.pid() return Übersicht.app pid
ubersicht.restart() restart Übersicht.app
ubersicht.start() open Übersicht.app
ubersicht.widgets() return list with widgets paths

Examples

generate widget

>>> import ubersicht
>>> widget = ubersicht.Widget(name="name.widget", command="echo hello world", refresh="1s",style="color: red")
>>> widget.create()
>>> widget.path
'/Users/username/Library/Application Support/Übersicht/widgets/name.widget'
$ cat ~/Library/Application Support/Übersicht/widgets/name.widget/index.coffee
command: "echo hello world"

refreshFrequency: '1s'

update: (output, domEl) ->
    $(domEl).empty().append("#{output}")

style: """
color: red
"""

Links

readme-md - README.md generator

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

ubersicht-2018.11.20.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

ubersicht-2018.11.20-py2.py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 2 Python 3

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