Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Code Generators

    mr.igor 1.3

    Download button

    No screenshots available
    Downloads: 103  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Glick, Groundwire | More programs
    MIT/X Consortium Lic... / FREE
    October 3rd, 2011, 12:15 GMT [view history]
    ROOT / Programming / Code Generators

     Read user reviews (0)  Refer to a friend  Subscribe

    mr.igor description

    Mr. Igor provides the parts you need to build your Frankenprogram

    mr.igor is a pyflakes extension that will learn where you import things from, and then automatically fill in missing imports from the place they are most often imported.

    But how does it know?

     "It'th a knack."

    Usage: igor [--print | --reap] filename

    This script will record all imports from filename in Igor's database, and then add imports at the top of the file for any names that were not imported but were found in the database.

    If the --print option is specified then the rewritten file will be written to stdout. (This allows the use of igor as a filter for editors.) Otherwise the file will be modified inplace.

    If the --reap option is specified then imports will be added to the database from the specified file, but nothing will be written to stdout and the file will not be modified.

    Only "from x import y" style imports are tracked and inserted. Aliases ("from x import y as z") are not supported.

    mr.igor stores its database in ~/.mr.igor.db.

    Usage with TextMate

    Go to the TextMate Bundle Editor and add a new command with the following settings:

     Save
     Current File
     Command(s)

     #!/bin/bash
     igor --print $TM_FILEPATH


     Input
     None
     Output
     Replace Document
     Activation
     Key Equivalent: ⌘I
     Scope Selector
     source.python

    Now you can save the current file and run it through Igor using the ⌘I keyboard shortcut.

    Usage with Vim

    The following key mapping will configure ⌘I to run the current file through Igor and then reload the current buffer:

    nmap < D-i > :!igor %< CR > < bar > :e!< CR >


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Insert imports after initial set of comments, to fix issue when PEP0263 encoding is declared in python files. [naro]
    · Updated to be compatible with (and require) pyflakes 0.5. Tested with Python 2.6 and 2.7. [davisagli]

      


    TAGS:

    pyflakes extension | Frankenprogram builder | pyflakes | Frankenprogram | builder

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM