{ "info": { "author": "Andy Gayton", "author_email": "andy@thecablelounge.com", "bugtrack_url": null, "classifiers": [], "description": "lastopt\n=======\n\nlastopt is a Python utility for quickly creating command line utilities using\nfunction and class introspection.\n\nExample\n-------\n\n```python\n#!/usr/bin/env python\n\nimport lastopt\n\ndef install(package, dependencies=False):\n print \"install %s, with dependencies: %s\" % (\n package, dependencies and 'yes' or 'no')\n\nclass Env(object):\n def __init__(self, name):\n self.name = name\n\n def start(self, package):\n print \"starting %s.%s\" % (self.name, package)\n\nlastopt.main([install, Env])\n```\n\n$ ./command\n\n Usage: ./command COMMAND [ARGS]\n\n The available commands are:\n env\n install\n\n$ ./command install --help\n\n Usage: ./command install [options]\n\n Options:\n -h, --help show this help message and exit\n --nodependencies unset --dependencies\n -d, --dependencies (default: False)\n\n$ ./command install redis -d\n\n install redis, with dependencies: yes\n\n$ ./command env production\n\n Usage: ./command env production COMMAND [ARGS]\n\n The available commands are:\n start\n\n$ ./command env production start frontend\n\n starting production.frontend\n\nHistory\n-------\n\nlastopt is directly inspired by Simon Willison's clever introspection hack from\na few years back: https://github.com/simonw/optfunc", "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/cablehead/lastopt", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "lastopt", "package_url": "https://pypi.org/project/lastopt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lastopt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/cablehead/lastopt" }, "release_url": "https://pypi.org/project/lastopt/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "lastopt is a Python utility for quickly creating command line utilities using", "version": "0.0.2" }, "last_serial": 1099254, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "705f443e3ebabfb9a08db99a28f9ee50", "sha256": "ce0b5799ae965cc10767b47a50633725fb91e197f2c127eabea33ce0579ea43b" }, "downloads": -1, "filename": "lastopt-0.0.1.tar.gz", "has_sig": false, "md5_digest": "705f443e3ebabfb9a08db99a28f9ee50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3711, "upload_time": "2014-05-21T01:47:51", "url": "https://files.pythonhosted.org/packages/12/f7/6afe41201ab30427f9c16b9ad43845b2f9e43dc4677880920911d352048b/lastopt-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f78393c73c86b7e6b1bab6b69434ae10", "sha256": "1421e940c67aeb8bf25153fa591e9e37bc0f40d0aba4cbb3d5725df63c67635b" }, "downloads": -1, "filename": "lastopt-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f78393c73c86b7e6b1bab6b69434ae10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4626, "upload_time": "2014-05-21T01:54:25", "url": "https://files.pythonhosted.org/packages/a7/7b/9c5b602e8c607afac5a061eab99684e89c5d163e7081c208c2f2a7139ea8/lastopt-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f78393c73c86b7e6b1bab6b69434ae10", "sha256": "1421e940c67aeb8bf25153fa591e9e37bc0f40d0aba4cbb3d5725df63c67635b" }, "downloads": -1, "filename": "lastopt-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f78393c73c86b7e6b1bab6b69434ae10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4626, "upload_time": "2014-05-21T01:54:25", "url": "https://files.pythonhosted.org/packages/a7/7b/9c5b602e8c607afac5a061eab99684e89c5d163e7081c208c2f2a7139ea8/lastopt-0.0.2.tar.gz" } ] }