Skip to main content

Quickly open Python modules in your text editor.

Project description

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ped-1.4.0.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file ped-1.4.0.tar.gz.

File metadata

  • Download URL: ped-1.4.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ped-1.4.0.tar.gz
Algorithm Hash digest
SHA256 5f3a6e9e7767daa7d1fb8f7f19bdeda9c22dc316ca3f54a35b61d694ac5449a7
MD5 070aedf9ffbcfea52abc735b82e71f5b
BLAKE2b-256 55064e9ec549adb0c39d630d27a63f2d791bf55d507904c2e60dbfe850b3e2f7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page