{ "info": { "author": "Peter Ruibal", "author_email": "ruibalp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "`python-editor` is a library that provides the `editor` module for programmatically\ninterfacing with your system's $EDITOR.\n\nExamples\n--------\n\n```python\nimport editor\ncommit_msg = editor.edit(contents=b\"# Enter commit message here\")\n```\n\nOpens an editor, prefilled with the contents, `# Enter commit message here`.\nWhen the editor is closed, returns the contents (bytes) in variable `commit_msg`.\nNote that the argument to `contents` needs to be a bytes object on Python 3.\n\n\n```python\neditor.edit(file=\"README.txt\")\n```\n\nOpens README.txt in an editor. Changes are saved in place. If there is\na `contents` argument then the file contents will be overwritten.\n\n```python\neditor.edit(..., use_tty=True)\n```\n\nOpens the editor in a TTY. This is usually done in programs which output is\npiped to other programs. In this case the TTY is used as the editor's stdout,\nallowing interactive usage.\n\n\nHow it Works\n------------\n\n`editor` first looks for the ${EDITOR} environment variable. If set, it uses\nthe value as-is, without fallbacks.\n\nIf no $EDITOR is set, editor will search through a list of known editors, and\nuse the first one that exists on the system.\n\nFor example, on Linux, `editor` will look for the following editors in order:\n\n* vim\n* emacs\n* nano\n\nWhen calling `editor.edit`, an editor will be opened in a subprocess, inheriting\nthe parent process's stdin, stdout.\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/fmoo/python-editor", "keywords": "editor library vim emacs", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "python-editor", "package_url": "https://pypi.org/project/python-editor/", "platform": "", "project_url": "https://pypi.org/project/python-editor/", "project_urls": { "Homepage": "https://github.com/fmoo/python-editor" }, "release_url": "https://pypi.org/project/python-editor/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Programmatically open an editor, capture the result.", "version": "1.0.4" }, "last_serial": 4767273, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8f5efa4ff75a72c60846e14153f7d6d3", "sha256": "d5ff3e4b55ec7e0333088b4c63b81e326cc52c8396705cb8727762262b8f229a" }, "downloads": -1, "filename": "python-editor-0.1.tar.gz", "has_sig": false, "md5_digest": "8f5efa4ff75a72c60846e14153f7d6d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1877, "upload_time": "2015-01-10T21:50:01", "url": "https://files.pythonhosted.org/packages/fd/d1/547a394de088df1d330136cfd66705e6f47ac17f22db5fbc1905c3b0f186/python-editor-0.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "3a381ff644a341a8d164abe46944c47c", "sha256": "875ac58f6d09721c283777a577504b032b6500ea6e1da223d44aac37525cef95" }, "downloads": -1, "filename": "python_editor-0.3-py3.4.egg", "has_sig": false, "md5_digest": "3a381ff644a341a8d164abe46944c47c", "packagetype": "bdist_egg", "python_version": "3.4", "requires_python": null, "size": 3904, "upload_time": "2015-07-16T17:46:37", "url": "https://files.pythonhosted.org/packages/41/e8/c7a4fbb6191607889f9003c69aa7ad825af247e85532ddf4f341d17295ec/python_editor-0.3-py3.4.egg" }, { "comment_text": "", "digests": { "md5": "5d19e02c7d1d9c7859be9757535acc63", "sha256": "cd63670fe21f9618676278c70a9977be46af6a9f1e5fdc45a5207efa6dc53ded" }, "downloads": -1, "filename": "python-editor-0.3.tar.gz", "has_sig": false, "md5_digest": "5d19e02c7d1d9c7859be9757535acc63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2031, "upload_time": "2015-07-16T17:46:40", "url": "https://files.pythonhosted.org/packages/22/38/b440ef74bc860c4a4e7e94d6fc0d61a33418dd4019595012e7c0efcc5804/python-editor-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "30de680ec944d073e0c3f18b44d5aa15", "sha256": "4421a7116bf3af957266f225bc79ad25b92839cc7974c8335bba5a6582edd3bf" }, "downloads": -1, "filename": "python-editor-0.4.tar.gz", "has_sig": false, "md5_digest": "30de680ec944d073e0c3f18b44d5aa15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6516, "upload_time": "2015-08-26T07:41:01", "url": "https://files.pythonhosted.org/packages/d5/2c/16cbe80d7a647aafad903d4b6784e3c5622faf5170dc3c6661e1f9bb0380/python-editor-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "28ffc2a828e7eb4aca093341c4dc2a90", "sha256": "1184f947a0f5cfa0f9528766280ac90e8a07cbf43bedda17a4672e22cf91794e" }, "downloads": -1, "filename": "python_editor-0.5-py2.7.egg", "has_sig": false, "md5_digest": "28ffc2a828e7eb4aca093341c4dc2a90", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 4006, "upload_time": "2015-12-03T06:16:48", "url": "https://files.pythonhosted.org/packages/a5/25/4e98c11b2ae30de87089975e79fa49df05ee2b5851cfc062fcfaba4da187/python_editor-0.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "ece4f1848d93286d58df88e3fcb37704", "sha256": "f65c033ede0758663b9ff6a29d702f0b09198ad7c4ef96c9d37ccdfbf7bbf6fa" }, "downloads": -1, "filename": "python-editor-0.5.tar.gz", "has_sig": false, "md5_digest": "ece4f1848d93286d58df88e3fcb37704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6555, "upload_time": "2015-12-03T06:16:42", "url": "https://files.pythonhosted.org/packages/70/f4/61ed2565eeb4fa2aa0bd0bd70ae5883edda9f2a1d94e6702be24c6710b7b/python-editor-0.5.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "a5ead611360b17b52507297d8590b4e8", "sha256": "4a2b6a945d06e347a8fafe2475f533d05887b193b2e162aff961f63642c8a60e" }, "downloads": -1, "filename": "python-editor-1.0.tar.gz", "has_sig": false, "md5_digest": "a5ead611360b17b52507297d8590b4e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6741, "upload_time": "2016-04-01T15:14:55", "url": "https://files.pythonhosted.org/packages/f5/d9/01eb441489c8bd2adb33ee4f3aea299a3db531a584cb39c57a0ecf516d9c/python-editor-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e1fa63535b40e022fa4fd646fd8b511a", "sha256": "8672e9a44a7957741453dd35e842299f6c29f0a88dc9e4316b0fa5935abb9186" }, "downloads": -1, "filename": "python-editor-1.0.1.tar.gz", "has_sig": false, "md5_digest": "e1fa63535b40e022fa4fd646fd8b511a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7014, "upload_time": "2016-06-14T19:28:23", "url": "https://files.pythonhosted.org/packages/2b/c0/df7b87d5cf016f82eab3b05cd35f53287c1178ad8c42bfb6fa61b89b22f6/python-editor-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "238dbe80a6e3eb0cb016cacd3b967905", "sha256": "a769526bbcab3c5de0519cc9536c00f1eda7499ef81d75121ab06038664a816b" }, "downloads": -1, "filename": "python-editor-1.0.2b.tar.gz", "has_sig": false, "md5_digest": "238dbe80a6e3eb0cb016cacd3b967905", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6969, "upload_time": "2016-11-16T18:08:43", "url": "https://files.pythonhosted.org/packages/1a/0b/af25b4b13644e1b8ce5b32eaca40be2beab542b9c3451198a63f0decfa6a/python-editor-1.0.2b.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "0aca5f2ef176ce68e98a5b7e31372835", "sha256": "a3c066acee22a1c94f63938341d4fb374e3fdd69366ed6603d7b24bed1efc565" }, "downloads": -1, "filename": "python-editor-1.0.3.tar.gz", "has_sig": false, "md5_digest": "0aca5f2ef176ce68e98a5b7e31372835", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6975, "upload_time": "2016-11-27T19:02:19", "url": "https://files.pythonhosted.org/packages/65/1e/adf6e000ea5dc909aa420352d6ba37f16434c8a3c2fa030445411a1ed545/python-editor-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "95ddcf2f37857bb4d06b3bcce537fd6a", "sha256": "ea87e17f6ec459e780e4221f295411462e0d0810858e055fc514684350a2f522" }, "downloads": -1, "filename": "python_editor-1.0.4-py2.7.egg", "has_sig": false, "md5_digest": "95ddcf2f37857bb4d06b3bcce537fd6a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5028, "upload_time": "2019-02-01T07:33:14", "url": "https://files.pythonhosted.org/packages/bc/e3/019ed6d1a5a5e837739de55cda27b2f03045c9f9d84054b97e79a86fe2fc/python_editor-1.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "fc42eeb8edc379020c4a5983daef4941", "sha256": "5f98b069316ea1c2ed3f67e7f5df6c0d8f10b689964a4a811ff64f0106819ec8" }, "downloads": -1, "filename": "python_editor-1.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "fc42eeb8edc379020c4a5983daef4941", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4877, "upload_time": "2019-02-01T07:33:11", "url": "https://files.pythonhosted.org/packages/55/a0/3c0ba1c10f2ca381645dd46cb7afbb73fddc8de9f957e1f9e726a846eabc/python_editor-1.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4bacb5fdc2027939c6c60228544fb551", "sha256": "c3da2053dbab6b29c94e43c486ff67206eafbe7eb52dbec7390b5e2fb05aac77" }, "downloads": -1, "filename": "python_editor-1.0.4-py3.5.egg", "has_sig": false, "md5_digest": "4bacb5fdc2027939c6c60228544fb551", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 3072, "upload_time": "2019-02-01T07:33:16", "url": "https://files.pythonhosted.org/packages/52/34/477695c3a37d921dba1bd0856c756525276bd42adc7ccfc6bf82f3778a26/python_editor-1.0.4-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "620d31cf0d2f25a2da21852f5a1a6090", "sha256": "1bf6e860a8ad52a14c3ee1252d5dc25b2030618ed80c022598f00176adc8367d" }, "downloads": -1, "filename": "python_editor-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "620d31cf0d2f25a2da21852f5a1a6090", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4877, "upload_time": "2019-02-01T07:33:12", "url": "https://files.pythonhosted.org/packages/c6/d3/201fc3abe391bbae6606e6f1d598c15d367033332bd54352b12f35513717/python_editor-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e52648a4a6e7c89e3be44e9456530b4", "sha256": "51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b" }, "downloads": -1, "filename": "python-editor-1.0.4.tar.gz", "has_sig": false, "md5_digest": "0e52648a4a6e7c89e3be44e9456530b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7132, "upload_time": "2019-02-01T07:33:13", "url": "https://files.pythonhosted.org/packages/0a/85/78f4a216d28343a67b7397c99825cff336330893f00601443f7c7b2f2234/python-editor-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "95ddcf2f37857bb4d06b3bcce537fd6a", "sha256": "ea87e17f6ec459e780e4221f295411462e0d0810858e055fc514684350a2f522" }, "downloads": -1, "filename": "python_editor-1.0.4-py2.7.egg", "has_sig": false, "md5_digest": "95ddcf2f37857bb4d06b3bcce537fd6a", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5028, "upload_time": "2019-02-01T07:33:14", "url": "https://files.pythonhosted.org/packages/bc/e3/019ed6d1a5a5e837739de55cda27b2f03045c9f9d84054b97e79a86fe2fc/python_editor-1.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "fc42eeb8edc379020c4a5983daef4941", "sha256": "5f98b069316ea1c2ed3f67e7f5df6c0d8f10b689964a4a811ff64f0106819ec8" }, "downloads": -1, "filename": "python_editor-1.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "fc42eeb8edc379020c4a5983daef4941", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4877, "upload_time": "2019-02-01T07:33:11", "url": "https://files.pythonhosted.org/packages/55/a0/3c0ba1c10f2ca381645dd46cb7afbb73fddc8de9f957e1f9e726a846eabc/python_editor-1.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4bacb5fdc2027939c6c60228544fb551", "sha256": "c3da2053dbab6b29c94e43c486ff67206eafbe7eb52dbec7390b5e2fb05aac77" }, "downloads": -1, "filename": "python_editor-1.0.4-py3.5.egg", "has_sig": false, "md5_digest": "4bacb5fdc2027939c6c60228544fb551", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 3072, "upload_time": "2019-02-01T07:33:16", "url": "https://files.pythonhosted.org/packages/52/34/477695c3a37d921dba1bd0856c756525276bd42adc7ccfc6bf82f3778a26/python_editor-1.0.4-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "620d31cf0d2f25a2da21852f5a1a6090", "sha256": "1bf6e860a8ad52a14c3ee1252d5dc25b2030618ed80c022598f00176adc8367d" }, "downloads": -1, "filename": "python_editor-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "620d31cf0d2f25a2da21852f5a1a6090", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4877, "upload_time": "2019-02-01T07:33:12", "url": "https://files.pythonhosted.org/packages/c6/d3/201fc3abe391bbae6606e6f1d598c15d367033332bd54352b12f35513717/python_editor-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e52648a4a6e7c89e3be44e9456530b4", "sha256": "51fda6bcc5ddbbb7063b2af7509e43bd84bfc32a4ff71349ec7847713882327b" }, "downloads": -1, "filename": "python-editor-1.0.4.tar.gz", "has_sig": false, "md5_digest": "0e52648a4a6e7c89e3be44e9456530b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7132, "upload_time": "2019-02-01T07:33:13", "url": "https://files.pythonhosted.org/packages/0a/85/78f4a216d28343a67b7397c99825cff336330893f00601443f7c7b2f2234/python-editor-1.0.4.tar.gz" } ] }