All Projects β†’ sloria β†’ ped

sloria / ped

Licence: MIT license
πŸ‘ž Quickly open Python modules in your text editor

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to ped

Blender Power Sequencer
Add-on for video editing in Blender 3D: edit videos faster! Included in Blender 2.81+
Stars: ✭ 577 (+1307.32%)
Mutual labels:  editing
React Contenteditable
React component for a div with editable contents
Stars: ✭ 1,057 (+2478.05%)
Mutual labels:  editing
Pdf Lib
Create and modify PDF documents in any JavaScript environment
Stars: ✭ 3,426 (+8256.1%)
Mutual labels:  editing
Frame.js
JavaScript Demo Editor
Stars: ✭ 801 (+1853.66%)
Mutual labels:  editing
Emacs Smart Hungry Delete
An emacs package to delete whitespace between words, parenthesis and other delimiters in a (not very) smart way.
Stars: ✭ 30 (-26.83%)
Mutual labels:  editing
Vue Table Dynamic
πŸŽ‰ A dynamic table with sorting, filtering, editing, pagination, multiple select, etc.
Stars: ✭ 106 (+158.54%)
Mutual labels:  editing
Substance
A JavaScript library for web-based content editing.
Stars: ✭ 2,737 (+6575.61%)
Mutual labels:  editing
frontend edit
🐣 REDAXO Frontend-Toolbar und Editbuttons an jedem Slice, um direkt Module bearbeiten zu kânnen.
Stars: ✭ 30 (-26.83%)
Mutual labels:  editing
Texture
A visual editor for research.
Stars: ✭ 958 (+2236.59%)
Mutual labels:  editing
Evil
The extensible vi layer for Emacs.
Stars: ✭ 2,265 (+5424.39%)
Mutual labels:  editing
Booktype
Booktype is a free, open source platform that produces beautiful, engaging books formatted for print, Amazon, iBooks and almost any ereader within minutes.
Stars: ✭ 810 (+1875.61%)
Mutual labels:  editing
Book And Ebook Writing Resources
πŸ“š Tools, articles, publishers... everything you need to know about writing a book or an eBook
Stars: ✭ 8 (-80.49%)
Mutual labels:  editing
Tiktokbot
A TikTokBot that downloads trending tiktok videos and compiles them using FFmpeg
Stars: ✭ 126 (+207.32%)
Mutual labels:  editing
Howl
The Howl Editor
Stars: ✭ 577 (+1307.32%)
Mutual labels:  editing
forms
Web forms with Substance.
Stars: ✭ 14 (-65.85%)
Mutual labels:  editing
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (+753.66%)
Mutual labels:  editing
Mform
Spielend einfach umfangreiche Modul-Input-Formulare erzeugen.
Stars: ✭ 65 (+58.54%)
Mutual labels:  editing
abeamer
frame-by-frame Web Animation framework
Stars: ✭ 49 (+19.51%)
Mutual labels:  editing
LoIDE
Web-based IDE for Logic Programming
Stars: ✭ 21 (-48.78%)
Mutual labels:  editing
Oni
Oni: Modern Modal Editing - powered by Neovim
Stars: ✭ 11,466 (+27865.85%)
Mutual labels:  editing

ped

pypi badge Build Status Code style: Black

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

From PyPI:

$ pip install ped

Or, run it with pipx:

$ pipx run ped --help

Changing the default editor

ped will try to use 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

Opening directories

By default, ped will open __init__.py files when a package name is passed. If you would rather open the package's directory, set the PED_OPEN_DIRECTORIES environment variable.

# .zshrc or .bashrc
# Open package directories instead of __init__.py
export PED_OPEN_DIRECTORIES=1

Tab-completion

The ped package contains tab-completion scripts for bash and zsh. Place these files in your system's completion directories. The ped.install_completion module can be run as a script to output the files to a given location. It determines the correct completion file from the $SHELL environment variable.

Bash completion

To install bash completion, run:

# The path given here will depend on your OS
$ python -m ped.install_completion > /usr/local/etc/bash_completion.d

Zsh completion

To install zsh completion, run:

# The path given here will depend on your OS
$ python -m ped.install_completion > /usr/local/share/zsh/site-functions

Editor integrations

Kudos

This was inspired by IPython's %edit magic.

Changelog

2.2.0 (unreleased)

  • Test against Python 3.9.

2.1.0 (2020-03-18)

  • Set PED_OPEN_DIRECTORIES=1 to open package directories instead of opening __init__.py files. Thanks Alex Nordin.

2.0.1 (2018-01-27)

Bug fixes:

  • Properly handle imports that don't correspond to a file.

2.0.0 (2019-01-22)

  • Drop support for Python 2.7 and 3.5. Only Python>=3.6 is supported.
  • ped can be run its own virtual environment separate from the user's virtual environment. Therefore, ped can be installed with pipsi or pipx.
  • install_completion script writes to stdout and detemrmines script from $SHELL.

1.6.0 (2019-01-14)

  • Test against Python 3.7.

Note: This is the last version to support Python 2.

1.5.1

  • Minor code cleanups.
  • Test against Python 2.7, 3.5, and 3.6. Support for older versions is dropped.

1.5.0

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].