{ "info": { "author": "Dimitri Kokkonis", "author_email": "kokkonisd@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# locstats\n\n![build status](https://travis-ci.org/kokkonisd/locstats.svg?branch=master)\n\nA Python tool that tells you approximately how many LOC (Lines Of Code) you\nhave written in a given language.\n\n# what is locstats?\n\nWondering how many LOC (Lines Of Code) you have written in a given language?\nWell, this is the tool for you! Given a programming language and a directory\nlist, `locstats` calculates the amount of LOC you have written in that\nlanguage.\n\n# installing locstats\n\nYou can install `locstats` via `pip`:\n\n```bash\n$ pip3 install locstats # Only Python 3 is supported!\n```\n\nOr you can build it directly from its sources by cloning this repo:\n\n```bash\n$ git clone https://github.com/kokkonisd/locstats\n$ cd locstats/\n$ pip3 install .\n```\n\n# using locstats\n\nUsing locstats is pretty simple! Let's say I want to find out my LOC count in C\ngiven all the C projects I have inside my `~/code/C/` folder:\n\n```bash\n$ locstats c ~/code/C/\nYou have written approximately 39590 LOC in C.\n```\n\nBut wait! I try to document the code I write, so there's gonna be a lot of\nlines of comments, which shouldn't count towards my actual _code_ line count.\nI also try to format my code nicely, leaving blank lines where I have to to\nmake it more readable; those do not contribute to the code line count either.\n\nThankfully, I can just run `locstats` in strict mode:\n\n```bash\n$ locstats c ~/code/C/ --strict\nYou have written approximately 28807 LOC in C.\n```\n\nUnsurprisingly, this returns fewer lines.\n\nBut what if I want to use the output of `locstats` in some other script? Well,\nI can tell it to give me minimal output, which will only print the LOC count\n(without the extra text):\n\n```bash\n$ locstats c ~/code/C/ --minimal\n39590\n```\n\nYou can also get a detailed view of the LOC count per file using the `-d` or\n`--detailed` flag:\n\n```bash\n$ locstats python ~/code/locstats/\n__main__.py : 105 (32.71%)\nloc.py : 73 (22.74%)\ntest_loc.py : 54 (16.82%)\ndefinitions.py : 47 (14.64%)\nsetup.py : 28 (8.72%)\ntest_definitions.py : 12 (3.74%)\n__init__.py : 2 (0.62%)\n----\nTOTAL LOC : 321 (100%)\n```\n\n# contributing\n\nDo you want to contribute to an open source project? `locstats` needs your\nhelp! I've just started working on this project and there are still tons of\nthings to add (mainly other programming languages in the `languages.json` \nfile!).\n\nSo go ahead, fork this repo, write some code and make a pull request :)\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://github.com/kokkonisd/locstats", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "locstats", "package_url": "https://pypi.org/project/locstats/", "platform": "", "project_url": "https://pypi.org/project/locstats/", "project_urls": { "Homepage": "https://github.com/kokkonisd/locstats" }, "release_url": "https://pypi.org/project/locstats/1.0.1/", "requires_dist": [ "click" ], "requires_python": "", "summary": "A statistics tool for your LOC per language", "version": "1.0.1" }, "last_serial": 5714474, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a6122f94ed9d47a22d3fe620e52847c5", "sha256": "9829c51fbdd6babff27d2e757473ecacb40eebbe73e173b2f35c98f38db7dfd4" }, "downloads": -1, "filename": "locstats-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "a6122f94ed9d47a22d3fe620e52847c5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4986, "upload_time": "2019-08-20T13:11:20", "url": "https://files.pythonhosted.org/packages/12/a4/9e53abb4b9fb237af40ff61ecb73d463a1549a7fa964b00336402a2d24e0/locstats-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0106246534b34df1abc35da5710d6e98", "sha256": "0ed8468a4e642a52dae00ba40bbbd97c95c9d89a354429d3a0bc3ae8b84909b5" }, "downloads": -1, "filename": "locstats-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0106246534b34df1abc35da5710d6e98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2710, "upload_time": "2019-08-20T13:11:22", "url": "https://files.pythonhosted.org/packages/01/9d/fa29e73d4c6c78c8a5179f560e9007da419e6e1570a486d46518abed386e/locstats-0.0.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "5c9a55f93450effab25db7846e47e2c1", "sha256": "6a8f5175a6f16b845583d5dc129fd2684da836c7c647a1dc983897cf6c62d525" }, "downloads": -1, "filename": "locstats-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5c9a55f93450effab25db7846e47e2c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4838, "upload_time": "2019-08-22T10:29:54", "url": "https://files.pythonhosted.org/packages/cf/3b/b79b505cfaff7d86697abc86561b44839451a6e7dc9a0bac730f7de2e74c/locstats-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "14c69f7726c254ab3dd0b0e9a479ef0e", "sha256": "b657717289e65a227adff6b2297cb54825b80a138f3dbedd13a92fdc186ab4d2" }, "downloads": -1, "filename": "locstats-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "14c69f7726c254ab3dd0b0e9a479ef0e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7668, "upload_time": "2019-08-22T10:40:35", "url": "https://files.pythonhosted.org/packages/0f/3b/24cd9aaa46619cf3acddfcaf0fbab4f837d771576d45872ed549d853ffcc/locstats-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cec82651c81ceeb0cc8250e6aa490b00", "sha256": "3a48a33de7c2d6aeb574385ed3eedf84a4eed8029c0bf54c412e62f726021343" }, "downloads": -1, "filename": "locstats-1.0.1.tar.gz", "has_sig": false, "md5_digest": "cec82651c81ceeb0cc8250e6aa490b00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4875, "upload_time": "2019-08-22T10:40:37", "url": "https://files.pythonhosted.org/packages/2e/ba/d01b94a930bb67b54877bff983236f8ba6d0caa3b9ec2aabfca664197e08/locstats-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14c69f7726c254ab3dd0b0e9a479ef0e", "sha256": "b657717289e65a227adff6b2297cb54825b80a138f3dbedd13a92fdc186ab4d2" }, "downloads": -1, "filename": "locstats-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "14c69f7726c254ab3dd0b0e9a479ef0e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7668, "upload_time": "2019-08-22T10:40:35", "url": "https://files.pythonhosted.org/packages/0f/3b/24cd9aaa46619cf3acddfcaf0fbab4f837d771576d45872ed549d853ffcc/locstats-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cec82651c81ceeb0cc8250e6aa490b00", "sha256": "3a48a33de7c2d6aeb574385ed3eedf84a4eed8029c0bf54c412e62f726021343" }, "downloads": -1, "filename": "locstats-1.0.1.tar.gz", "has_sig": false, "md5_digest": "cec82651c81ceeb0cc8250e6aa490b00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4875, "upload_time": "2019-08-22T10:40:37", "url": "https://files.pythonhosted.org/packages/2e/ba/d01b94a930bb67b54877bff983236f8ba6d0caa3b9ec2aabfca664197e08/locstats-1.0.1.tar.gz" } ] }