ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Super​Python

by clarabstract ALL

Adds tab-completion to Python's somewhat verbose super() construct.

Details

Installs

  • Total 6K
  • Win 3K
  • Mac 878
  • Linux 2K
Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29
Windows 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 2 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
01234Mar 14Mar 11Mar 8Mar 5Mar 2Feb 27Feb 24Feb 21Feb 18Feb 15Feb 12Feb 9Feb 6Feb 3Jan 31Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 0Mar 12 Linux: 0 Mac: 0 Windows: 0Mar 11 Linux: 0 Mac: 0 Windows: 0Mar 10 Linux: 0 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 0Mar 7 Linux: 0 Mac: 0 Windows: 0Mar 6 Linux: 2 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 0 Windows: 0Mar 4 Linux: 0 Mac: 0 Windows: 0Mar 3 Linux: 1 Mac: 0 Windows: 1Mar 2 Linux: 0 Mac: 0 Windows: 1Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 1Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 0 Windows: 0Feb 25 Linux: 0 Mac: 0 Windows: 0Feb 24 Linux: 0 Mac: 0 Windows: 0Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 0 Windows: 0Feb 20 Linux: 0 Mac: 0 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 1Feb 18 Linux: 0 Mac: 0 Windows: 0Feb 17 Linux: 1 Mac: 0 Windows: 0Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 0 Windows: 0Feb 14 Linux: 0 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 1 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 1Feb 10 Linux: 0 Mac: 0 Windows: 0Feb 9 Linux: 0 Mac: 0 Windows: 0Feb 8 Linux: 0 Mac: 0 Windows: 0Feb 7 Linux: 0 Mac: 0 Windows: 0Feb 6 Linux: 0 Mac: 0 Windows: 0Feb 5 Linux: 0 Mac: 0 Windows: 1Feb 4 Linux: 0 Mac: 0 Windows: 0Feb 3 Linux: 0 Mac: 0 Windows: 0Feb 2 Linux: 1 Mac: 0 Windows: 0Feb 1 Linux: 0 Mac: 0 Windows: 0Jan 31 Linux: 0 Mac: 0 Windows: 0Jan 30 Linux: 0 Mac: 0 Windows: 0Jan 29 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 0Mar 12 Linux: 0 Mac: 0 Windows: 0Mar 11 Linux: 0 Mac: 0 Windows: 0Mar 10 Linux: 0 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 0Mar 7 Linux: 0 Mac: 0 Windows: 0Mar 6 Linux: 2 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 0 Windows: 0Mar 4 Linux: 0 Mac: 0 Windows: 0Mar 3 Linux: 1 Mac: 0 Windows: 1Mar 2 Linux: 0 Mac: 0 Windows: 1Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 1Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 0 Windows: 0Feb 25 Linux: 0 Mac: 0 Windows: 0Feb 24 Linux: 0 Mac: 0 Windows: 0Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 0 Windows: 0Feb 20 Linux: 0 Mac: 0 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 1Feb 18 Linux: 0 Mac: 0 Windows: 0Feb 17 Linux: 1 Mac: 0 Windows: 0Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 0 Windows: 0Feb 14 Linux: 0 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 1 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 1Feb 10 Linux: 0 Mac: 0 Windows: 0Feb 9 Linux: 0 Mac: 0 Windows: 0Feb 8 Linux: 0 Mac: 0 Windows: 0Feb 7 Linux: 0 Mac: 0 Windows: 0Feb 6 Linux: 0 Mac: 0 Windows: 0Feb 5 Linux: 0 Mac: 0 Windows: 1Feb 4 Linux: 0 Mac: 0 Windows: 0Feb 3 Linux: 0 Mac: 0 Windows: 0Feb 2 Linux: 1 Mac: 0 Windows: 0Feb 1 Linux: 0 Mac: 0 Windows: 0Jan 31 Linux: 0 Mac: 0 Windows: 0Jan 30 Linux: 0 Mac: 0 Windows: 0Jan 29 Linux: 0 Mac: 1 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 0Mar 13 Linux: 0 Mac: 0 Windows: 0Mar 12 Linux: 0 Mac: 0 Windows: 0Mar 11 Linux: 0 Mac: 0 Windows: 0Mar 10 Linux: 0 Mac: 0 Windows: 0Mar 9 Linux: 0 Mac: 0 Windows: 0Mar 8 Linux: 0 Mac: 0 Windows: 0Mar 7 Linux: 0 Mac: 0 Windows: 0Mar 6 Linux: 2 Mac: 0 Windows: 0Mar 5 Linux: 1 Mac: 0 Windows: 0Mar 4 Linux: 0 Mac: 0 Windows: 0Mar 3 Linux: 1 Mac: 0 Windows: 1Mar 2 Linux: 0 Mac: 0 Windows: 1Mar 1 Linux: 0 Mac: 0 Windows: 0Feb 28 Linux: 0 Mac: 0 Windows: 1Feb 27 Linux: 0 Mac: 0 Windows: 0Feb 26 Linux: 0 Mac: 0 Windows: 0Feb 25 Linux: 0 Mac: 0 Windows: 0Feb 24 Linux: 0 Mac: 0 Windows: 0Feb 23 Linux: 0 Mac: 0 Windows: 0Feb 22 Linux: 0 Mac: 0 Windows: 0Feb 21 Linux: 0 Mac: 0 Windows: 0Feb 20 Linux: 0 Mac: 0 Windows: 0Feb 19 Linux: 0 Mac: 0 Windows: 1Feb 18 Linux: 0 Mac: 0 Windows: 0Feb 17 Linux: 1 Mac: 0 Windows: 0Feb 16 Linux: 0 Mac: 0 Windows: 0Feb 15 Linux: 0 Mac: 0 Windows: 0Feb 14 Linux: 0 Mac: 0 Windows: 0Feb 13 Linux: 0 Mac: 0 Windows: 0Feb 12 Linux: 0 Mac: 1 Windows: 0Feb 11 Linux: 0 Mac: 0 Windows: 1Feb 10 Linux: 0 Mac: 0 Windows: 0Feb 9 Linux: 0 Mac: 0 Windows: 0Feb 8 Linux: 0 Mac: 0 Windows: 0Feb 7 Linux: 0 Mac: 0 Windows: 0Feb 6 Linux: 0 Mac: 0 Windows: 0Feb 5 Linux: 0 Mac: 0 Windows: 1Feb 4 Linux: 0 Mac: 0 Windows: 0Feb 3 Linux: 0 Mac: 0 Windows: 0Feb 2 Linux: 1 Mac: 0 Windows: 0Feb 1 Linux: 0 Mac: 0 Windows: 0Jan 31 Linux: 0 Mac: 0 Windows: 0Jan 30 Linux: 0 Mac: 0 Windows: 0Jan 29 Linux: 0 Mac: 1 Windows: 0

Readme

Source
raw.​githubusercontent.​com

SuperPython

Adds tab-completion to Python's somewhat verbose super() construct. Just hit tab after a super keyword and a snippet will be inserted contained the likely current class and method name, with the existing arguments already filled.

Example:

class AHappyClass(JustSwellBase):
    def __init__(self, required_arg, and_another, *anything_else, **enough_already):
        super#<tab>

# Becomes:

class AHappyClass(JustSwellBase):
    def __init__(self, required_arg, and_another, *anything_else, **enough_already):
        super(AHappyClass, self).__init__(required_arg, and_another, *anything_else, **enough_already)

SublimeText's own parsing is used to guess the “current” class name, method name and arguments. Also snippet checks indent of current line to find appropriate class and method more accurately in cases if there's an inner class or method definition between the call to super and the real method signature.

Installation

You know the drill. To install this plugin, you have two options:

  1. Package Control (recommended). If you have Sublime Package Control installed, simply search for SuperPython to install.

  2. Manual. Clone source code to Sublime Text Packages folder:

$ git clone https://github.com/rubyruy/SuperPython