Skip to content
/ ped Public
forked from sloria/ped

👞 Quickly open Python modules in your text editor

License

Notifications You must be signed in to change notification settings

takluyver/ped

 
 

Repository files navigation

ped

Latest version

Travis-CI

Quickly open Python modules in your text editor.

$ ped django
$ ped django.core.urlresolvers
$ ped django.views.generic.TemplateView

# Partial name matching
$ ped django.http.resp
Editing django.http.response...
...Done.

# Specify which editor to use
$ PED_EDITOR=vim ped django.shortcuts

ped will find your modules in the currently-active virtual environment.

Get it now

$ pip install ped

Changing the default editor

ped will try to find your favorite text editor. If you want to override the editor ped uses, set the PED_EDITOR environment variable.

# .zshrc or .bashrc
# Use Sublime Text with ped
export PED_EDITOR=subl

Editor integrations

Kudos

This was inspired by IPython's %edit magic.

Changelog

1.4.0

  • Add --info argument for outputting name, file path, and line number of modules/functions/classes.
  • Fix: Support line numbers in gvim.

1.3.0

  • If a class or function is passed, the editor will open up the file at the correct line number (for supported editors).

1.2.1

  • Fix for Py2 compatibility.

1.2.0

  • Add partial name matching.

1.1.0

  • Add support for editing functions and classes.

1.0.2

  • Fix for editing subpackages, e.g. ped pkg.subpkg.

About

👞 Quickly open Python modules in your text editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%