{ "info": { "author": "Nick Zarczynski", "author_email": "nick@unb.services", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: OS Independent", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only", "Programming Language :: Unix Shell", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: User Interfaces", "Topic :: Utilities" ], "description": "Clams\n=====\n\nCreate simple, nested, command-line interfaces with Clams (Command Line\nApplications Made Simple).\n\n\nInstallation\n------------\n\n.. code-block:: console\n\n pip install clams\n\n\nExample\n-------\n\nA simple example with ``hello`` and ``goodbye`` subcommands. This can be\nfound at `/demo/salutation.py `_.\n\n\n.. code-block:: python\n\n from clams import arg, Command\n\n\n salutation = Command('salutation')\n\n\n @salutation.register('hello')\n @arg('name', nargs='?') # same interface as argparse's ``add_argument``\n def handler(name):\n print 'Hello %s' % (name or 'Nick')\n\n\n @salutation.register('goodbye')\n @arg('name', nargs='?')\n def handler(name):\n print 'Goodbye %s' % (name or 'Nick')\n\n\n if __name__ == '__main__':\n salutation.init()\n salutation.parse_args()\n\n\nUsage:\n\n.. code-block:: console\n\n $ cd demo\n\n $ ./salutation.py hello\n Hello Nick\n\n\n.. code-block:: console\n\n $ ./salutation.py hello Jason\n Hello Jason\n\n $ ./salutation.py goodbye \"my friend.\"\n Goodbye my friend.\n\n\n\n\n\nDocumentation\n-------------\n\nClams documentation is `available on ReadTheDocs\n`_ and can be found locally in the\n`/docs `_ directory.\n\n\nIssue Reporting and Contact Information\n---------------------------------------\n\nIf you have any problems with this software, please take a moment to report\nthem at https://github.com/unbservices/clams or by email to nick@unb.services.\n\nIf you are a security researcher or believe you have found a security\nvulnerability in this software, please contact us by email at\nnick@unb.services.\n\n\nContributing\n------------\n\nContributions are always welcome, whether it's reporting a bug or sending a\npull request. If you want to help, but don't know where to start, email me at\nnick@unb.services and I'll try to point you in the right direction.\n\n\nCopyright and License Information\n---------------------------------\n\nCopyright (c) 2015 Nick Zarczynski\n\nThis project is licensed under the MIT license. Please see the LICENSE file\nfor more information.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/unbservices/clams", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "clams", "package_url": "https://pypi.org/project/clams/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/clams/", "project_urls": { "Homepage": "https://github.com/unbservices/clams" }, "release_url": "https://pypi.org/project/clams/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Create simple, nested, command-line interfaces.", "version": "0.0.5" }, "last_serial": 1763595, "releases": { "0.0.3": [], "0.0.4": [ { "comment_text": "", "digests": { "md5": "a3be8a9a808c54e2819c79d9df7e8c4a", "sha256": "e4f92796b55e14738b6916780f4788ed63ec307a477db0a79041bf595d99d66c" }, "downloads": -1, "filename": "clams-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "a3be8a9a808c54e2819c79d9df7e8c4a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4561, "upload_time": "2015-10-06T10:28:10", "url": "https://files.pythonhosted.org/packages/4b/24/683d82fdbcd6b8ce242a1a7f89fd41d6b94d89a0ae17da27c3f3d0c26a84/clams-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "329fde98c1447d27b6beb62bf9aaff00", "sha256": "fad86ff779adcaa5b85b37637954634e046adf9327d027007f7b0d51479bed89" }, "downloads": -1, "filename": "clams-0.0.4.tar.gz", "has_sig": false, "md5_digest": "329fde98c1447d27b6beb62bf9aaff00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4651, "upload_time": "2015-10-06T10:28:19", "url": "https://files.pythonhosted.org/packages/87/3f/e7920301b5d7e228c3fd1b5581f1e07d8420b15189cbeab52de63f640f4f/clams-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "36bf509868250dffd9082f0d252fb965", "sha256": "e33735a71ddcf698697c36d9c92ff364633895f3ae8606748b62bfa1093a050d" }, "downloads": -1, "filename": "clams-0.0.5-py2-none-any.whl", "has_sig": false, "md5_digest": "36bf509868250dffd9082f0d252fb965", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6533, "upload_time": "2015-10-11T21:56:21", "url": "https://files.pythonhosted.org/packages/06/c5/345ab5833e5b93a561b439b7c50dddd9b0f4d518d63b7e4176290e77caf0/clams-0.0.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04b8355e7a7790cda96277a01fe33c37", "sha256": "d2270c222edcbcd274670e562c61a7a05ba8ea8a99c0a777d388a93719080ec6" }, "downloads": -1, "filename": "clams-0.0.5.tar.gz", "has_sig": false, "md5_digest": "04b8355e7a7790cda96277a01fe33c37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6610, "upload_time": "2015-10-11T21:56:25", "url": "https://files.pythonhosted.org/packages/ec/05/1538e0f5a2e945789d8a076bd1cfea80c958336b589e844ee6d2ac7e64f3/clams-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "36bf509868250dffd9082f0d252fb965", "sha256": "e33735a71ddcf698697c36d9c92ff364633895f3ae8606748b62bfa1093a050d" }, "downloads": -1, "filename": "clams-0.0.5-py2-none-any.whl", "has_sig": false, "md5_digest": "36bf509868250dffd9082f0d252fb965", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6533, "upload_time": "2015-10-11T21:56:21", "url": "https://files.pythonhosted.org/packages/06/c5/345ab5833e5b93a561b439b7c50dddd9b0f4d518d63b7e4176290e77caf0/clams-0.0.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "04b8355e7a7790cda96277a01fe33c37", "sha256": "d2270c222edcbcd274670e562c61a7a05ba8ea8a99c0a777d388a93719080ec6" }, "downloads": -1, "filename": "clams-0.0.5.tar.gz", "has_sig": false, "md5_digest": "04b8355e7a7790cda96277a01fe33c37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6610, "upload_time": "2015-10-11T21:56:25", "url": "https://files.pythonhosted.org/packages/ec/05/1538e0f5a2e945789d8a076bd1cfea80c958336b589e844ee6d2ac7e64f3/clams-0.0.5.tar.gz" } ] }