Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

autocomplete-python

Jedi based Python autocomplete for Atom

Subscribe to updates I use autocomplete-python


Statistics on autocomplete-python

Number of watchers on Github 205
Number of open issues 59
Average time to close an issue about 1 month
Main language Python
Average time to merge a PR about 20 hours
Open pull requests 4+
Closed pull requests 5+
Last commit over 1 year ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 778 KB
Homepage https://atom.io/p...
Organization / Authorautocomplete-python
Latest Releasev1.10.3
Contributors11
Page Updated
Do you use autocomplete-python? Leave a review!
View open issues (59)
View autocomplete-python activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating autocomplete-python for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Python Autocomplete Package Build Status

Python packages, variables, methods and functions with their arguments autocompletion in Atom powered by your choice of Jedi or Kite.

Please note that this package is sponsored by Kite and that the Kite code engine is cloud-powered. Type inference on your code is done on Kite's servers. More info is provided during the install screens of autocomplete-python. Please read Kite's privacy policy and FAQ carefully if you have chosen Kite as your completions engine.

See releases for release notes.

Jedi-driven release notes follow. For more about using the Kite completions engine see kite.com.

Demo

Features

  • Works with :apple: Mac OSX, :penguin: Linux and :checkered_flag: Windows.
  • Works with both :snake: Python 2 and 3.
  • Automatic lookup of virtual environments inside of your projects.
  • Configurable additional packages to include for completions.
  • Prints first N characters of statement value while completing variables.
  • Prints function arguments while completing functions.
  • Go-to-definition functionality, by default on Alt+Cmd+G/Ctrl+Alt+G. Thanks to @patrys for idea and implementation.
  • Method override functionality. Available as override-method command. Thanks to @pchomik for idea and help.
  • If you have Hyperclick installed you can click on anything to go-to-definition sample

  • Show usages of selected object sample

  • Rename across multiple files. It will not touch files outside of your project, but it will change VCS ignored files. I'm not responsible for any broken projects without VCS because of this. sample

Configuration

  • If using a virtualenv with third-party packages, everything should just work, but if it's not use the Python Executable Paths and/or Extra Paths For Packages configuration options to specify the virtualenv's site-packages. Or launch Atom from the activated virtualenv to get completion for your third-party packages
  • Be sure to check package settings and adjust them. Please read them carefully before creating any new issues
    • Set path to python executable if package cannot find it automatically
    • Set extra path if package cannot autocomplete external python libraries
    • Select one of autocomplete function parameters if you want function arguments to be completed

image

Common problems

  • Error: spawn UNKNOWN on Windows
    • Solution: Find your python executable and uncheck the Run this program as an administrator. See issue #22
  • You have a separated folder for virtualenvs (e.g. by using virtualenvwrapper) and all your virtualenvs are stored in e.g. ~/.virtualenvs/
    • Create symlink to venv from your project root
    • OR
    • Add virtualenv folder as additional project root
    • OR
    • Use a virtualenv with the same name as the folder name of your project and use $PROJECT_NAME variable to set path to python executable. You can use same variable to set extra paths as well. For example: /Users/name/.virtualenvs/$PROJECT_NAME/bin/python3.4
    • See issue #143
  • No argument completion after I type left parenthesis character
    • Likely this is because you have non standard keyboard layout. Try to install the keyboard-localization package from: https://atom.io/packages/keyboard-localization and use keymap generator to check what unicode character being generated after you type (. Currently we trigger argument completion only on U+0028, U+0038 and U+0039.
autocomplete-python open issues Ask a question     (View All Issues)
  • almost 3 years Unexpected Token W Error
  • about 3 years Autocomplete doesn't always work
  • about 3 years sh: sysctl: command not found
  • about 3 years Go to definition opens empty dropdown box and immediately closes it again
  • about 3 years Huge memory usage in Linux and OSX (Not tested in windows)
  • about 3 years Use already installed jedi if possible
  • about 3 years Goto Definition not working on asynchronous methods
  • about 3 years Feature request: support autocomplete for remote servers(via ssh)
  • over 3 years Add support for short executable names in PATH
  • over 3 years Slow startup
  • over 3 years "Override Method" functionality issues
  • over 3 years Add functionality to show method signature on-demand
autocomplete-python open pull requests (View All Pulls)
  • [WIP] Show related docstrings in message panel
  • Update provider.coffee
  • Use private jedi cache to avoid conflicts with system installed jedi
  • [WIP] Tests
autocomplete-python questions on Stackoverflow (View All Questions)
  • vim: unable to autocomplete python package path
  • Sublime Text 2. Autocomplete python `from`
  • TAB autocomplete python CLI
  • Setting up emacs with autocomplete, python-mode, and rope
autocomplete-python list of languages used
autocomplete-python latest release notes
v1.10.3 v1.10.3
  • Fix variable substitution for interpreter path (https://github.com/autocomplete-python/autocomplete-python/pull/341)
v1.10.0
  • Updates install flow to make choice between Kite and Jedi more clear
  • Removes all tracking
v1.9.1 v1.9.1
  • Don't destructure TouchBar if it doesn't exist (https://github.com/autocomplete-python/autocomplete-python/pull/319)
Other projects in Python