Metadata-Version: 1.0
Name: sublime_helper
Version: 0.0.1
Summary: Sublime Text 2 python helper
Home-page: http://github.com/cancerhermit/sublime_helper/
Author: cancerhermit
Author-email: cancerhermit@gmail.com
License: GPL
Description: Installing
        ----------
        
        ::
        
            pip install sublime_helper
        
        Usage
        -----
        
        use sublime\_helper in YOUR Sublime plugin:
        
        Import module:
        
        ::
        
            try:
                from sublime_helper import thread
            except ImportError:
                from platform import python_version
                error_message("""sublime_helper ImportError
            pip-%s install sublime_helper""" % python_version()[0:3])
            except Exception,e:
                error_message(str(e))
        
        YOUR **package path**:
        
        ::
        
            from sublime_helper import package_path
            package_path()
            >>> /path/to/Sublime Text 2/Packages/YOUR_package
        
        Execute function in **thread** with **progressbar**:
        
        ::
        
            from sublime_helper import thread
            thread(function,callback=None,on_exception=lambda e:error_message(str(e)),status="")
        
        OS detect:
        
        ::
        
            from sublime_helper import its
            its.linux,its.osx,its.windows
            >>> False,True,False
        
        Shell execute:
        
        ::
        
            from sublime_helper import connect,run
        
        `envoy <https://github.com/kennethreitz/envoy>`_ connect,run functions
        
        Syntax functions:
        
        ::
        
            from sublime_helper import javascript,json,markdown,python,syntax
        
            javascript(view=active_window().active_view()) # True if current syntax is JavaScript
            json(view=active_window().active_view()) # True if current syntax is JSON
            markdown(view=active_window().active_view()) # True if current syntax is Markdown
            python(view=active_window().active_view()) # True if current syntax is Python
            syntax(language,view=active_window().active_view()) # True if current syntax is "language"
        
        
Keywords: Mac OS osascript
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Environment :: Console
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
