{ "info": { "author": "Carlos Abraham", "author_email": "abraham@abranhe.com", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "

\n\t\n\t
\n\t
\n\t
\n\t\ud835\ude3c\ud835\ude4d\ud835\ude42\n\t: Parse command line arguments made easier...\n

\n\n

\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n

\n\n\n# Install\n\n```\npip install arg\n```\n\n# Usage\n\n```\n$ python test.py ford -m mustang --year 2017 red\n```\n\n> *test.py*\n\n```py\nimport arg\n\n# argv without file name\nprint(arg())\n# => ['ford', '-m', 'mustang', '--year', '2017', 'red']\n\n# argv\nprint(arg.v())\n# => ['test.py', 'ford', '-m', 'mustang', '--year', '2017', 'red']\n\n# argc\nprint(arg.c())\n# => 7\n\n# args as string\nprint(arg.s())\n# => test.py ford -m mustang --year 2017 red\n\n# file name\nprint(arg.fileName())\n# => test.py\n\n# argument at n\nprint(arg.at(2))\n# => -m\n\n```\n\n# API\n\n### `arg()`\n\n> Return an array with the arguments without the file name\n\n**Return Type**: `list`\n\n### `.v()`\n\n> Return an array with all the arguments. (**arg.v** ~> argv *Argumet Vector*)\n\n**Return Type**: `list`\n\n### `.c()`\n\n> Return an array with all the arguments. (**arg.c** ~> argc *Argument Count*)\n\n**Return Type**: `int`\n\n### `.s()`\n\n> Return an string with all the arguments. (arg.s ~> Arguments to String)\n\n**Return Type**: `str`\n\n### `.fileName()`\n\n> Return an string with the name of the file\n\n**Return Type**: `str`\n\n### `.at(n)`\n\n> Return the value of the argument at value at **n**\n\n**Return Type**: `str`\n\n# Related\n\n- [**lupe**](https://github.com/abranhe/lupe): A better CLI Helper.\n\n# Team\n\n|[![Carlos Abraham Logo](https://avatars3.githubusercontent.com/u/21347264?s=50&v=4)](https://abranhe.com)|\n| :-: |\n| [Carlos Abraham](https://github.com/abranhe) |\n\n# License\n\n[MIT](https://github.com/abranhe/arg/blob/master/LICENSE) License \u00a9 [Carlos Abraham](https://github.com/abranhe/)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://projects.abranhe.com/arg", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "arg", "package_url": "https://pypi.org/project/arg/", "platform": "", "project_url": "https://pypi.org/project/arg/", "project_urls": { "Homepage": "https://projects.abranhe.com/arg", "Source": "https://github.com/abranhe/argsTo" }, "release_url": "https://pypi.org/project/arg/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Parse command line arguments made easier...", "version": "0.0.1" }, "last_serial": 4243500, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "24474c0219a868bc1cd618cd9972742c", "sha256": "1286f9cb1bb30ac35e40d7183743782457556eed7a0414042ec057068177dd67" }, "downloads": -1, "filename": "arg-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "24474c0219a868bc1cd618cd9972742c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2506, "upload_time": "2018-09-06T05:22:42", "url": "https://files.pythonhosted.org/packages/0a/76/f555e40afd8ddd7a2a0f1abaa8cd95d520a3a19838525ae9a6977064a1f1/arg-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c884314e163e2795a117cb81e150c6f8", "sha256": "8249547d3c27c5d2b095e450b82e0acb698448b41d85016d5b395a701580b7cf" }, "downloads": -1, "filename": "arg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c884314e163e2795a117cb81e150c6f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2561, "upload_time": "2018-09-06T05:22:43", "url": "https://files.pythonhosted.org/packages/09/1c/17c9b364125562788c4072d579be26848047f9f25b817e4f095e28fc4e49/arg-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24474c0219a868bc1cd618cd9972742c", "sha256": "1286f9cb1bb30ac35e40d7183743782457556eed7a0414042ec057068177dd67" }, "downloads": -1, "filename": "arg-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "24474c0219a868bc1cd618cd9972742c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2506, "upload_time": "2018-09-06T05:22:42", "url": "https://files.pythonhosted.org/packages/0a/76/f555e40afd8ddd7a2a0f1abaa8cd95d520a3a19838525ae9a6977064a1f1/arg-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c884314e163e2795a117cb81e150c6f8", "sha256": "8249547d3c27c5d2b095e450b82e0acb698448b41d85016d5b395a701580b7cf" }, "downloads": -1, "filename": "arg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c884314e163e2795a117cb81e150c6f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2561, "upload_time": "2018-09-06T05:22:43", "url": "https://files.pythonhosted.org/packages/09/1c/17c9b364125562788c4072d579be26848047f9f25b817e4f095e28fc4e49/arg-0.0.1.tar.gz" } ] }