{ "info": { "author": "Thorsten Weimann", "author_email": "weimann@ymail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Environment :: X11 Applications", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", "Programming Language :: Python :: 3", "Topic :: Desktop Environment :: Window Managers", "Topic :: Utilities" ], "description": "======================\nStatusbar for spectrwm\n======================\n\nspecbar.py is a small library to use with the spectrwm_ window manager.\nIt has some builtin info functions and is easy extensible using the\nPython decorator syntax.\n\n.. _spectrwm: http://www.spectrwm.org\n\nInstallation\n============\n\nThe simplest way to install specbar is to use pip::\n\n pip install specbar\n\nAnother way is to download the source and copy specbar.py somewhere in\nyour PYTHONPATH.\n\nUsage\n=====\n\nExample::\n\n # Extending with own info function\n >>> import specbar\n >>> @specbar.info_collector(42)\n ... def get_some_info(num):\n ... return dict(square=num**2)\n ...\n >>> specbar.loop(format_str='Square info: {square}')\n Square info: 1764\n Shutting down specbar...\n >>>\n\nThat's it now your own function get's called every 5 (default) seconds and\nthe format string is displayed in the statusbar. The loop (when testing) can\neasily killed by pressing CTRL+C.\n\nUsing builtin functions::\n\n >>> import specbar\n >>> specbar.register(specbar.get_gmail_count, 'myuser', 'mysecret')\n >>> specbar.loop('New Mails: {gmail_count:<3}', 15)\n\nNow every 15 seconds your Gmail account is checked for new mail and the\nresult is displayed.\n\nEvery info function must return a dict. All dicts where merged in a\ndefaultdict to have no exception on missing keys. See the source of\nspecbar.py for the returned keys of the builtin functions.\n\nIn the source distribution an example.py file is included which shows\nthe usage of specbar.py.\n\nIntegration with spectrwm\n=========================\n\nCreate your own script or edit example.py to your needs, put it somewhere\non your PATH, make it executable (chmod +x) and add it to ~/.spectrwm.conf\nas your bar_action.\n\nMisc\n====\n\nSpecbar is mainly written for spectrwm on\n`Arch Linux `_ where Python 3 is the\nstandard Python. I think it can be used with any other window manager which\nreads from stdin and with any other (posix) os which has Python 3 available.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/whitie/python-specbar", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "python-specbar", "package_url": "https://pypi.org/project/python-specbar/", "platform": "posix", "project_url": "https://pypi.org/project/python-specbar/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/whitie/python-specbar" }, "release_url": "https://pypi.org/project/python-specbar/0.3/", "requires_dist": null, "requires_python": null, "summary": "Simple module to build a statusbar for spectrwm.", "version": "0.3" }, "last_serial": 798090, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0117f4d114d725989a00ccc1e790b18c", "sha256": "4e844c436fd5bdc25aab507061e7dc67ad886504cbcd088f54670bce1cbc01fb" }, "downloads": -1, "filename": "python-specbar-0.1.tar.gz", "has_sig": false, "md5_digest": "0117f4d114d725989a00ccc1e790b18c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3939, "upload_time": "2012-10-31T15:21:24", "url": "https://files.pythonhosted.org/packages/4e/2a/5d17e89c76330dce9addfbf8a2b63f5eee84f911b1598b5a2eefb8422e81/python-specbar-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d0db9aad9ad5c338e4e0f839d677ebcc", "sha256": "469972fa530a72713a3ca762d5e5253ebed4ec41db918ffdb8269735739ae7c2" }, "downloads": -1, "filename": "python-specbar-0.2.tar.gz", "has_sig": false, "md5_digest": "d0db9aad9ad5c338e4e0f839d677ebcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3972, "upload_time": "2012-10-31T20:18:38", "url": "https://files.pythonhosted.org/packages/e7/dd/c4b13b4b6f9f8a2af1672f83f8b037c627b4d5dcab2ba6781c7635cba045/python-specbar-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5687301a7e8ca5867a83119666c2070c", "sha256": "2e7eb8969f699d356a26252bf326e1eb08995e8e9b783a8f0de920959c7fdb23" }, "downloads": -1, "filename": "python-specbar-0.3.tar.gz", "has_sig": false, "md5_digest": "5687301a7e8ca5867a83119666c2070c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4545, "upload_time": "2012-11-02T08:00:03", "url": "https://files.pythonhosted.org/packages/92/8a/ea3f7f95f3857a13662aa6dd98dcae6b313135b187d49b7464635782c5f5/python-specbar-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5687301a7e8ca5867a83119666c2070c", "sha256": "2e7eb8969f699d356a26252bf326e1eb08995e8e9b783a8f0de920959c7fdb23" }, "downloads": -1, "filename": "python-specbar-0.3.tar.gz", "has_sig": false, "md5_digest": "5687301a7e8ca5867a83119666c2070c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4545, "upload_time": "2012-11-02T08:00:03", "url": "https://files.pythonhosted.org/packages/92/8a/ea3f7f95f3857a13662aa6dd98dcae6b313135b187d49b7464635782c5f5/python-specbar-0.3.tar.gz" } ] }