{ "info": { "author": "hj24", "author_email": "mambahj24@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n# count-line\n\n## Usage\nA cross-platform command line tool to count the amount of lines and files under current directory.\n\n## Installation\nYou can install, upgrade, uninstall count-line with these commands(without $):\n```\n$ pip install count-line\n$ pip install --upgrade count-line\n$ pip unstall count-line\n```\n\n## Help\n```\nusage: line.py [-h] [-s SUFFIX | -f FILTER] [-d]\n\ncount the amount of lines and files under the current directory\n\noptional arguments:\n -h, --help show this help message and exit\n -s SUFFIX, --suffix SUFFIX\n count by suffix file name, format: .suffix1.suffix2...\n e.g: .cpp.py (without space)\n -f FILTER, --filter FILTER\n count without filter name, format: .suffix1.suffix2...\n e.g: .cpp.py (without space)\n -d, --detail show detail results\n```\n\n## Examples\n1. Count all files under the current directory:\n```\n$ line\nSearch in /Users/macbook/Desktop/Examples1/\nfile count: 4\nline count: 373\n```\n2. Count all files under the current directory with detail results:\n```\n$ line -d\nSearch in /Users/macbook/Desktop/Examples2/\n\n\t\t========================================\n\t\t\u6587\u4ef6\u540e\u7f00\u540d\t\u6587\u4ef6\u6570\t\t\u603b\u884c\u6570\n\n\n\t\t .py\t\t5\t\t397\n\n\n\t\t .cpp\t\t240\t\t11346\n\n\n\t\t\u603b\u6587\u4ef6\u6570: 245\t\u603b\u884c\u6570: 11743\n\t\t========================================\n\n\n```\n3. Count specified files under the current directory, using -s to pass suffix as parameters, if there are more than one parameter, don't have space, for example, count cpp files and python files:\n```\n$ line -s .cpp.py\nSearch in /Users/macbook/Desktop/Examples3/\nfile count: 3\nline count: 243\n$ line -s .cpp.py -d\nSearch in /Users/macbook/Desktop/Examples3/\n\n\t\t========================================\n\t\t\u6587\u4ef6\u540e\u7f00\u540d\t\u6587\u4ef6\u6570\t\t\u603b\u884c\u6570\n\n\n\t\t .py\t\t5\t\t397\n\n\n\t\t .cpp\t\t240\t\t11346\n\n\n\t\t\u603b\u6587\u4ef6\u6570: 245\t\u603b\u884c\u6570: 11743\n\t\t========================================\n\n```\n4. Count files under the current directory with filter:\n```\n$ line -f .py -d\nSearch in /Users/macbook/Desktop/Examples4/\n\n\t\t========================================\n\t\t\u6587\u4ef6\u540e\u7f00\u540d\t\u6587\u4ef6\u6570\t\t\u603b\u884c\u6570\n\n\n\t\t .cpp\t\t240\t\t11346\n\n\n\t\t\u603b\u6587\u4ef6\u6570: 240\t\u603b\u884c\u6570: 11528\n\t\t========================================\n$ line -d\nSearch in /Users/macbook/Desktop/Examples4/\n\n\t\t========================================\n\t\t\u6587\u4ef6\u540e\u7f00\u540d\t\u6587\u4ef6\u6570\t\t\u603b\u884c\u6570\n\n\n\t\t .py\t\t5\t\t397\n\n\n\t\t .cpp\t\t240\t\t11346\n\n\n\t\t\u603b\u6587\u4ef6\u6570: 245\t\u603b\u884c\u6570: 11743\n\t\t========================================\n\n\n```\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hj24/count-line", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "count-line", "package_url": "https://pypi.org/project/count-line/", "platform": "", "project_url": "https://pypi.org/project/count-line/", "project_urls": { "Homepage": "https://github.com/hj24/count-line" }, "release_url": "https://pypi.org/project/count-line/0.1.2/", "requires_dist": null, "requires_python": ">=3", "summary": "A command line tool to count lines and files numbers under current directory.", "version": "0.1.2" }, "last_serial": 5246995, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f3ab40268f6c18894cb82c554cfce88e", "sha256": "c381a0248c89908dd73111949f19391b79400184ab51455dcf1c83fa7548dc28" }, "downloads": -1, "filename": "count_line-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f3ab40268f6c18894cb82c554cfce88e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 2111, "upload_time": "2019-05-09T11:11:44", "url": "https://files.pythonhosted.org/packages/7d/e5/9b7ebbd29455839cd129ce70010dd8b62544acecd4f2eb74ebb91d7c0669/count_line-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5e6ececcf68ec2c973eaa796eb259dd2", "sha256": "996038b770fd3b96a1db6333160c4bb173ffa721ce9143e5709742d27952383f" }, "downloads": -1, "filename": "count-line-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5e6ececcf68ec2c973eaa796eb259dd2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3097, "upload_time": "2019-05-09T11:11:47", "url": "https://files.pythonhosted.org/packages/a2/9f/a5a730f854cced32f5b47bec4c45aed9d179154da29715dd7b523ee3668d/count-line-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "50863194a6400a5968add80f6a071882", "sha256": "2dd63d65e5b3df0760343c2704b9a735475c89742f62d41d116ddc3fbf8c3f81" }, "downloads": -1, "filename": "count_line-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "50863194a6400a5968add80f6a071882", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 2117, "upload_time": "2019-05-09T11:26:24", "url": "https://files.pythonhosted.org/packages/1b/79/0c86cff55718f3c1d8caaabb5dae2331e1f8eba8064ce48749fbd6afb8f8/count_line-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fd4d3880815090b8651889a6b9a8adea", "sha256": "f5073f790f3e66153816369b9dcf385422440b97bbb75d293c290afaef899c57" }, "downloads": -1, "filename": "count-line-0.1.1.tar.gz", "has_sig": false, "md5_digest": "fd4d3880815090b8651889a6b9a8adea", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 3099, "upload_time": "2019-05-09T11:26:26", "url": "https://files.pythonhosted.org/packages/eb/5b/e2f6999d880be1d83ec55c8ec04c5e7683ef0e569bbad1e3bcfd29be96a7/count-line-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "434efacfe66b21d80b09e31d2f3d4bd0", "sha256": "33210f8bb7115991b1db0769a1d7e51e6a6466512ad2a54de2b7fcb020e2e5c8" }, "downloads": -1, "filename": "count_line-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "434efacfe66b21d80b09e31d2f3d4bd0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 3741, "upload_time": "2019-05-09T11:30:09", "url": "https://files.pythonhosted.org/packages/1a/42/577dcba4be994c4837cdbe46eeb0172605e4f2dcc0347d00627e1c759c67/count_line-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5bb82e67f9278560010ef9d4f5f96c92", "sha256": "c1d0f1f9b4d4b5444bd09bd8ebd549fe105beb43054e4511dc9363c95fe8da4a" }, "downloads": -1, "filename": "count-line-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5bb82e67f9278560010ef9d4f5f96c92", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4403, "upload_time": "2019-05-09T11:30:11", "url": "https://files.pythonhosted.org/packages/e9/b3/b9686f3fcb413a8668e1196bd40d278cd6cb772a1879f6f2cf027513d29a/count-line-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "434efacfe66b21d80b09e31d2f3d4bd0", "sha256": "33210f8bb7115991b1db0769a1d7e51e6a6466512ad2a54de2b7fcb020e2e5c8" }, "downloads": -1, "filename": "count_line-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "434efacfe66b21d80b09e31d2f3d4bd0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 3741, "upload_time": "2019-05-09T11:30:09", "url": "https://files.pythonhosted.org/packages/1a/42/577dcba4be994c4837cdbe46eeb0172605e4f2dcc0347d00627e1c759c67/count_line-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5bb82e67f9278560010ef9d4f5f96c92", "sha256": "c1d0f1f9b4d4b5444bd09bd8ebd549fe105beb43054e4511dc9363c95fe8da4a" }, "downloads": -1, "filename": "count-line-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5bb82e67f9278560010ef9d4f5f96c92", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4403, "upload_time": "2019-05-09T11:30:11", "url": "https://files.pythonhosted.org/packages/e9/b3/b9686f3fcb413a8668e1196bd40d278cd6cb772a1879f6f2cf027513d29a/count-line-0.1.2.tar.gz" } ] }