{
"info": {
"author": "Tadek Tele\u017cy\u0144ski",
"author_email": "tadekte@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Pre-processors",
"Topic :: Text Processing :: General",
"Topic :: Utilities"
],
"description": "|PyPI version| |PyVer| |Lic| |coverage| |Build Status|\n\nfcomments\n=========\n\n*manage comments from your command line*\n\ninstallation\n------------\n\nsupports Python 3.5+\n\nfcomments is on `pypi `__\n\n::\n\n $ pip install fcomments\n\nusage\n-----\n\nDefault behavior is to switch the line. It means that if a matched line\nis commented, the comment will be removed, and if the line is not\ncommented the comment will be added.\n\nSpecifying -c flag ensures that matched lines will be commented out\nafter the command. The flag -u works analogically with respect to\nuncommenting lines.\n\nProvisioning\n~~~~~~~~~~~~\n\n.. code:: python\n\n from fcomments import Commenter\n\n LINES = [4,5,6]\n\n c = Commenter(path='path/to/file')\n\n c.comment_file(comment=True, lines=LINES) # ensure that lines 4-6 are commented out\n\n action() # do sth: run tests, make migrations ..\n\n c.comment_file(uncomment=True, lines=LINES) # ensure that lines 4-6 are not commented\n\nCLI\n~~~\n\n.. code:: shell\n\n # comment all lines in a file:\n $ fcomments --comment --all path/to/file\n $ fcomments -ca path/to/file\n # comment lines 3 to 12:\n $ fcomments --comment --lines=3-12 path/to/file\n $ fcomments -cl3-12 path/to/file\n\n--help\n^^^^^^\n\n::\n\n Usage: __main__.py [options] \n\n Examples:\n __main__.py -h ---> see help\n __main__.py -cl1,2 path/to/file ---> comment out lines 1 and 2\n __main__.py -ul3-6 path/to/file ---> uncomment lines 3 to 6 (inclusive)\n __main__.py -ac path/to/file ---> comment out all lines\n __main__.py -au path/to/file ---> uncomment all lines\n\n __main__.py --start-pattern='\\s+operations\\s?=\\s?\\[' --end-pattern='\\s+\\]' path/to/file\n ---> comment out everything inside the `operations` list:\n\n 1| class Migration(...):\n 2|\n 3| operations = [\n 4| # migrations(\n 5| # ...\n 6| # ),\n 7| ]\n\n\n Comment or uncomment lines in a file. Default behavior: do the oposite i.e.\n if a line is commented - uncomment it, and vice versa. To make sure that the\n matched lines will be [un]commented out - run with -[u]c option. If you don't\n specify an --output, the original file () will be overwritten.\n\n Options:\n -h, --help show this help message and exit\n -c, --comment comment lines [default: False]\n -u, --uncomment uncomment lines [default: False]\n -a, --all apply to all lines in file; suppresses -l option\n [default: False]\n -l LINES, --lines=LINES\n comma separeted string of line numbers [default: None]\n -s IN_PATTERN, --start-pattern=IN_PATTERN\n pattern to match against the line before commented\n section [default: None]\n -e OUT_PATTERN, --end-pattern=OUT_PATTERN\n pattern to match against the first line after\n commented section [default: None]\n -o OUTPUT, --output=OUTPUT\n specify a path to output file [default: None]\n --symbol=COMMENT_SYMBOL\n specify a string to use as comment [default: '#']\n\n.. |PyPI version| image:: https://badge.fury.io/py/fcomments.svg\n :target: https://badge.fury.io/py/fcomments\n.. |PyVer| image:: https://img.shields.io/pypi/pyversions/fcomments.svg\n :target: https://pypi.org/project/fcomments/\n.. |Lic| image:: https://img.shields.io/pypi/l/Django.svg\n :target: https://pypi.org/project/fcomments/\n.. |coverage| image:: coverage.svg\n.. |Build Status| image:: https://travis-ci.org/tadeoos/fcomments.svg?branch=master\n :target: https://travis-ci.org/tadeoos/fcomments\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/tadeoos/fcomments",
"keywords": "comments file",
"license": "",
"maintainer": "tadeo",
"maintainer_email": "tadekte@gmail.com",
"name": "fcomments",
"package_url": "https://pypi.org/project/fcomments/",
"platform": "",
"project_url": "https://pypi.org/project/fcomments/",
"project_urls": {
"Homepage": "https://github.com/tadeoos/fcomments"
},
"release_url": "https://pypi.org/project/fcomments/0.1.3/",
"requires_dist": null,
"requires_python": ">=3.5",
"summary": "Script for commenting in/out lines in file.",
"version": "0.1.3"
},
"last_serial": 3146010,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "995654c2c4600affad229f0cc4c0d660",
"sha256": "574a59dc9a75a1c075a03e1b8c37c66b9ed93c549a99262dafdd26ff9bde7369"
},
"downloads": -1,
"filename": "fcomments-0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "995654c2c4600affad229f0cc4c0d660",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 8523,
"upload_time": "2017-09-02T15:31:24",
"url": "https://files.pythonhosted.org/packages/d0/8d/014b1f0e7d50eec6654323a14961e778943768c6eabb14af6d53d48a5559/fcomments-0.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "f933b10a064450c57a18b0b0c2a21bb0",
"sha256": "5a6076ec3f4f5d1251e890756467b64ae672739eff8ba9f9f8972cec4b93ef88"
},
"downloads": -1,
"filename": "fcomments-0.1.tar.gz",
"has_sig": false,
"md5_digest": "f933b10a064450c57a18b0b0c2a21bb0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 4052,
"upload_time": "2017-09-02T15:31:27",
"url": "https://files.pythonhosted.org/packages/5d/a5/e5157a53d8d8ea60ebc5fd353bc019df447224e3437e23cf8df1696ef0e5/fcomments-0.1.tar.gz"
}
],
"0.1.1": [
{
"comment_text": "",
"digests": {
"md5": "4486cecdcbe0bc55ce4bde3755e5f73b",
"sha256": "36b6387df8f880cf60f863253514ac627a78868cc866c09e0a9d66b5a944cf57"
},
"downloads": -1,
"filename": "fcomments-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4486cecdcbe0bc55ce4bde3755e5f73b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 8954,
"upload_time": "2017-09-02T15:54:49",
"url": "https://files.pythonhosted.org/packages/2d/b7/4aab83b8ad4ee6b7b0d908af4439588140cec6dbd70cd97d21f989b59675/fcomments-0.1.1-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "23dbae4f036dddf1209caa3faf6f20bc",
"sha256": "1be7d0fc7d878af8a16128abedcc0e2cf43633fc383aa0257e291b8424d8c734"
},
"downloads": -1,
"filename": "fcomments-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "23dbae4f036dddf1209caa3faf6f20bc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 4297,
"upload_time": "2017-09-02T15:54:51",
"url": "https://files.pythonhosted.org/packages/49/2b/08b98557f8b5dad4b7e5b1931c5d766fac9a9df20677eebf1733f431b29d/fcomments-0.1.1.tar.gz"
}
],
"0.1.2": [
{
"comment_text": "",
"digests": {
"md5": "86f40cf65084ba49b72f491ef407671c",
"sha256": "11dedc24e65ef7aff924b2b7578c23cac9349046bf11c0bdb9a9b3a6d9389267"
},
"downloads": -1,
"filename": "fcomments-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "86f40cf65084ba49b72f491ef407671c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 11467,
"upload_time": "2017-09-03T19:22:40",
"url": "https://files.pythonhosted.org/packages/45/11/3c9968d6ee558437f1f0dd3ef820393aec8e0577ea49bdbf65d1f01d9d18/fcomments-0.1.2-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "3bbcc9934e3c994aa8f8bac162bb66ed",
"sha256": "10fa33100d911dbe7f5bc47ebbdea7ed18c550512633b90735257565d4b3249a"
},
"downloads": -1,
"filename": "fcomments-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "3bbcc9934e3c994aa8f8bac162bb66ed",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 6997,
"upload_time": "2017-09-03T19:22:44",
"url": "https://files.pythonhosted.org/packages/0d/e1/5572ad5b0c29f827769dd1d003dd5f9ef96e09e2d6f9b4f529dab078330c/fcomments-0.1.2.tar.gz"
}
],
"0.1.3": [
{
"comment_text": "",
"digests": {
"md5": "ef24c0c4842457736d91fb831843de16",
"sha256": "32454ea87390808141e3a37dea7030303abc99d78901a5f6f4de53766dd01be9"
},
"downloads": -1,
"filename": "fcomments-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ef24c0c4842457736d91fb831843de16",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 17796,
"upload_time": "2017-09-03T19:54:07",
"url": "https://files.pythonhosted.org/packages/39/e8/1ba2a017d8d7fc41c8c04100f6c59ad2bc17534f89ba16828bfdc53fd138/fcomments-0.1.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "d728ac395964331be44e5638dcc83b23",
"sha256": "b591b00cb414299c6752933b20b0415aa7a294624a156ed33cd9c4c36c7d2c7d"
},
"downloads": -1,
"filename": "fcomments-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "d728ac395964331be44e5638dcc83b23",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 7009,
"upload_time": "2017-09-03T19:54:09",
"url": "https://files.pythonhosted.org/packages/19/23/bf4207321d44ff7cc14fb1b712008380cf26254429c6c87b6f01ba3ab941/fcomments-0.1.3.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "ef24c0c4842457736d91fb831843de16",
"sha256": "32454ea87390808141e3a37dea7030303abc99d78901a5f6f4de53766dd01be9"
},
"downloads": -1,
"filename": "fcomments-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ef24c0c4842457736d91fb831843de16",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 17796,
"upload_time": "2017-09-03T19:54:07",
"url": "https://files.pythonhosted.org/packages/39/e8/1ba2a017d8d7fc41c8c04100f6c59ad2bc17534f89ba16828bfdc53fd138/fcomments-0.1.3-py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "d728ac395964331be44e5638dcc83b23",
"sha256": "b591b00cb414299c6752933b20b0415aa7a294624a156ed33cd9c4c36c7d2c7d"
},
"downloads": -1,
"filename": "fcomments-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "d728ac395964331be44e5638dcc83b23",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 7009,
"upload_time": "2017-09-03T19:54:09",
"url": "https://files.pythonhosted.org/packages/19/23/bf4207321d44ff7cc14fb1b712008380cf26254429c6c87b6f01ba3ab941/fcomments-0.1.3.tar.gz"
}
]
}