jedi
python-devtools
Our great sponsors
jedi | python-devtools | |
---|---|---|
7 | 5 | |
5,652 | 937 | |
- | - | |
7.4 | 7.0 | |
2 days ago | 3 months ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jedi
-
:help jedi-vi doesn't work at all after installation via vim-plug
I don't use jedi at all, but from a quick glance at the README of the package you've installed, the code you've posted in your post installs the wrong repo; it seems davidhalter/jedi is just jedi's backend. To make it work with vim, install one of the plugins suggested in the README instead (it seems that davidhalter/jedi-vim) is the one you're looking for.
-
code auto-complete
Jedi: https://github.com/davidhalter/jedi
-
What are your bad python habits?
Or better, use refactoring tool like rope, jedi, or whatever you have in your IDE to rename them.
-
Get jedi working in Kate
Get jedi working in Kate · Issue #1539 · davidhalter/jedi
-
IDE Similar to PyCharm for Work
For text completion, Jedi. For automated refactoring, I highly recommend rope. Some of the previously mentioned plugins provides Vim integrations with these excellent tools.
-
Anybody using lsp-mode for python?
Take a look at some LSP servers that use Jedi https://github.com/davidhalter/jedi
-
The Database Inside Your Codebase
I've been playing with some ideas for creating a SQLite database of classes, functions and suchlike found in Python code, so I can analyze my codebases with SQL queries.
I've had some good initial results with https://github.com/davidhalter/jedi - which is the Python introspection library that powers various editor autocomplete implementations. I have a prototype which uses that to create a SQL database of functions, classes and places that they are used.
I've also been playing with https://github.com/github/semantic - it can parse Python, JavaScript and other languages and offers a --json-symbols option which dumps out a JSON object showing the symbols (functions, variables etc) found in the code.
python-devtools
-
Your favourite "less-known" Python features?
Check out devtools, it’s even more powerful
-
What are your bad python habits?
There’s also debug() from python-devtools that is an easy improvement over print() that doesn't involve changing your workflow.
- Printstack
-
Icecream: Never use print() to debug again in Python
__builtins__['debug'] = debug
(see https://github.com/samuelcolvin/python-devtools#usage-withou...)
This would work with icecream too.
The second advantage of not needing the import is that CI fails if you forget to remove all debug() commands.
What are some alternatives?
python-lsp-server - Fork of the python-language-server project, maintained by the Spyder IDE team and the community
ray - Debug with Ray to fix problems faster
python-language-server - An implementation of the Language Server Protocol for Python
snoop - A powerful set of Python debugging tools, based on PySnooper
sourcery - Instant AI code reviews to speed up your pull requests
icecream - 🍦 Never use print() to debug again.
Rope - a python refactoring library
snoop - Snoop — инструмент разведки на основе открытых данных (OSINT world)
Python-mode - Vim python-mode. PyLint, Rope, Pydoc, breakpoints from box.
PySnooper - Never use print for debugging again
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
pdbpp - pdb++, a drop-in replacement for pdb (the Python debugger)