{ "info": { "author": "Benjamin Staffin", "author_email": "benley@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging" ], "description": "pyglib: Simplified scripting with gflags and glog\n=================================================\n\npyglib provides a clean, consistent setup for writing commandline\nscripts and applications in Python. It makes use of python-gflags and\npython-glog, and adds an app startup helper that deals with\ninitialization boilerplate so you don't have to think about it.\n\nExample usage:\n--------------\n\n.. code:: python\n\n #!/usr/bin/env python\n\n from pyglib import app, gflags, log\n\n gflags.DEFINE_integer('bananas', 7, 'Number of bananas.')\n\n FLAGS = gflags.FLAGS\n\n\n def main(args):\n log.info('There are %s bananas.', FLAGS.bananas)\n log.debug('This will only show up if you run with --verbosity=10')\n\n\n if __name__ == __main__:\n app.run()\n\nThe above module is usable as a commandline app, complete with argument\nparsing and validation. It automatically has a few flags like ``--help``\nand ``--verbosity`` that come from gflags and glog. Any positional\narguments left over after parsing flags are passed along to the main()\nfunction.\n\nThis example module can also be imported as a library for use in another\napp. When used that way, any script that imports this one will inherit\nthe ``--bananas`` flag defined here.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/benley/pyglib", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "pyglib", "package_url": "https://pypi.org/project/pyglib/", "platform": "any", "project_url": "https://pypi.org/project/pyglib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/benley/pyglib" }, "release_url": "https://pypi.org/project/pyglib/0.1/", "requires_dist": null, "requires_python": null, "summary": "Opinionated but handy app startup wrapper.", "version": "0.1" }, "last_serial": 1637159, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "3203a34549986f0bed305823ae5fafda", "sha256": "a063c5a847f57b025fd6d569f375aaac284e4d75bc24019b818b14356254e539" }, "downloads": -1, "filename": "pyglib-0.1.tar.gz", "has_sig": true, "md5_digest": "3203a34549986f0bed305823ae5fafda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3999, "upload_time": "2015-07-16T23:36:39", "url": "https://files.pythonhosted.org/packages/e8/b2/1d8f675bf1fbb894b190315eb3aa3c4bfb164fb8417ca33028e11a3fceb7/pyglib-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3203a34549986f0bed305823ae5fafda", "sha256": "a063c5a847f57b025fd6d569f375aaac284e4d75bc24019b818b14356254e539" }, "downloads": -1, "filename": "pyglib-0.1.tar.gz", "has_sig": true, "md5_digest": "3203a34549986f0bed305823ae5fafda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3999, "upload_time": "2015-07-16T23:36:39", "url": "https://files.pythonhosted.org/packages/e8/b2/1d8f675bf1fbb894b190315eb3aa3c4bfb164fb8417ca33028e11a3fceb7/pyglib-0.1.tar.gz" } ] }