{ "info": { "author": "Todd Wolfson", "author_email": "todd@twolfson.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: Public Domain", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Text Editors" ], "description": "sublime-info\n============\n\n.. image:: https://travis-ci.org/twolfson/sublime-info.png?branch=master\n :target: https://travis-ci.org/twolfson/sublime-info\n :alt: Build Status\n\nGather information about `Sublime Text`_\n\nThis was built for the `Sublime plugin tests`_ framework. It provides a cross-platform way to collect data about `Sublime Text`_ without running `Sublime Text`_ (necessary for creating a plugin harness to `Sublime Text`_).\n\n.. _`Sublime Text`: http://sublimetext.com/\n.. _`Sublime plugin tests`: https://github.com/twolfson/sublime-plugin-tests\n\n Currently, only Linux is supported but OSX and Windows support are planned.\n\nGetting Started\n---------------\nInstall the module with: ``pip install sublime_info``\n\n.. code:: python\n\n import sublime_info\n sublime_info.get_sublime_path() # /usr/bin/subl\n sublime_info.get_sublime_version() # 3083\n sublime_info.get_package_directory() # /home/todd/.config/sublime-text-2/Packages\n\nDocumentation\n-------------\n``sublime_info`` provides 3 top level functions for your consumption.\n\nget_sublime_path\n^^^^^^^^^^^^^^^^\n.. code:: python\n\n sublime_info.get_sublime_path()\n \"\"\"Resolve Sublime Text path (e.g. /usr/bin/subl)\n\n If ``SUBLIME_TEXT_PATH`` is provided via environment variables, it will be used.\n Otherwise, a ``which``-like resolution will be returned.\n\n :raises STNotFoundError: If Sublime Text cannot be found, an error will be raised.\n :returns: ``SUBLIME_TEXT_PATH`` or ``which``-like resolution\n :rtype: str\n \"\"\"\n\nget_sublime_version\n^^^^^^^^^^^^^^^^^^^\n.. code:: python\n\n sublime_info.get_sublime_version()\n \"\"\"Resolve Sublime Text version (e.g. 2221, 3083)\n\n Sublime Text is resolved via ``get_sublime_path``\n\n :raises Exception: If the Sublime Text version cannot be parsed, an error will be raised.\n :returns: Version of Sublime Text returned by ``sublime_text --version``.\n :rtype: int\n \"\"\"\n\nget_package_directory\n^^^^^^^^^^^^^^^^^^^^^\n.. code:: python\n\n sublime_info.get_package_directory()\n \"\"\"Resolve Sublime Text package directory (e.g. /home/todd/.config/sublime-text-2/Packages)\n\n :raises Exception: If the Sublime Text version is not recognized, an error will be raised.\n :returns: Path to Sublime Text's package directory\n :rtype: str\n \"\"\"\n\nContributing\n------------\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test via ``./test_linux.sh``.\n\nDonating\n--------\nSupport this project and `others by twolfson`_ via `gittip`_.\n\n.. image:: https://rawgithub.com/twolfson/gittip-badge/master/dist/gittip.png\n :target: `gittip`_\n :alt: Support via Gittip\n\n.. _`others by twolfson`:\n.. _gittip: https://www.gittip.com/twolfson/\n\nUnlicense\n---------\nAs of Oct 14 2013, Todd Wolfson has released this repository and its contents to the public domain.\n\nIt has been released under the `UNLICENSE`_.\n\n.. _UNLICENSE: https://github.com/twolfson/sublime-info/blob/master/UNLICENSE", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/twolfson/sublime-info/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/twolfson/sublime-info", "keywords": "sublime,sublime text,info,plugin", "license": "UNLICENSE", "maintainer": null, "maintainer_email": null, "name": "sublime_info", "package_url": "https://pypi.org/project/sublime_info/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/sublime_info/", "project_urls": { "Download": "https://github.com/twolfson/sublime-info/archive/master.zip", "Homepage": "https://github.com/twolfson/sublime-info" }, "release_url": "https://pypi.org/project/sublime_info/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "Gather information about Sublime Text", "version": "0.2.0" }, "last_serial": 1876350, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "87859c2d5c88a628cdd7fba86edf687f", "sha256": "352a4c11475e7ae87e22f67e0cb851bc32870647716eb737aa39198623553c4f" }, "downloads": -1, "filename": "sublime_info-0.1.0.tar.gz", "has_sig": false, "md5_digest": "87859c2d5c88a628cdd7fba86edf687f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6597, "upload_time": "2013-10-15T10:22:45", "url": "https://files.pythonhosted.org/packages/21/a6/9c6171ad4129393af0df6b9471e49200376f0c51a216d9adf07abe561895/sublime_info-0.1.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "aab1012e891a51b20cf4180d3ca5eec9", "sha256": "a85c200a06a2e94e612dd502ef92a12ed3681fd67c0cd34dd04d091f61ce1b0d" }, "downloads": -1, "filename": "sublime_info-0.1.0.zip", "has_sig": false, "md5_digest": "aab1012e891a51b20cf4180d3ca5eec9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13695, "upload_time": "2013-10-15T10:22:48", "url": "https://files.pythonhosted.org/packages/1e/a7/5d5138516aa3f12e204097fb88beabc3262a1384f02b854a77eb39827e5e/sublime_info-0.1.0.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "335d9f1fa792b4ae596345b00aadfe39", "sha256": "2eb71b7a0c276858340885cabcc2ed2f17c0437ce32b794cd96a52bfb83b9594" }, "downloads": -1, "filename": "sublime_info-0.1.1.tar.gz", "has_sig": false, "md5_digest": "335d9f1fa792b4ae596345b00aadfe39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6628, "upload_time": "2013-10-15T10:27:28", "url": "https://files.pythonhosted.org/packages/2e/3f/c486fc5fbd937dd6dafaec027e069a4b8f5f36425f60489c6f645556be72/sublime_info-0.1.1.tar.gz" }, { "comment_text": "", "digests": { "md5": "3f8469a517e64c7abaf50f7bbd6af12c", "sha256": "615c4aeb79c09158a97aaba27c3d50457d827905e092089ed307a1256dc61b00" }, "downloads": -1, "filename": "sublime_info-0.1.1.zip", "has_sig": false, "md5_digest": "3f8469a517e64c7abaf50f7bbd6af12c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13721, "upload_time": "2013-10-15T10:27:31", "url": "https://files.pythonhosted.org/packages/cb/93/8458f76024ec1429a0fdce06edd821cb4a99b9c2582b4d96f318067e3ae9/sublime_info-0.1.1.zip" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e8685ddb6d3eeafc6355d9796715e9fb", "sha256": "dc695f62e468b79a6d53b4de43190b4338ab5d385f056a699281a466d8594af9" }, "downloads": -1, "filename": "sublime_info-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e8685ddb6d3eeafc6355d9796715e9fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5480, "upload_time": "2015-12-24T07:48:12", "url": "https://files.pythonhosted.org/packages/18/bf/f7e0bda6bbc5b93687c0bbc7169cae4bfeba47990b67fb583331c76a1a8d/sublime_info-0.1.2.tar.gz" }, { "comment_text": "", "digests": { "md5": "331546d8a0d2ac646f984853e21ab345", "sha256": "238d8338068d0d78fe0a8a9f0e102c0b32607cc6991926f8f8e9d83cab4015de" }, "downloads": -1, "filename": "sublime_info-0.1.2.zip", "has_sig": false, "md5_digest": "331546d8a0d2ac646f984853e21ab345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11946, "upload_time": "2015-12-24T07:48:17", "url": "https://files.pythonhosted.org/packages/50/ce/724a8a382df008b42d47ded9935d759164dc391ba8d7e867e315c8a865c6/sublime_info-0.1.2.zip" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "33dee03981a11ac3efeff70662fbd7b5", "sha256": "6399983f4e67a192f6214503a19866a32cefed90adc7223ceaba382acc5247da" }, "downloads": -1, "filename": "sublime_info-0.1.3.tar.gz", "has_sig": false, "md5_digest": "33dee03981a11ac3efeff70662fbd7b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5545, "upload_time": "2015-12-24T07:49:09", "url": "https://files.pythonhosted.org/packages/c4/03/b258a67dcbff49c7c3d3c087a02f6c9e40783cc0a292bb8db8d15ef3263a/sublime_info-0.1.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "92d4ce819dad17f6525bd51087b1c0a6", "sha256": "82233de05bd03cb234f87ed33b6bda3f018b9c5ee22b221621fa7e294820f6b0" }, "downloads": -1, "filename": "sublime_info-0.1.3.zip", "has_sig": false, "md5_digest": "92d4ce819dad17f6525bd51087b1c0a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12074, "upload_time": "2015-12-24T07:49:14", "url": "https://files.pythonhosted.org/packages/ce/fb/3557542e1316989bb9734174cb7de734daadb1541527ff775d9ba32fe3b0/sublime_info-0.1.3.zip" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "9fd36b81dc31ac916393ff67bc4b7d10", "sha256": "9f7ea1c1fccc52f02769629fd5a0d8dc984278633297630e5e326f324622c810" }, "downloads": -1, "filename": "sublime_info-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9fd36b81dc31ac916393ff67bc4b7d10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5641, "upload_time": "2015-12-24T08:00:12", "url": "https://files.pythonhosted.org/packages/78/f9/230f0f95226682b38bd693a8b006c2ac0149aaead5c943e2f303ad05c956/sublime_info-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "e6978d3e4af152d00d1e9db740325a56", "sha256": "1a0f1bd27b8f64ff37a336f28e300cd9c8961f13b0feb07255a8ddcceb4c1493" }, "downloads": -1, "filename": "sublime_info-0.2.0.zip", "has_sig": false, "md5_digest": "e6978d3e4af152d00d1e9db740325a56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12210, "upload_time": "2015-12-24T08:00:36", "url": "https://files.pythonhosted.org/packages/e4/de/bdfb9a719990ad85c45c40db30bf3e2a186692c4b6d664ac8a044eea6398/sublime_info-0.2.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9fd36b81dc31ac916393ff67bc4b7d10", "sha256": "9f7ea1c1fccc52f02769629fd5a0d8dc984278633297630e5e326f324622c810" }, "downloads": -1, "filename": "sublime_info-0.2.0.tar.gz", "has_sig": false, "md5_digest": "9fd36b81dc31ac916393ff67bc4b7d10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5641, "upload_time": "2015-12-24T08:00:12", "url": "https://files.pythonhosted.org/packages/78/f9/230f0f95226682b38bd693a8b006c2ac0149aaead5c943e2f303ad05c956/sublime_info-0.2.0.tar.gz" }, { "comment_text": "", "digests": { "md5": "e6978d3e4af152d00d1e9db740325a56", "sha256": "1a0f1bd27b8f64ff37a336f28e300cd9c8961f13b0feb07255a8ddcceb4c1493" }, "downloads": -1, "filename": "sublime_info-0.2.0.zip", "has_sig": false, "md5_digest": "e6978d3e4af152d00d1e9db740325a56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12210, "upload_time": "2015-12-24T08:00:36", "url": "https://files.pythonhosted.org/packages/e4/de/bdfb9a719990ad85c45c40db30bf3e2a186692c4b6d664ac8a044eea6398/sublime_info-0.2.0.zip" } ] }