Python.py
made by https://0x3d.site
GitHub - ycm-core/YouCompleteMe: A code-completion engine for VimA code-completion engine for Vim. Contribute to ycm-core/YouCompleteMe development by creating an account on GitHub.
Visit Site
GitHub - ycm-core/YouCompleteMe: A code-completion engine for Vim
YouCompleteMe: a code-completion engine for Vim
Help, Advice, Support
Looking for help, advice, or support? Having problems getting YCM to work?
First carefully read the installation instructions for your OS.
We recommend you use the supplied install.py
- the "full" installation guide
is for rare, advanced use cases and most users should use install.py
.
If the server isn't starting and you're getting a "YouCompleteMe unavailable" error, check the Troubleshooting guide.
Next, check the User Guide section on the semantic completer that you are using. For C/C++/Objective-C/Objective-C++/CUDA, you must read this section.
Finally, check the FAQ.
If, after reading the installation and user guides, and checking the FAQ, you're still having trouble, check the contacts section below for how to get in touch.
Please do NOT go to #vim on Freenode for support. Please contact the YouCompleteMe maintainers directly using the contact details below.
Vundle
Please note that the below instructions suggest using Vundle. Currently there are problems with Vundle, so here are some alternative instructions using Vim packages.
Contents
- Intro
- Installation
- Quick Feature Summary
- User Guide
- General Usage
- Client-Server Architecture
- Completion String Ranking
- General Semantic Completion
- Signature Help
- Semantic Highlighting
- Inlay Hints
- C-family Semantic Completion
- Java Semantic Completion
- C# Semantic Completion
- Python Semantic Completion
- Rust Semantic Completion
- Go Semantic Completion
- JavaScript and TypeScript Semantic Completion
- Semantic Completion for Other Languages
- LSP Configuration
- Writing New Semantic Completers
- Diagnostic Display
- Symbol Search
- Type/Call Hierarchy
- Commands
- Functions
- Autocommands
- Options
- FAQ
- Contributor Code of Conduct
- Contact
- License
- Sponsorship
Intro
YouCompleteMe is a fast, as-you-type, fuzzy-search code completion, comprehension and refactoring engine for Vim.
It has several completion engines built-in and supports any protocol-compliant Language Server, so can work with practically any language. YouCompleteMe contains:
- an identifier-based engine that works with every programming language,
- a powerful clangd-based engine that provides native semantic code completion for C/C++/Objective-C/Objective-C++/CUDA (from now on referred to as "the C-family languages"),
- a Jedi-based completion engine for Python 2 and 3,
- an OmniSharp-Roslyn-based completion engine for C#,
- a Gopls-based completion engine for Go,
- a TSServer-based completion engine for JavaScript and TypeScript,
- a rust-analyzer-based completion engine for Rust,
- a jdt.ls-based completion engine for Java.
- a generic Language Server Protocol implementation for any language
- and an omnifunc-based completer that uses data from Vim's omnicomplete system to provide semantic completions for many other languages (Ruby, PHP, etc.).
Here's an explanation of what happened in the last GIF demo above.
First, realize that no keyboard shortcuts had to be pressed to get the list of completion candidates at any point in the demo. The user just types and the suggestions pop up by themselves. If the user doesn't find the completion suggestions relevant and/or just wants to type, they can do so; the completion engine will not interfere.
When the user sees a useful completion string being offered, they press the TAB key to accept it. This inserts the completion string. Repeated presses of the TAB key cycle through the offered completions.
If the offered completions are not relevant enough, the user can continue typing to further filter out unwanted completions.
A critical thing to notice is that the completion filtering is NOT based on
the input being a string prefix of the completion (but that works too). The
input needs to be a subsequence match of a completion. This is a fancy way
of saying that any input characters need to be present in a completion string in
the order in which they appear in the input. So abc
is a subsequence of
xaybgc
, but not of xbyxaxxc
. After the filter, a complicated sorting system
ranks the completion strings so that the most relevant ones rise to the top of
the menu (so you usually need to press TAB just once).
All of the above works with any programming language because of the identifier-based completion engine. It collects all of the identifiers in the current file and other files you visit (and your tags files) and searches them when you type (identifiers are put into per-filetype groups).
The demo also shows the semantic engine in use. When the user presses .
, ->
or ::
while typing in insert mode (for C++; different triggers are used for
other languages), the semantic engine is triggered (it can also be triggered
with a keyboard shortcut; see the rest of the docs).
The last thing that you can see in the demo is YCM's diagnostic display features (the little red X that shows up in the left gutter; inspired by Syntastic) if you are editing a C-family file. As the completer engine compiles your file and detects warnings or errors, they will be presented in various ways. You don't need to save your file or press any keyboard shortcut to trigger this, it "just happens" in the background.
And that's not all...
YCM might be the only Vim completion engine with the correct Unicode support. Though we do assume UTF-8 everywhere.
YCM also provides semantic IDE-like features in a number of languages, including:
- displaying signature help (argument hints) when entering the arguments to a function call (Vim only)
- finding declarations, definitions, usages, etc. of identifiers, and an interactive symbol finder
- displaying type information for classes, variables, functions etc.,
- displaying documentation for methods, members, etc. in the preview window, or in a popup next to the cursor (Vim only)
- fixing common coding errors, like missing semi-colons, typos, etc.,
- semantic renaming of variables across files,
- formatting code,
- removing unused imports, sorting imports, etc.
For example, here's a demo of signature help:
Below we can see YCM being able to do a few things:
- Retrieve references across files
- Go to declaration/definition
- Expand
auto
in C++ - Fix some common errors, and provide refactorings, with
FixIt
- Not shown in the GIF are
GoToImplementation
andGoToType
for servers that support it.
And here's some documentation being shown in a hover popup, automatically and manually:
Features vary by file type, so make sure to check out the file type feature summary and the full list of completer subcommands to find out what's available for your favourite languages.
You'll also find that YCM has filepath completers (try typing ./
in a file)
and a completer that integrates with UltiSnips.
Installation
Requirements
Runtime | Min Version | Recommended Version (full support) | Python |
---|---|---|---|
Vim | 9.1.0016 | 9.1.0016 | 3.8 |
Neovim | 0.5 | Vim 9.1.0016 | 3.8 |
Supported Vim Versions
Our policy is to support the Vim version that's in the latest LTS of Ubuntu.
Vim must have a working Python 3 runtime.
For Neovim users, our policy is to require the latest released version. Currently, Neovim 0.5.0 is required. Please note that some features are not available in Neovim, and Neovim is not officially supported.
Supported Python runtime
YCM has two components: A server and a client. Both the server and client require Python 3.8 or later 3.x release.
For the Vim client, Vim must be, compiled with --enable-shared
(or
--enable-framework
on macOS). You can check if this is working with :py3 import sys; print( sys.version)
. It should say something like 3.8.2 (...)
.
For Neovim, you must have a python 3.8 runtime and the Neovim python
extensions. See Neovim's :help provider-python
for how to set that up.
For the server, you must run the install.py
script with a python 3.8 (or
later) runtime. Anaconda etc. are not supported. YCM will remember the runtime
you used to run install.py
and will use that when launching the server, so if
you usually use anaconda, then make sure to use the full path to a real cpython3,
e.g. /usr/bin/python3 install.py --all
etc.
Our policy is to support the python3 version that's available in the latest Ubuntu LTS (similar to our Vim version policy). We don't increase the Python runtime version without a reason, though. Typically, we do this when the current python version we're using goes out of support. At that time we will typically pick a version that will be supported for a number of years.
Supported Compilers
In order to provide the best possible performance and stability, ycmd has updated its code to C++17. This requires a version bump of the minimum supported compilers. The new requirements are:
Compiler | Current Min |
---|---|
GCC | 8 |
Clang | 7 |
MSVC | 15.7 (VS 2017) |
YCM requires CMake 3.13 or greater. If your CMake is too old, you may be able to
simply pip install --user cmake
to get a really new version.
Individual completer requirements
When enabling language support for a particular language, there may be runtime requirements, such as needing a very recent Java Development Kit for Java support. In general, YCM is not in control of the required versions for the downstream compilers, though we do our best to signal where we know them.
macOS
Quick start, installing all completers
- Install YCM plugin via Vundle
- Install CMake, MacVim and Python 3; Note that the pre-installed macOS system Vim is not supported (due to it having broken Python integration).
$ brew install cmake python go nodejs
-
Install mono from Mono Project (NOTE: on Intel Macs you can also
brew install mono
. On arm Macs, you may require Rosetta) -
For Java support you must install a JDK, one way to do this is with Homebrew:
$ brew install java
$ sudo ln -sfn $(brew --prefix java)/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
-
Pre-installed macOS system Vim does not support Python 3. So you need to install either a Vim that supports Python 3 OR MacVim with Homebrew:
- Option 1: Installing a Vim that supports Python 3
brew install vim
- Option 2: Installing MacVim
brew install macvim
-
Compile YCM.
-
For Intel and arm64 Macs, the bundled libclang/clangd work:
cd ~/.vim/bundle/YouCompleteMe python3 install.py --all
-
If you have troubles with finding system frameworks or C++ standard library, try using the homebrew llvm:
brew install llvm cd ~/.vim/bundle/YouCompleteMe python3 install.py --system-libclang --all
And edit your vimrc to add the following line to use the Homebrew llvm's clangd:
" Use homebrew's clangd let g:ycm_clangd_binary_path = trim(system('brew --prefix llvm')).'/bin/clangd'
-
-
For using an arbitrary LSP server, check the relevant section
Explanation for the quick start
These instructions (using install.py
) are the quickest way to install
YouCompleteMe, however they may not work for everyone. If the following
instructions don't work for you, check out the full installation
guide.
A supported Vim version with Python 3 is required. MacVim is a good option, even if you only use the terminal. YCM won't work with the pre-installed Vim from Apple as its Python support is broken. If you don't already use a Vim that supports Python 3 or MacVim, install it with Homebrew. Install CMake as well:
brew install vim cmake
OR
brew install macvim cmake
Install YouCompleteMe with Vundle.
Remember: YCM is a plugin with a compiled component. If you update YCM
using Vundle and the ycm_core
library APIs have changed (happens
rarely), YCM will notify you to recompile it. You should then rerun the install
process.
NOTE: If you want C-family completion, you MUST have the latest Xcode
installed along with the latest Command Line Tools (they are installed
automatically when you run clang
for the first time, or manually by running
xcode-select --install
)
Compiling YCM with semantic support for C-family languages through clangd:
cd ~/.vim/bundle/YouCompleteMe
./install.py --clangd-completer
Compiling YCM without semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe
./install.py
The following additional language support options are available:
- C# support: install by downloading the Mono macOS package
and add
--cs-completer
when callinginstall.py
. - Go support: install Go and add
--go-completer
when callinginstall.py
. - JavaScript and TypeScript support: install Node.js 18+ and npm and
add
--ts-completer
when callinginstall.py
. - Rust support: add
--rust-completer
when callinginstall.py
. - Java support: install JDK 17 and add
--java-completer
when callinginstall.py
.
To simply compile with everything enabled, there's a --all
flag. So, to
install with all language features, ensure xbuild
, go
, node
and npm
tools are installed and in your PATH
, then simply run:
cd ~/.vim/bundle/YouCompleteMe
./install.py --all
That's it. You're done. Refer to the User Guide section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, you will need to provide the compilation flags for your project to YCM. It's all in the User Guide.
YCM comes with sane defaults for its options, but you still may want to take a look at what's available for configuration. There are a few interesting options that are conservatively turned off by default that you may want to turn on.
Linux 64-bit
The following assume you're using Ubuntu 24.04.
Quick start, installing all completers
- Install YCM plugin via Vundle
- Install CMake, Vim and Python
apt install build-essential cmake vim-nox python3-dev
- Install mono-complete, go, node, java, and npm
apt install mono-complete golang nodejs openjdk-17-jdk openjdk-17-jre npm
- Compile YCM
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all
- For plugging an arbitrary LSP server, check the relevant section
Explanation for the quick start
These instructions (using install.py
) are the quickest way to install
YouCompleteMe, however they may not work for everyone. If the following
instructions don't work for you, check out the full installation
guide.
Make sure you have a supported version of Vim with Python 3 support and a supported compiler. The latest LTS of Ubuntu is the minimum platform for simple installation. For earlier releases or other distributions, you may have to do some work to acquire the dependencies.
If your Vim version is too old, you may need to compile Vim from source (don't worry, it's easy).
Install YouCompleteMe with Vundle.
Remember: YCM is a plugin with a compiled component. If you update YCM
using Vundle and the ycm_core
library APIs have changed (which happens rarely), YCM
will notify you to recompile it. You should then rerun the installation process.
Install development tools, CMake, and Python headers:
- Fedora-like distributions:
sudo dnf install cmake gcc-c++ make python3-devel
- Ubuntu LTS:
sudo apt install build-essential cmake3 python3-dev
Compiling YCM with semantic support for C-family languages through clangd:
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --clangd-completer
Compiling YCM without semantic support for C-family languages:
cd ~/.vim/bundle/YouCompleteMe
python3 install.py
The following additional language support options are available:
- C# support: install Mono and add
--cs-completer
when callinginstall.py
. - Go support: install Go and add
--go-completer
when callinginstall.py
. - JavaScript and TypeScript support: install Node.js 18+ and npm and
add
--ts-completer
when callinginstall.py
. - Rust support: add
--rust-completer
when callinginstall.py
. - Java support: install JDK 17 and add
--java-completer
when callinginstall.py
.
To simply compile with everything enabled, there's a --all
flag. So, to
install with all language features, ensure xbuild
, go
, node
, and npm
tools are installed and in your PATH
, then simply run:
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --all
That's it. You're done. Refer to the User Guide section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, you will need to provide the compilation flags for your project to YCM. It's all in the User Guide.
YCM comes with sane defaults for its options, but you still may want to take a look at what's available for configuration. There are a few interesting options that are conservatively turned off by default that you may want to turn on.
Windows
Quick start, installing all completers
- Install YCM plugin via Vundle
- Install Visual Studio Build Tools 2019
- Install CMake, Vim and Python
- Install go, node and npm
- Compile YCM
cd YouCompleteMe
python3 install.py --all
- Add
set encoding=utf-8
to your vimrc - For plugging an arbitrary LSP server, check the relevant section
Explanation for the quick start
These instructions (using install.py
) are the quickest way to install
YouCompleteMe, however they may not work for everyone. If the following
instructions don't work for you, check out the full installation
guide.
Important: we assume that you are using the cmd.exe
command prompt and
that you know how to add an executable to the PATH environment variable.
Make sure you have a supported Vim version with Python 3 support. You
can check the version and which Python is supported by typing :version
inside
Vim. Look at the features included: +python3/dyn
for Python 3.
Take note of the Vim architecture, i.e. 32 or
64-bit. It will be important when choosing the Python installer. We recommend
using a 64-bit client. Daily updated installers of 32-bit and 64-bit Vim with
Python 3 support are available.
Add the following line to your vimrc if not already present.:
set encoding=utf-8
This option is required by YCM. Note that it does not prevent you from editing a
file in another encoding than UTF-8. You can do that by specifying the ++enc
argument to the :e
command.
Install YouCompleteMe with Vundle.
Remember: YCM is a plugin with a compiled component. If you update YCM
using Vundle and the ycm_core
library APIs have changed (happens
rarely), YCM will notify you to recompile it. You should then rerun the install
process.
Download and install the following software:
- Python 3. Be sure to pick the version
corresponding to your Vim architecture. It is Windows x86 for a 32-bit Vim
and Windows x86-64 for a 64-bit Vim. We recommend installing Python 3.
Additionally, the version of Python you install must match up exactly with
the version of Python that Vim is looking for. Type
:version
and look at the bottom of the page at the list of compiler flags. Look for flags that look similar to-DDYNAMIC_PYTHON3_DLL=\"python36.dll\"
. This indicates that Vim is looking for Python 3.6. You'll need one or the other installed, matching the version number exactly. - CMake. Add CMake executable to the PATH environment variable.
- Build Tools for Visual Studio 2019. During setup, select C++ build tools in Workloads.
Compiling YCM with semantic support for C-family languages through clangd:
cd %USERPROFILE%/vimfiles/bundle/YouCompleteMe
python install.py --clangd-completer
Compiling YCM without semantic support for C-family languages:
cd %USERPROFILE%/vimfiles/bundle/YouCompleteMe
python install.py
The following additional language support options are available:
- C# support: add
--cs-completer
when callinginstall.py
. Be sure that the build utilitymsbuild
is in your PATH. - Go support: install Go and add
--go-completer
when callinginstall.py
. - JavaScript and TypeScript support: install Node.js 18+ and npm and
add
--ts-completer
when callinginstall.py
. - Rust support: add
--rust-completer
when callinginstall.py
. - Java support: install JDK 17 and add
--java-completer
when callinginstall.py
.
To simply compile with everything enabled, there's a --all
flag. So, to
install with all language features, ensure msbuild
, go
, node
and npm
tools are installed and in your PATH
, then simply run:
cd %USERPROFILE%/vimfiles/bundle/YouCompleteMe
python install.py --all
You can specify the Microsoft Visual C++ (MSVC) version using the --msvc
option. YCM officially supports MSVC 15 (2017), MSVC 16 (Visual Studio 2019)
and MSVC 17 (Visual Studio 17 2022).
That's it. You're done. Refer to the User Guide section on how to use YCM. Don't forget that if you want the C-family semantic completion engine to work, you will need to provide the compilation flags for your project to YCM. It's all in the User Guide.
YCM comes with sane defaults for its options, but you still may want to take a look at what's available for configuration. There are a few interesting options that are conservatively turned off by default that you may want to turn on.
Full Installation Guide
The full installation guide has been moved to the wiki.
Quick Feature Summary
General (all languages)
- Super-fast identifier completer including tags files and syntax elements
- Intelligent suggestion ranking and filtering
- File and path suggestions
- Suggestions from Vim's omnifunc
- UltiSnips snippet suggestions
C-family languages (C, C++, Objective C, Objective C++, CUDA)
- Semantic auto-completion with automatic fixes
- Signature help
- Real-time diagnostic display
- Go to include/declaration/definition (
GoTo
, etc.) - Go to alternate file (e.g. associated header
GoToAlternateFile
) - Find Symbol (
GoToSymbol
), with interactive search - Document outline (
GoToDocumentOutline
), with interactive search - View documentation comments for identifiers (
GetDoc
) - Type information for identifiers (
GetType
) - Automatically fix certain errors (
FixIt
) - Perform refactoring (
FixIt
) - Reference finding (
GoToReferences
) - Renaming symbols (
RefactorRename <new name>
) - Code formatting (
Format
) - Semantic highlighting
- Inlay hints
- Type hierarchy
- Call hierarchy
C♯
- Semantic auto-completion
- Signature help
- Real-time diagnostic display
- Go to declaration/definition (
GoTo
, etc.) - Go to implementation (
GoToImplementation
) - Find Symbol (
GoToSymbol
), with interactive search - View documentation comments for identifiers (
GetDoc
) - Type information for identifiers (
GetType
) - Automatically fix certain errors (
FixIt
) - Perform refactoring (
FixIt
) - Management of OmniSharp-Roslyn server instance
- Renaming symbols (
RefactorRename <new name>
) - Code formatting (
Format
)
Python
- Semantic auto-completion
- Signature help
- Go to definition (
GoTo
) - Find Symbol (
GoToSymbol
), with interactive search - Reference finding (
GoToReferences
) - View documentation comments for identifiers (
GetDoc
) - Type information for identifiers (
GetType
) - Renaming symbols (
RefactorRename <new name>
)
Go
- Semantic auto-completion
- Signature help
- Real-time diagnostic display
- Go to declaration/definition (
GoTo
, etc.) - Go to type definition (
GoToType
) - Go to implementation (
GoToImplementation
) - Document outline (
GoToDocumentOutline
), with interactive search - Automatically fix certain errors (
FixIt
) - Perform refactoring (
FixIt
) - View documentation comments for identifiers (
GetDoc
) - Type information for identifiers (
GetType
) - Code formatting (
Format
) - Management of
gopls
server instance - Inlay hints
- Call hierarchy
JavaScript and TypeScript
- Semantic auto-completion with automatic import insertion
- Signature help
- Real-time diagnostic display
- Go to definition (
GoTo
,GoToDefinition
, andGoToDeclaration
are identical) - Go to type definition (
GoToType
) - Go to implementation (
GoToImplementation
) - Find Symbol (
GoToSymbol
), with interactive search - Reference finding (
GoToReferences
) - View documentation comments for identifiers (
GetDoc
) - Type information for identifiers (
GetType
) - Automatically fix certain errors and perform refactoring (
FixIt
) - Perform refactoring (
FixIt
) - Renaming symbols (
RefactorRename <new name>
) - Code formatting (
Format
) - Organize imports (
OrganizeImports
) - Management of
TSServer
server instance - Inlay hints
- Call hierarchy
Rust
- Semantic auto-completion
- Real-time diagnostic display
- Go to declaration/definition (
GoTo
, etc.) - Go to implementation (
GoToImplementation
) - Reference finding (
GoToReferences
) - Document outline (
GoToDocumentOutline
), with interactive search - View documentation comments for identifiers (
GetDoc
) - Automatically fix certain errors (
FixIt
) - Perform refactoring (
FixIt
) - Type information for identifiers (
GetType
) - Renaming symbols (
RefactorRename <new name>
) - Code formatting (
Format
) - Management of
rust-analyzer
server instance - Semantic highlighting
- Inlay hints
- Call hierarchy
Java
- Semantic auto-completion with automatic import insertion
- Signature help
- Real-time diagnostic display
- Go to definition (
GoTo
,GoToDefinition
, andGoToDeclaration
are identical) - Go to type definition (
GoToType
) - Go to implementation (
GoToImplementation
) - Find Symbol (
GoToSymbol
), with interactive search - Reference finding (
GoToReferences
) - Document outline (
GoToDocumentOutline
), with interactive search - View documentation comments for identifiers (
GetDoc
) - Type information for identifiers (
GetType
) - Automatically fix certain errors including code generation (
FixIt
) - Renaming symbols (
RefactorRename <new name>
) - Code formatting (
Format
) - Organize imports (
OrganizeImports
) - Detection of Java projects
- Execute custom server command (
ExecuteCommand <args>
) - Management of
jdt.ls
server instance - Semantic highlighting
- Inlay hints
- Type hierarchy
- Call hierarchy
User Guide
General Usage
If the offered completions are too broad, keep typing characters; YCM will continue refining the offered completions based on your input.
Filtering is "smart-case" and "smart-diacritic" sensitive; if you are typing only lowercase letters, then it's case-insensitive. If your input contains uppercase letters, then the uppercase letters in your query must match uppercase letters in the completion strings (the lowercase letters still match both). On top of that, a letter with no diacritic marks will match that letter with or without marks:
Use the TAB key to accept a completion and continue pressing TAB to cycle through the completions. Use Shift-TAB to cycle backward. Note that if you're using console Vim (that is, not gvim or MacVim) then it's likely that the Shift-TAB binding will not work because the console will not pass it to Vim. You can remap the keys; see the Options section below.
Knowing a little bit about how YCM works internally will prevent confusion. YCM has several completion engines: an identifier-based completer that collects all of the identifiers in the current file and other files you visit (and your tags files) and searches them when you type (identifiers are put into per-filetype groups).
There are also several semantic engines in YCM. There are libclang-based and clangd-based completers that provide semantic completion for C-family languages. There's a Jedi-based completer for semantic completion for Python. There's also an omnifunc-based completer that uses data from Vim's omnicomplete system to provide semantic completions when no native completer exists for that language in YCM.
There are also other completion engines, like the UltiSnips completer and the filepath completer.
YCM automatically detects which completion engine would be the best in any situation. On occasion, it queries several of them at once, merges the outputs and presents the results to you.
Client-Server Architecture
YCM has a client-server architecture; the Vim part of YCM is only a thin client that talks to the ycmd HTTP+JSON server that has the vast majority of YCM logic and functionality. The server is started and stopped automatically as you start and stop Vim.
Completion String Ranking
The subsequence filter removes any completions that do not match the input, but then the sorting system kicks in. It's actually very complicated and uses lots of factors, but suffice it to say that "word boundary" (WB) subsequence character matches are "worth" more than non-WB matches. In effect, this means that given an input of "gua", the completion "getUserAccount" would be ranked higher in the list than the "Fooguxa" completion (both of which are subsequence matches). Word-boundary characters are all capital characters, characters preceded by an underscore, and the first letter character in the completion string.
Signature Help
Valid signatures are displayed in a second popup menu and the current signature is highlighted along with the current argument.
Signature help is triggered in insert mode automatically when
g:ycm_auto_trigger
is enabled and is not supported when it is not enabled.
The signatures popup is hidden when there are no matching signatures or when you
leave insert mode. If you want to manually control when it is visible, you can
map something to <plug>YCMToggleSignatureHelp
(see below).
For more details on this feature and a few demos, check out the PR that proposed it.
Dismiss signature help
The signature help popup sometimes gets in the way. You can toggle its
visibility with a mapping. YCM provides the "Plug" mapping
<Plug>(YCMToggleSignatureHelp)
for this.
For example, to hide/show the signature help popup by pressing Ctrl+l in insert
mode: imap <silent> <C-l> <Plug>(YCMToggleSignatureHelp)
.
NOTE: No default mapping is provided because insert mappings are very difficult to create without breaking or overriding some existing functionality. Ctrl-l is not a suggestion, just an example.
Semantic highlighting
Semantic highlighting is the process where the buffer text is coloured according to the underlying semantic type of the word, rather than classic syntax highlighting based on regular expressions. This can be powerful additional data that we can process very quickly.
This feature is only supported in Vim.
For example, here is a function with classic highlighting:
And here is the same function with semantic highlighting:
As you can see, the function calls, macros, etc. are correctly identified.
This can be enabled globally with let g:ycm_enable_semantic_highlighting=1
or
per buffer, by setting b:ycm_enable_semantic_highlighting
.
Customising the highlight groups
YCM uses text properties (see :help text-prop-intro
) for semantic
highlighting. In order to customise the coloring, you can define the text
properties that are used.
If you define a text property named YCM_HL_<token type>
, then it will be used
in place of the defaults. The <token type>
is defined as the Language Server
Protocol semantic token type, defined in the LSP Spec.
Some servers also use custom values. In this case, YCM prints a warning including the token type name that you can customise.
For example, to render parameter
tokens using the Normal
highlight group,
you can do this:
call prop_type_add( 'YCM_HL_parameter', { 'highlight': 'Normal' } )
More generally, this pattern can be useful for customising the groups:
let MY_YCM_HIGHLIGHT_GROUP = {
\ 'typeParameter': 'PreProc',
\ 'parameter': 'Normal',
\ 'variable': 'Normal',
\ 'property': 'Normal',
\ 'enumMember': 'Normal',
\ 'event': 'Special',
\ 'member': 'Normal',
\ 'method': 'Normal',
\ 'class': 'Special',
\ 'namespace': 'Special',
\ }
for tokenType in keys( MY_YCM_HIGHLIGHT_GROUP )
call prop_type_add( 'YCM_HL_' . tokenType,
\ { 'highlight': MY_YCM_HIGHLIGHT_GROUP[ tokenType ] } )
endfor
Inlay hints
NOTE: Highly experimental feature, requiring Vim 9.0.214 or later (not supported in NeoVim).
When g:ycm_enable_inlay_hints
(globally) or b:ycm_enable_inlay_hints
(for a
specific buffer) is set to 1
, then YCM will insert inlay hints as supported by
the language semantic engine.
An inlay hint is text that is rendered on the screen that is not part of the buffer and is often used to mark up the type or name of arguments, parameters, etc. which help the developer understand the semantics of the code.
Here are some examples:
- C
- TypeScript
- Go
Highlight groups
By default, YCM renders the inlay hints with the NonText
highlight group. To
override this, define the YcmInlayHint
highlight yourself, e.g. in your
.vimrc
:
hi link YcmInlayHint Comment
Similar to semantic highlighting above, you can override specific highlighting for different inlay hint types by defining text properties named after the kind of inlay hint, for example:
call prop_type_add( 'YCM_INLAY_Type', #{ highlight: 'Comment' } )
The list of inlay hint kinds can be found in python/ycm/inlay_hints.py
Options
g:ycm_enable_inlay_hints
orb:ycm_enable_inlay_hints
- enable/disable globally or for local bufferg:ycm_clear_inlay_hints_in_insert_mode
- set to1
to remove all inlay hints when entering insert mode and reinstate them when leaving insert mode
Toggling
Inlay hints can add a lot of text to the screen and may be distracting. You can
toggle them on/off instantly, by mapping something to
<Plug>(YCMToggleInlayHints)
, for example:
nnoremap <silent> <localleader>h <Plug>(YCMToggleInlayHints)
No default mapping is provided for this due to the personal nature of mappings.
General Semantic Completion
You can use Ctrl+Space to trigger the completion suggestions anywhere, even without a string prefix. This is useful to see which top-level functions are available for use.
C-family Semantic Completion
NOTE: YCM originally used the libclang
based engine for C-family, but
users should migrate to clangd, as it provides more features and better
performance. Users who rely on override_filename
in their .ycm_extra_conf.py
will need to stay on the old libclang
engine. Instructions on how to stay on
the old engine are available on the wiki.
Some of the features of clangd:
- Project wide indexing: Clangd has both dynamic and static index support. The dynamic index stores up-to-date symbols coming from any files you are currently editing, whereas static index contains project-wide symbol information. This symbol information is used for code completion and code navigation. Whereas libclang is limited to the current translation unit(TU).
- Code navigation: Clangd provides all the GoTo requests libclang provides and it improves those using the above-mentioned index information to contain project-wide information rather than just the current TU.
- Rename: Clangd can perform semantic rename operations on the current file, whereas libclang doesn't support such functionality.
- Code Completion: Clangd can perform code completions at a lower latency
than libclang; also, it has information about all the symbols in your
project so it can suggest items outside your current TU and also provides
proper
#include
insertions for those items. - Signature help: Clangd provides signature help so that you can see the names and types of arguments when calling functions.
- Format Code: Clangd provides code formatting either for the selected lines or the whole file, whereas libclang doesn't have such functionality.
- Performance: Clangd has faster re-parse and code completion times compared to libclang.
Installation
On supported architectures, the install.py
script will download a suitable
clangd (--clangd-completer
) or libclang (--clang-completer
) for you.
Supported architectures are:
- Linux glibc >= 2.39 (Intel, armv7-a, aarch64) - built on ubuntu 24.04
- MacOS >=10.15 (Intel, arm64)
- For Intel, compatibility per clang.llvm.org downloads
- For arm64, macOS 10.15+
- Windows (Intel) - compatibility per clang.llvm.org downloads
clangd:
Typically, clangd is installed by the YCM installer (either with --all
or with
--clangd-completer
). This downloads a pre-built clangd
binary for your
architecture. If your OS or architecture is not supported or is too old, you can
install a compatible clangd
and use g:ycm_clangd_binary_path
to point to
it.
libclang:
libclang
can be enabled also with --all
or --clang-completer
. As with
clangd
, YCM will try and download a version of libclang
that is suitable for
your environment, but again if your environment can't be supported, you can
build or acquire libclang
for yourself and specify it when building, as:
$ EXTRA_CMAKE_ARGS='-DPATH_TO_LLVM_ROOT=/path/to/your/llvm' ./install.py --clang-completer --system-libclang
Please note that if using custom clangd
or libclang
it must match the
version that YCM requires. Currently YCM requires clang 17.0.1.
Compile flags
In order to perform semantic analysis such as code completion, GoTo
, and
diagnostics, YouCompleteMe uses clangd
, which makes use of
clang compiler, sometimes also referred to as LLVM. Like any compiler,
clang also requires a set of compile flags in order to parse your code. Simply
put: If clang can't parse your code, YouCompleteMe can't provide semantic
analysis.
There are 2 methods that can be used to provide compile flags to clang:
Option 1: Use a compilation database
The easiest way to get YCM to compile your code is to use a compilation
database. A compilation database is usually generated by your build system
(e.g. CMake
) and contains the compiler invocation for each compilation unit in
your project.
For information on how to generate a compilation database, see the clang documentation. In short:
- If using CMake, add
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
when configuring (or addset( CMAKE_EXPORT_COMPILE_COMMANDS ON )
toCMakeLists.txt
) and copy or symlink the generated database to the root of your project. - If using Ninja, check out the
compdb
tool (-t compdb
) in its docs. - If using GNU make, check out compiledb or Bear.
- For other build systems, check out
.ycm_extra_conf.py
below.
If no .ycm_extra_conf.py
is found,
YouCompleteMe automatically tries to load a compilation database if there is
one.
YCM looks for a file named compile_commands.json
in the directory of the
opened file or in any directory above it in the hierarchy (recursively); when
the file is found before a local .ycm_extra_conf.py
, YouCompleteMe stops
searching the directories and lets clangd take over and handle the flags.
Option 2: Provide the flags manually
If you don't have a compilation database or aren't able to generate one, you have to tell YouCompleteMe how to compile your code some other way.
Every C-family project is different. It is not possible for YCM to guess what compiler flags to supply for your project. Fortunately, YCM provides a mechanism for you to generate the flags for a particular file with arbitrary complexity. This is achieved by requiring you to provide a Python module that implements a trivial function that, given the file name as an argument, returns a list of compiler flags to use to compile that file.
YCM looks for a .ycm_extra_conf.py
file in the directory of the opened file or
in any directory above it in the hierarchy (recursively); when the file is
found, it is loaded (only once!) as a Python module. YCM calls a Settings
method in that module which should provide it with the information necessary to
compile the current file. You can also provide a path to a global configuration
file with the
g:ycm_global_ycm_extra_conf
option,
which will be used as a fallback. To prevent the execution of malicious code
from a file you didn't write YCM will ask you once per .ycm_extra_conf.py
if
it is safe to load. This can be disabled and you can white-/blacklist files. See
the g:ycm_confirm_extra_conf
and
g:ycm_extra_conf_globlist
options
respectively.
This system was designed this way so that the user can perform any arbitrary sequence of operations to produce a list of compilation flags YCM should hand to Clang.
NOTE: It is highly recommended to include -x <language>
flag to libclang.
This is so that the correct language is detected, particularly for header files.
Common values are -x c
for C, -x c++
for C++, -x objc
for Objective-C, and
-x cuda
for CUDA.
To give you an impression, if your C++ project is trivial, and your usual
compilation command is: g++ -Wall -Wextra -Werror -o FILE.o FILE.cc
, then the
following .ycm_extra_conf.py
is enough to get semantic analysis from
YouCompleteMe:
def Settings( **kwargs ):
return {
'flags': [ '-x', 'c++', '-Wall', '-Wextra', '-Werror' ],
}
As you can see from the trivial example, YCM calls the Settings
method which
returns a dictionary with a single element 'flags'
. This element is a list
of compiler flags to pass to libclang for the current file. The absolute path of
that file is accessible under the filename
key of the kwargs
dictionary.
That's it! This is actually enough for most projects, but for complex projects
it is not uncommon to integrate directly with an existing build system using the
full power of the Python language.
For a more elaborate example,
see ycmd's own .ycm_extra_conf.py
. You should be able to
use it as a starting point. Don't just copy/paste that file somewhere and
expect things to magically work; your project needs different flags. Hint:
just replace the strings in the flags
variable with compilation flags
necessary for your project. That should be enough for 99% of projects.
You could also consider using YCM-Generator to generate the
ycm_extra_conf.py
file.
Errors during compilation
If Clang encounters errors when compiling the header files that your file includes, then it's probably going to take a long time to get completions. When the completion menu finally appears, it's going to have a large number of unrelated completion strings (type/function names that are not actually members). This is because Clang fails to build a precompiled preamble for your file if there are any errors in the included headers and that preamble is key to getting fast completions.
Call the :YcmDiags
command to see if any errors or warnings were detected in
your file.
Java Semantic Completion
Java Quick Start
-
Ensure that you have enabled the Java completer. See the installation guide for details.
-
Create a project file (gradle or maven) file in the root directory of your Java project, by following the instructions below.
-
(Optional) Configure the LSP server. The jdt.ls configuration options can be found in their codebase.
-
If you previously used Eclim or Syntastic for Java, disable them for Java.
-
Edit a Java file from your project.
Java Project Files
In order to provide semantic analysis, the Java completion engine requires knowledge of your project structure. In particular, it needs to know the class path to use, when compiling your code. Fortunately jdt.ls supports eclipse project files, maven projects and gradle projects.
NOTE: Our recommendation is to use either Maven or Gradle projects.
Diagnostic display - Syntastic
The native support for Java includes YCM's native real-time diagnostics display. This can conflict with other diagnostics plugins like Syntastic, so when enabling Java support, please manually disable Syntastic Java diagnostics.
Add the following to your vimrc
:
let g:syntastic_java_checkers = []
Diagnostic display - Eclim
The native support for Java includes YCM's native real-time diagnostics display. This can conflict with other diagnostics plugins like Eclim, so when enabling Java support, please manually disable Eclim Java diagnostics.
Add the following to your vimrc
:
let g:EclimFileTypeValidate = 0
NOTE: We recommend disabling Eclim entirely when editing Java with YCM's
native Java support. This can be done temporarily with :EclimDisable
.
Eclipse Projects
Eclipse-style projects require two files: .project and .classpath.
If your project already has these files due to previously being set up within Eclipse, then no setup is required. jdt.ls should load the project just fine (it's basically eclipse after all).
However, if not, it is possible (easy in fact) to craft them manually, though it is not recommended. You're better off using Gradle or Maven (see below).
A simple eclipse style project example can be found in
the ycmd test directory. Normally all that is required is to copy these files to
the root of your project and to edit the .classpath
to add additional
libraries, such as:
<classpathentry kind="lib" path="/path/to/external/jar" />
<classpathentry kind="lib" path="/path/to/external/java/source" />
It may also be necessary to change the directory in which your source files are located (paths are relative to the .project file itself):
<classpathentry kind="src" output="target/classes" path="path/to/src/" />
NOTE: The eclipse project and classpath files are not a public interface and it is highly recommended to use Maven or Gradle project definitions if you don't already use Eclipse to manage your projects.
Maven Projects
Maven needs a file named pom.xml in the root of the project. Once again a simple pom.xml can be found in the ycmd source.
The format of pom.xml files is way beyond the scope of this document, but we do recommend using the various tools that can generate them for you, if you're not familiar with them already.
Gradle Projects
Gradle projects require a build.gradle. Again, there is a trivial example in ycmd's tests.
The format of build.gradle files are way beyond the scope of this document, but we do recommend using the various tools that can generate them for you if you're not familiar with them already.
Some users have experienced issues with their jdt.ls when using the Groovy language for their build.gradle. As such, try using Kotlin instead.
Troubleshooting
If you're not getting completions or diagnostics, check the server health:
- The Java completion engine takes a while to start up and parse your project.
You should be able to see its progress in the command line, and
:YcmDebugInfo
. Ensure that the following lines are present:
-- jdt.ls Java Language Server running
-- jdt.ls Java Language Server Startup Status: Ready
- If the above lines don't appear after a few minutes, check the jdt.ls and ycmd
log files using
:YcmToggleLogs
. The jdt.ls log file is called.log
(for some reason).
If you get a message about "classpath is incomplete", then make sure you have correctly configured the project files.
If you get messages about unresolved imports, then make sure you have correctly configured the project files, in particular check that the classpath is set correctly.
C# Semantic Completion
YCM relies on OmniSharp-Roslyn to provide completion and code navigation. OmniSharp-Roslyn needs a solution file for a C# project and there are two ways of letting YCM know about your solution files.
Automatically discovered solution files
YCM will scan all parent directories of the file currently being edited and look
for a file with .sln
extension.
Manually specified solution files
If YCM loads .ycm_extra_conf.py
which contains CSharpSolutionFile
function,
YCM will try to use that to determine the solution file. This is useful when one
wants to override the default behaviour and specify a solution file that is not
in any of the parent directories of the currently edited file. Example:
def CSharpSolutionFile( filepath ):
# `filepath` is the path of the file user is editing
return '/path/to/solution/file' # Can be relative to the `.ycm_extra_conf.py`
If the path returned by CSharpSolutionFile
is not an actual file, YCM will
fall back to the other way of finding the file.
Use with .NET 6.0 and .NET SDKs
YCM ships with older version of OmniSharp-Roslyn based on Mono runtime. It is possible to use it with .NET 6.0 and newer, but it requires manual setup.
- Download NET 6.0 version of the OmniSharp server for your system from releases
- Set
g:ycm_roslyn_binary_path
to the unpacked executableOmniSharp
- Create a solution file if one doesn't already exist, it is currently required
by YCM for internal bookkeeping
- Run
dotnet new sln
at the root of your project - Run
dotnet sln add <project1.csproj> <project2.csproj> ...
for all of your projects
- Run
- Run
:YcmRestartServer
Python Semantic Completion
YCM relies on the Jedi engine to provide completion and code navigation. By
default, it will pick the version of Python running the ycmd server and
use its sys.path
. While this is fine for simple projects, this needs to be
configurable when working with virtual environments or in a project with
third-party packages. The next sections explain how to do that.
Working with virtual environments
A common practice when working on a Python project is to install its
dependencies in a virtual environment and develop the project inside that
environment. To support this, YCM needs to know the interpreter path of the
virtual environment. You can specify it by creating a .ycm_extra_conf.py
file
at the root of your project with the following contents:
def Settings( **kwargs ):
return {
'interpreter_path': '/path/to/virtual/environment/python'
}
Here, /path/to/virtual/environment/python
is the path to the Python used
by the virtual environment you are working in. Typically, the executable can be
found in the Scripts
folder of the virtual environment directory on Windows
and in the bin
folder on other platforms.
If you don't like having to create a .ycm_extra_conf.py
file at the root of
your project and would prefer to specify the interpreter path with a Vim option,
read the Configuring through Vim options
section.
Working with third-party packages
Another common practice is to put the dependencies directly into the project and
add their paths to sys.path
at runtime in order to import them. YCM needs to
be told about this path manipulation to support those dependencies. This can be
done by creating a .ycm_extra_conf.py
file at the root of the project. This
file must define a Settings( **kwargs )
function returning a dictionary with
the list of paths to prepend to sys.path
under the sys_path
key. For
instance, the following .ycm_extra_conf.py
adds the paths
/path/to/some/third_party/package
and /path/to/another/third_party/package
at the start of sys.path
:
def Settings( **kwargs ):
return {
'sys_path': [
'/path/to/some/third_party/package',
'/path/to/another/third_party/package'
]
}
If you would rather prepend paths to sys.path
with a Vim option, read the
Configuring through Vim options section.
If you need further control on how to add paths to sys.path
, you should define
the PythonSysPath( **kwargs )
function in the .ycm_extra_conf.py
file. Its
keyword arguments are sys_path
which contains the default sys.path
, and
interpreter_path
which is the path to the Python interpreter. Here's a trivial
example that inserts the /path/to/third_party/package
path at the second
position of sys.path
:
def PythonSysPath( **kwargs ):
sys_path = kwargs[ 'sys_path' ]
sys_path.insert( 1, '/path/to/third_party/package' )
return sys_path
A more advanced example can be found in YCM's own
.ycm_extra_conf.py
.
Configuring through Vim options
You may find it inconvenient to have to create a .ycm_extra_conf.py
file at the
root of each one of your projects in order to set the path to the Python
interpreter and/or add paths to sys.path
and would prefer to be able to
configure those through Vim options. Don't worry, this is possible by using the
g:ycm_extra_conf_vim_data
option and
creating a global extra configuration file. Let's take an example. Suppose that
you want to set the interpreter path with the g:ycm_python_interpreter_path
option and prepend paths to sys.path
with the g:ycm_python_sys_path
option.
Suppose also that you want to name the global extra configuration file
global_extra_conf.py
and that you want to put it in your HOME folder. You
should then add the following lines to your vimrc:
let g:ycm_python_interpreter_path = ''
let g:ycm_python_sys_path = []
let g:ycm_extra_conf_vim_data = [
\ 'g:ycm_python_interpreter_path',
\ 'g:ycm_python_sys_path'
\]
let g:ycm_global_ycm_extra_conf = '~/global_extra_conf.py'
Then, create the ~/global_extra_conf.py
file with the following contents:
def Settings( **kwargs ):
client_data = kwargs[ 'client_data' ]
return {
'interpreter_path': client_data[ 'g:ycm_python_interpreter_path' ],
'sys_path': client_data[ 'g:ycm_python_sys_path' ]
}
That's it. You are done. Note that you don't need to restart the server when setting one of the options. YCM will automatically pick the new values.
Rust Semantic Completion
YCM uses rust-analyzer for Rust semantic completion.
NOTE: Previously, YCM used rls for rust completion. This is no longer supported, as the Rust community has decided on rust-analyzer as the future of Rust tooling.
Completions and GoTo commands within the current crate and its dependencies
should work out of the box with no additional configuration (provided that you
built YCM with the --rust-completer
flag; see the Installation
section for details). The install script takes care of
installing the Rust source code, so no configuration is necessary.
rust-analyzer
supports a myriad of options. These are configured using LSP
configuration, and are documented here.
Go Semantic Completion
Completions and GoTo commands should work out of the box (provided that you
built YCM with the --go-completer
flag; see the Installation
section for details). The server only works for projects with
the "canonical" layout.
gopls
also has a load of documented options.
You can set these in your .ycm_extra_conf.py
. For example, to set the build tags:
def Settings( **kwargs ):
if kwargs[ 'language' ] == 'go':
return {
'ls': {
'build.buildFlags': [ '-tags=debug' ] }
}
}
JavaScript and TypeScript Semantic Completion
NOTE: YCM originally used the Tern engine for JavaScript but due to
Tern not being maintained anymore by its main author and the TSServer
engine offering more features, YCM is moving to TSServer. This won't affect
you if you were already using Tern but you are encouraged to do the switch
by deleting the third_party/ycmd/third_party/tern_runtime/node_modules
directory in YCM folder. If you are a new user but still want to use Tern,
you should pass the --js-completer
option to the install.py
script during
installation. Further instructions on how to set up YCM with Tern are
available on the wiki.
All JavaScript and TypeScript features are provided by the TSServer engine,
which is included in the TypeScript SDK. To enable these features, install
Node.js 18+ and npm and call the install.py
script with the
--ts-completer
flag.
TSServer relies on the jsconfig.json
file for JavaScript
and the tsconfig.json
file for TypeScript to analyze your
project. Ensure the file exists at the root of your project.
To get diagnostics in JavaScript, set the checkJs
option to true
in your
jsconfig.json
file:
{
"compilerOptions": {
"checkJs": true
}
}
Semantic Completion for Other Languages
C-family, C#, Go, Java, Python, Rust, and JavaScript/TypeScript languages are supported natively by YouCompleteMe using the Clang, OmniSharp-Roslyn, Gopls, jdt.ls, Jedi, rust-analyzer, and TSServer engines, respectively. Check the installation section for instructions to enable these features if desired.
Plugging an arbitrary LSP server
Similar to other LSP clients, YCM can use an arbitrary LSP server with the help
of g:ycm_language_server
option. An
example of a value of this option would be:
let g:ycm_language_server =
\ [
\ {
\ 'name': 'yaml',
\ 'cmdline': [ '/path/to/yaml/server/yaml-language-server', '--stdio' ],
\ 'filetypes': [ 'yaml' ]
\ },
\ {
\ 'name': 'csharp',
\ 'cmdline': [ 'OmniSharp', '-lsp' ],
\ 'filetypes': [ 'csharp' ],
\ 'project_root_files': [ '*.csproj', '*.sln' ]
\ },
\ {
\ 'name': 'godot',
\ 'filetypes': [ 'gdscript' ],
\ 'port': 6008,
\ 'project_root_files': [ 'project.godot' ]
\ }
\ ]
Each dictionary contains the following keys:
name
(string, mandatory): When configuring a LSP server the value of thename
key will be used as thekwargs[ 'language' ]
. Can be anything you like.filetypes
(list of string, mandatory): List of Vim filetypes this server should be used for.project_root_files
(list of string, optional): List of filenames to search for when trying to determine the project's root. Uses python's pathlib for glob matching.cmdline
(list of strings, optional): If supplied, the server is started with this command line (each list element is a command line word). Typically, the server should be started with STDIO communication. If not supplied,port
must be supplied.port
(number, optional): If supplied, ycmd will connect to the server atlocalhost:<port>
using TCP (remote servers are not supported).capabilities
(dict, optional): If supplied, this is a dictionary that is merged with the LSP client capabilities reported to the language server. This can be used to enable or disable certain features, such as the support for configuration sections (workspace/configuration
).
See the LSP Examples project for more examples of configuring the likes of PHP, Ruby, Kotlin, and D.
LSP Configuration
Many LSP servers allow some level of user configuration. YCM enables this with
the help of .ycm_extra_conf.py
files. Here's an example of jdt.ls user
examples of configuring the likes of PHP, Ruby, Kotlin, D, and many, many more.
def Settings( **kwargs ):
if kwargs[ 'language' ] == 'java':
return {
'ls': {
'java.format.onType.enabled': True
}
}
The ls
key tells YCM that the dictionary should be passed to the LSP server.
For each of the LSP server's configuration, you should look up the respective
server's documentation.
Some servers request settings from arbitrary 'sections' of configuration. There
is no concept of configuration sections in Vim, so you can specify an additional
config_sections
dictionary which maps section to a dictionary of config
required by the server. For example:
def Settings( **kwargs ):
if kwargs[ 'language' ] == 'java':
return {
'ls': {
'java.format.onType.enabled': True
},
'config_sections': {
'some section': {
'some option': 'some value'
}
}
The sections and options/values are completely server-specific and rarely well documented.
Using omnifunc
for semantic completion
YCM will use your omnifunc
(see :h omnifunc
in Vim) as a source for semantic
completions if it does not have a native semantic completion engine for your
file's filetype. Vim comes with rudimentary omnifuncs for various languages like
Ruby, PHP, etc. It depends on the language.
You can get a stellar omnifunc for Ruby with Eclim. Just make sure you have
the latest Eclim installed and configured (this means Eclim >= 2.2.*
and
Eclipse >= 4.2.*
).
After installing Eclim remember to create a new Eclipse project within your
application by typing :ProjectCreate <path-to-your-project> -n ruby
inside Vim
and don't forget to have let g:EclimCompletionMethod = 'omnifunc'
in your
vimrc. This will make YCM and Eclim play nice; YCM will use Eclim's omnifuncs as
the data source for semantic completions and provide the auto-triggering and
subsequence-based matching (and other YCM features) on top of it.
Writing New Semantic Completers
You have two options here: writing an omnifunc
for Vim's omnicomplete system
that YCM will then use through its omni-completer, or a custom completer for YCM
using the Completer API.
Here are the differences between the two approaches:
- You have to use VimScript to write the omnifunc, but get to use Python to write for the Completer API; this by itself should make you want to use the API.
- The Completer API is a much more powerful way to integrate with YCM and it provides a wider set of features. For instance, you can make your Completer query your semantic back-end in an asynchronous fashion, thus not blocking Vim's GUI thread while your completion system is processing stuff. This is impossible with VimScript. All of YCM's completers use the Completer API.
- Performance with the Completer API is better since Python executes faster than VimScript.
If you want to use the omnifunc
system, see the relevant Vim docs with :h complete-functions
. For the Completer API, see the API docs.
If you want to upstream your completer into YCM's source, you should use the Completer API.
Diagnostic Display
YCM will display diagnostic notifications for the C-family, C#, Go, Java, JavaScript, Rust, and TypeScript languages. Since YCM continuously recompiles your file as you type, you'll get notified of errors and warnings in your file as fast as possible.
Here are the various pieces of the diagnostic UI:
- Icons show up in the Vim gutter on lines that have a diagnostic.
- Regions of text related to diagnostics are highlighted (by default, a red
wavy underline in
gvim
and a red background invim
). - Moving the cursor to a line with a diagnostic echoes the diagnostic text.
- Vim's location list is automatically populated with diagnostic data (off by default, see options).
The new diagnostics (if any) will be displayed the next time you press any key on the keyboard. So if you stop typing and just wait for the new diagnostics to come in, that will not work. You need to press some key for the GUI to update.
Having to press a key to get the updates is unfortunate, but cannot be changed due to the way Vim internals operate; there is no way that a background task can update Vim's GUI after it has finished running. You have to press a key. This will make YCM check for any pending diagnostics updates.
You can force a full, blocking compilation cycle with the
:YcmForceCompileAndDiagnostics
command (you may want to map that command to a
key; try putting nnoremap <F5> :YcmForceCompileAndDiagnostics<CR>
in your
vimrc). Calling this command will force YCM to immediately recompile your file
and display any new diagnostics it encounters. Do note that recompilation with
this command may take a while and during this time the Vim GUI will be
blocked.
YCM will display a short diagnostic message when you move your cursor to the
line with the error. You can get a detailed diagnostic message with the
<leader>d
key mapping (can be changed in the options) YCM provides when your
cursor is on the line with the diagnostic.
You can also see the full diagnostic message for all the diagnostics in the
current file in Vim's locationlist
, which can be opened with the :lopen
and
:lclose
commands (make sure you have set let g:ycm_always_populate_location_list = 1
in your vimrc). A good way to toggle
the display of the locationlist
with a single key mapping is provided by
another (very small) Vim plugin called ListToggle (which also makes it
possible to change the height of the locationlist
window), also written by
yours truly.
Diagnostic Highlighting Groups
You can change the styling for the highlighting groups YCM uses. For the signs in the Vim gutter, the relevant groups are:
YcmErrorSign
, which falls back to groupSyntasticErrorSign
and thenerror
if they existYcmWarningSign
, which falls back to groupSyntasticWarningSign
and thentodo
if they exist
You can also style the line that has the warning/error with these groups:
YcmErrorLine
, which falls back to groupSyntasticErrorLine
if it existsYcmWarningLine
, which falls back to groupSyntasticWarningLine
if it exists
Finally, you can also style the popup for the detailed diagnostics (it is shown
if g:ycm_show_detailed_diag_in_popup
is set) using the group YcmErrorPopup
,
which falls back to ErrorMsg
.
Note that the line highlighting groups only work when the
g:ycm_enable_diagnostic_signs
option is set. If you want highlighted lines but no signs in the Vim gutter,
set the signcolumn
option to no
in your vimrc:
set signcolumn=no
The syntax groups used to highlight regions of text with errors/warnings:
YcmErrorSection
, which falls back to groupSyntasticError
if it exists and thenSpellBad
YcmWarningSection
, which falls back to groupSyntasticWarning
if it exists and thenSpellCap
Here's how you'd change the style for a group:
highlight YcmErrorLine guibg=#3f0000
Symbol Search
This feature requires Vim and is not supported in Neovim
YCM provides a way to search for and jump to a symbol in the current project or document when using supported languages.
You can search for symbols in the current workspace when the GoToSymbol
request is supported and the current document when GoToDocumentOutline
is
supported.
Here's a quick demo:
As you can see, you can type and YCM filters down the list as you type. The current set of matches are displayed in a popup window in the centre of the screen and you can select an entry with the keyboard, to jump to that position. Any matches are then added to the quickfix list.
To enable:
nmap <something> <Plug>(YCMFindSymbolInWorkspace)
nmap <something> <Plug>(YCMFindSymbolInDocument)
e.g.
nmap <leader>yfw <Plug>(YCMFindSymbolInWorkspace)
nmap <leader>yfd <Plug>(YCMFindSymbolInDocument)
When searching, YCM opens a prompt buffer at the top of the screen for the
input and puts you in insert mode. This means that you can hit <Esc>
to go
into normal mode and use any other input commands that are supported in prompt
buffers. As you type characters, the search is updated.
Initially, results are queried from all open filetypes. You can hit <C-f>
to
switch to just the current filetype while the popup is open.
While the popup is open, the following keys are intercepted:
<C-j>
,<Down>
,<C-n>
,<Tab>
- select the next item<C-k>
,<Up>
,<C-p>
,<S-Tab>
- select the previous item<PageUp>
,<kPageUp>
- jump up one screenful of items<PageDown>
,<kPageDown>
- jump down one screenful of items<Home>
,<kHome>
- jump to first item<End>
,<kEnd>
- jump to last item<CR>
- jump to the selected item<C-c>
cancel/dismiss the popup<C-f>
- toggle results from all file types or just the current filetype
The search is also cancelled if you leave the prompt buffer window at any time,
so you can use window commands <C-w>...
for example.
Closing the popup
NOTE: Pressing <Esc>
does not close the popup - you must use Ctrl-c
for that, or use a window command (e.g. <Ctrl-w>j
) or the mouse to leave the
prompt buffer window.
Type/Call Hierarchy
This feature requires Vim and is not supported in Neovim
NOTE: This feature is highly experimental and offered in the hope that it is useful. Please help us by reporting issues and offering feedback.
YCM provides a way to view and navigate hierarchies. The following hierarchies are supported:
- Type hierachy
<Plug>(YCMTypeHierarchy)
: Display subtypes and supertypes of the symbol under cursor. Expand down to subtypes and up to supertypes. - Call hierarchy
<Plug>(YCMCallHierarchy)
: Display callees and callers of the symbol under cursor. Expand down to callers and up to callees.
Take a look at this for brief demo.
Hierarchy UI can be initiated by mapping something to the indicated plug mappings, for example:
nmap <leader>yth <Plug>(YCMTypeHierarchy)
nmap <leader>ych <Plug>(YCMCallHierarchy)
This opens a "modal" popup showing the current element in the hierarchy tree.
The current tree root is aligned to the left and child and parent nodes are
expanded to the right. Expand the tree "down" with <Tab> and "up" with
`.
The "root" of the tree can be re-focused to the selected item with
<S-Tab>
and further <S-Tab>
will show the parents of the selected item. This
can take a little getting used to, but it's particularly important with multiple
inheritance where a "child" of the current root may actually have other,
invisible, parent links. <S-Tab>
on that row will show these by setting the
display root to the selected item.
When the hierarchy is displayed, the following keys are intercepted:
<Tab>
: Drill into the hierarchy at the selected item: expand and show children of the selected item.<S-Tab>
: Show parents of the selected item. When applied to sub-types, this will re-root the tree at that type, so that all parent types (are displayed). Similar for callers.<CR>
: Jump to the symbol currently selected.<Down>
,<C-n>
,<C-j>
,j
: Select the next item<Up>
,<C-p>
,<C-k>
,k
; Select the previous item- Any other key: closes the popup without jumping to any location
Note: you might think the call hierarchy tree is inverted, but we think this way round is more intuitive because this is the typical way that call stacks are displayed (with the current function at the top, and its callers below).
Commands
The :YcmRestartServer
command
If the ycmd completion server suddenly stops for some reason, you can restart it with this command.
The :YcmForceCompileAndDiagnostics
command
Calling this command will force YCM to immediately recompile your file and display any new diagnostics it encounters. Do note that recompilation with this command may take a while and during this time the Vim GUI will be blocked.
You may want to map this command to a key; try putting nnoremap <F5> :YcmForceCompileAndDiagnostics<CR>
in your vimrc.
The :YcmDiags
command
Calling this command will fill Vim's locationlist
with errors or warnings if
any were detected in your file and then open it. If a given error or warning can
be fixed by a call to :YcmCompleter FixIt
, then (FixIt available)
is
appended to the error or warning text. See the FixIt
completer subcommand for
more information.
NOTE: The absence of (FixIt available)
does not strictly imply a fix-it
is not available as not all completers are able to provide this indication. For
example, the c-sharp completer provides many fix-its but does not add this
additional indication.
The g:ycm_open_loclist_on_ycm_diags
option can be used to prevent the location
list from opening, but still have it filled with new diagnostic data. See the
Options section for details.
The :YcmShowDetailedDiagnostic
command
This command shows the full diagnostic text when the user's cursor is on the line with the diagnostic.
An options argument can be passed. If the argument is popup
the diagnostic
text will be displayed in a popup at the cursor position.
If you prefer the detailed diagnostic to always be shown in a popup, then
let g:ycm_show_detailed_diag_in_popup=1
.
The :YcmDebugInfo
command
This will print out various debug information for the current file. Useful to see what compile commands will be used for the file if you're using the semantic completion engine.
The :YcmToggleLogs
command
This command presents the list of logfiles created by YCM, the ycmd
server, and the semantic engine server for the current filetype, if any.
One of these logfiles can be opened in the editor (or closed if already open) by
entering the corresponding number or by clicking on it with the mouse.
Additionally, this command can take the logfile names as arguments. Use the
<TAB>
key (or any other key defined by the wildchar
option) to complete the
arguments or to cycle through them (depending on the value of the wildmode
option). Each logfile given as an argument is directly opened (or closed if
already open) in the editor. Only for debugging purposes.
The :YcmCompleter
command
This command gives access to a number of additional IDE-like features in YCM, for things like semantic GoTo, type information, FixIt, and refactoring.
This command accepts a range that can either be specified through a selection in
one of Vim's visual modes (see :h visual-use
) or on the command line. For
instance, :2,5YcmCompleter
will apply the command from line 2 to line 5. This
is useful for the Format
subcommand.
Call YcmCompleter
without further arguments for a list of the commands you can
call for the current completer.
See the file type feature summary for an overview of the features available for each file type. See the YcmCompleter subcommands section for more information on the available subcommands and their usage.
Some commands, like Format
accept a range, like :%YcmCompleter Format
.
Some commands like GetDoc
and the various GoTo
commands respect modifiers,
like :rightbelow YcmCompleter GetDoc
, :vertical YcmCompleter GoTo
.
YcmCompleter Subcommands
NOTE: See the docs for the YcmCompleter
command before tackling this
section.
The invoked subcommand is automatically routed to the currently active semantic
completer, so :YcmCompleter GoToDefinition
will invoke the GoToDefinition
subcommand on the Python semantic completer if the currently active file is a
Python one and on the Clang completer if the currently active file is a C-family
language one.
You may also want to map the subcommands to something less verbose; for
instance, nnoremap <leader>jd :YcmCompleter GoTo<CR>
maps the <leader>jd
sequence to the longer subcommand invocation.
GoTo Commands
These commands are useful for jumping around and exploring code. When moving
the cursor, the subcommands add entries to Vim's jumplist
so you can use
CTRL-O
to jump back to where you were before invoking the command (and
CTRL-I
to jump forward; see :h jumplist
for details). If there is more
than one destination, the quickfix list (see :h quickfix
) is populated with
the available locations and opened to the full width at the bottom of the screen.
You can change this behavior by using the YcmQuickFixOpened
autocommand.
The GoToInclude
subcommand
Looks up the current line for a header and jumps to it.
Supported in filetypes: c, cpp, objc, objcpp, cuda
The GoToAlternateFile
subcommand
Jump to the associated file, as defined by the language server. Typically this will jump you to the associated header file for a C or C++ translation unit.
Supported in filetypes: c, cpp, objc, objcpp, cuda
(clangd only)
The GoToDeclaration
subcommand
Looks up the symbol under the cursor and jumps to its declaration.
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, go, java, javascript, python, rust, typescript
The GoToDefinition
subcommand
Looks up the symbol under the cursor and jumps to its definition.
NOTE: For C-family languages this only works in certain situations,
namely when the definition of the symbol is in the current translation unit. A
translation unit consists of the file you are editing and all the files you are
including with #include
directives (directly or indirectly) in that file.
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, go, java, javascript, python, rust, typescript
The GoTo
subcommand
This command tries to perform the "most sensible" GoTo operation it can. Currently, this means that it tries to look up the symbol under the cursor and jumps to its definition if possible; if the definition is not accessible from the current translation unit, jumps to the symbol's declaration. For C-family languages, it first tries to look up the current line for a header and jump to it. For C#, implementations are also considered and preferred.
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, go, java, javascript, python, rust, typescript
The GoToImprecise
subcommand
WARNING: This command trades correctness for speed!
Same as the GoTo
command except that it doesn't recompile the file with
libclang before looking up nodes in the AST. This can be very useful when you're
editing files that take time to compile but you know that you haven't made any
changes since the last parse that would lead to incorrect jumps. When you're
just browsing around your codebase, this command can spare you quite a bit of
latency.
Supported in filetypes: c, cpp, objc, objcpp, cuda
The GoToSymbol <symbol query>
subcommand
Finds the definition of all symbols matching a specified string. Note that this does not use any sort of smart/fuzzy matching. However, an interactive symbol search is also available.
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, java, javascript, python, typescript
The GoToReferences
subcommand
This command attempts to find all of the references within the project to the identifier under the cursor and populates the quickfix list with those locations.
Supported in filetypes: c, cpp, objc, objcpp, cuda, java, javascript, python, typescript, rust
The GoToImplementation
subcommand
Looks up the symbol under the cursor and jumps to its implementation (i.e. non-interface). If there are multiple implementations, instead provides a list of implementations to choose from.
Supported in filetypes: cs, go, java, rust, typescript, javascript
The GoToImplementationElseDeclaration
subcommand
Looks up the symbol under the cursor and jumps to its implementation if one, else jump to its declaration. If there are multiple implementations, instead provides a list of implementations to choose from.
Supported in filetypes: cs
The GoToType
subcommand
Looks up the symbol under the cursor and jumps to the definition of its type e.g. if the symbol is an object, go to the definition of its class.
Supported in filetypes: go, java, javascript, typescript
The GoToDocumentOutline
subcommand
Provides a list of symbols in the current document, in the quickfix list. See also interactive symbol search.
Supported in filetypes: c, cpp, objc, objcpp, cuda, go, java, rust
The GoToCallers
and GoToCallees
subcommands
Note: A much more powerful call and type hierarchy can be viewd interactively. See interactive type and call hierarchy.
Populate the quickfix list with the callers, or callees respectively, of the function associated with the current cursor position. The semantics of this differ depending on the filetype and language server.
Only supported for LSP servers that provide the callHierarchyProvider
capability.
Semantic Information Commands
These commands are useful for finding static information about the code, such as the types of variables, viewing declarations, and documentation strings.
The GetType
subcommand
Echos the type of the variable or method under the cursor, and where it differs, the derived type.
For example:
std::string s;
Invoking this command on s
returns std::string => std::basic_string<char>
NOTE: Causes re-parsing of the current translation unit.
Supported in filetypes: c, cpp, objc, objcpp, cuda, java, javascript, go, python, typescript, rust
The GetTypeImprecise
subcommand
WARNING: This command trades correctness for speed!
Same as the GetType
command except that it doesn't recompile the file with
libclang before looking up nodes in the AST. This can be very useful when you're
editing files that take time to compile but you know that you haven't made any
changes since the last parse that would lead to incorrect type. When you're
just browsing around your codebase, this command can spare you quite a bit of
latency.
Supported in filetypes: c, cpp, objc, objcpp, cuda
The GetParent
subcommand
Echos the semantic parent of the point under the cursor.
The semantic parent is the item that semantically contains the given position.
For example:
class C {
void f();
};
void C::f() {
}
In the out-of-line definition of C::f
, the semantic parent is the class C
,
of which this function is a member.
In the example above, both declarations of C::f
have C
as their semantic
context, while the lexical context of the first C::f
is C
and the lexical
context of the second C::f
is the translation unit.
For global declarations, the semantic parent is the translation unit.
NOTE: Causes re-parsing of the current translation unit.
Supported in filetypes: c, cpp, objc, objcpp, cuda
The GetDoc
subcommand
Displays the preview window populated with quick info about the identifier under the cursor. Depending on the file type, this includes things like:
- The type or declaration of identifier,
- Doxygen/javadoc comments,
- Python docstrings,
- etc.
The documentation is opened in the preview window, and options like
previewheight
are respected. If you would like to customise the height and
position of this window, we suggest a custom command that:
- Sets
previewheight
temporarily - Runs the
GetDoc
command with supplied modifiers - Restores
previewheight
.
For example:
command -count ShowDocWithSize
\ let g:ph=&previewheight
\ <bar> set previewheight=<count>
\ <bar> <mods> YcmCompleter GetDoc
\ <bar> let &previewheight=g:ph
You can then use something like :botright vertical 80ShowDocWithSize
. Here's an
example of that: https://asciinema.org/a/hE6Pi1gU6omBShwFna8iwGEe9
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, go, java, javascript, python, typescript, rust
The GetDocImprecise
subcommand
WARNING: This command trades correctness for speed!
Same as the GetDoc
command except that it doesn't recompile the file with
libclang before looking up nodes in the AST. This can be very useful when you're
editing files that take long to compile but you know that you haven't made any
changes since the last parse that would lead to incorrect docs. When you're
just browsing around your codebase, this command can spare you quite a bit of
latency.
Supported in filetypes: c, cpp, objc, objcpp, cuda
Refactoring Commands
These commands make changes to your source code in order to perform refactoring or code correction. YouCompleteMe does not perform any action which cannot be undone, and never saves or writes files to the disk.
The FixIt
subcommand
Where available, attempts to make changes to the buffer to correct diagnostics, or perform refactoring, on the current line or selection. Where multiple suggestions are available (such as when there are multiple ways to resolve a given warning, or where multiple diagnostics are reported for the current line, or multiple refactoring tweaks are available), the options are presented and one can be selected.
Completers that provide diagnostics may also provide trivial modifications to the source in order to correct the diagnostic. Examples include syntax errors such as missing trailing semi-colons, spurious characters, or other errors which the semantic engine can deterministically suggest corrections. A small demo presenting how diagnostics can be fixed with clangd:
Completers (LSPs) may also provide refactoring tweaks, which may be available
even when no diagnostic is presented for the current line. These include
function extraction, variable extraction, switch
population, constructor
generation, ... The tweaks work for a selection as well. Consult your LSP for
available refactorings. A demonstration of refactoring capabilities with clangd:
If no fix-it is available for the current line, or there is no diagnostic on the current line, this command has no effect on the current buffer. If any modifications are made, the number of changes made to the buffer is echo'd and the user may use the editor's undo command to revert.
When a diagnostic is available, and g:ycm_echo_current_diagnostic
is enabled,
then the text (FixIt)
is appended to the echo'd diagnostic when the
completer is able to add this indication. The text (FixIt available)
is
also appended to the diagnostic text in the output of the :YcmDiags
command
for any diagnostics with available fix-its (where the completer can provide this
indication).
NOTE: Causes re-parsing of the current translation unit.
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, go, java, javascript, rust, typescript
The RefactorRename <new name>
subcommand
In supported file types, this command attempts to perform a semantic rename of the identifier under the cursor. This includes renaming declarations, definitions, and usages of the identifier, or any other language-appropriate action. The specific behavior is defined by the semantic engine in use.
Similar to FixIt
, this command applies automatic modifications to your source
files. Rename operations may involve changes to multiple files, which may or may
not be open in Vim buffers at the time. YouCompleteMe handles all of this for
you. The behavior is described in the following section.
Supported in filetypes: c, cpp, objc, objcpp, cuda, java, javascript, python, typescript, rust, cs
Python refactorings
The following additional commands are supported for Python:
RefactorInline
RefactorExtractVariable
RefactorExtractFunction
See the jedi docs for what they do.
Supported in filetypes: python
Multi-file Refactor
When a Refactor or FixIt command touches multiple files, YouCompleteMe attempts to apply those modifications to any existing open, visible buffer in the current tab. If no such buffer can be found, YouCompleteMe opens the file in a new small horizontal split at the top of the current window, applies the change, and then hides the window. NOTE: The buffer remains open, and must be manually saved. A confirmation dialog is opened prior to doing this to remind you that this is about to happen.
Once the modifications have been made, the quickfix list (see :help quickfix
)
is populated with the locations of all modifications. This can be used to review
all automatic changes made by using :copen
. Typically, use the CTRL-W <enter>
combination to open the selected file in a new split. It is possible to
customize how the quickfix window is opened by using the YcmQuickFixOpened
autocommand.
The buffers are not saved automatically. That is, you must save the modified
buffers manually after reviewing the changes from the quickfix list. Changes
can be undone using Vim's powerful undo features (see :help undo
). Note
that Vim's undo is per-buffer, so to undo all changes, the undo commands must
be applied in each modified buffer separately.
NOTE: While applying modifications, Vim may find files that are already
open and have a swap file. The command is aborted if you select Abort or Quit in
any such prompts. This leaves the Refactor operation partially complete and must
be manually corrected using Vim's undo features. The quickfix list is not
populated in this case. Inspect :buffers
or equivalent (see :help buffers
)
to see the buffers that were opened by the command.
The Format
subcommand
This command formats the whole buffer or some part of it according to the value
of the Vim options shiftwidth
and expandtab
(see :h 'sw'
and :h et
respectively). To format a specific part of your document, you can either select
it in one of Vim's visual modes (see :h visual-use
) and run the command or
directly enter the range on the command line, e.g. :2,5YcmCompleter Format
to
format it from line 2 to line 5.
Supported in filetypes: c, cpp, objc, objcpp, cuda, java, javascript, go, typescript, rust, cs
The OrganizeImports
subcommand
This command removes unused imports and sorts imports in the current file. It can also group imports from the same module in TypeScript and resolve imports in Java.
Supported in filetypes: java, javascript, typescript
Miscellaneous Commands
These commands are for general administration, rather than IDE-like features. They cover things like the semantic engine server instance and compilation flags.
The ExecuteCommand <args>
subcommand
Some LSP completers (currently only Java completers) support executing server-specific commands. Consult the jdt.ls documentation to find out what commands are supported and which arguments are expected.
The support for ExecuteCommand
was implemented to support plugins like
Vimspector to debug java, but isn't limited to that specific use case.
The RestartServer
subcommand
Restarts the downstream semantic engine server for those semantic engines that work as separate servers that YCM talks to.
Supported in filetypes: c, cpp, objc, objcpp, cuda, cs, go, java, javascript, rust, typescript
The ReloadSolution
subcommand
Instruct the Omnisharp-Roslyn server to clear its cache and reload all files from the disk. This is useful when files are added, removed, or renamed in the solution, files are changed outside of Vim, or whenever Omnisharp-Roslyn cache is out-of-sync.
Supported in filetypes: cs
Functions
The youcompleteme#GetErrorCount
function
Get the number of YCM Diagnostic errors. If no errors are present, this function returns 0.
For example:
call youcompleteme#GetErrorCount()
Both this function and youcompleteme#GetWarningCount
can be useful when
integrating YCM with other Vim plugins. For example, a lightline user could
add a diagnostics section to their statusline which would display the number of
errors and warnings.
The youcompleteme#GetWarningCount
function
Get the number of YCM Diagnostic warnings. If no warnings are present, this function returns 0.
For example:
call youcompleteme#GetWarningCount()
The youcompleteme#GetCommandResponse( ... )
function
Run a completer subcommand and return the result as
a string. This can be useful for example to display the GetDoc
output in a
popup window, e.g.:
let s:ycm_hover_popup = -1
function s:Hover()
let response = youcompleteme#GetCommandResponse( 'GetDoc' )
if response == ''
return
endif
call popup_hide( s:ycm_hover_popup )
let s:ycm_hover_popup = popup_atcursor( balloon_split( response ), {} )
endfunction
" CursorHold triggers in normal mode after a delay
autocmd CursorHold * call s:Hover()
" Or, if you prefer, a mapping:
nnoremap <silent> <leader>D :call <SID>Hover()<CR>
NOTE: This is only an example, for real hover support, see
g:ycm_auto_hover
.
If the completer subcommand result is not a string (for example, it's a FixIt or a Location), or if the completer subcommand raises an error, an empty string is returned, so that calling code does not have to check for complex error conditions.
The arguments to the function are the same as the arguments to the
:YcmCompleter
ex command, e.g. the name of the subcommand, followed by any
additional subcommand arguments. As with the YcmCompleter
command, if the
first argument is ft=<filetype>
the request is targeted at the specified
filetype completer. This is an advanced usage and not necessary in most cases.
NOTE: The request is run synchronously and blocks Vim until the response is received, so we do not recommend running this as part of an autocommand that triggers frequently.
The youcompleteme#GetCommandResponseAsync( callback, ... )
function
This works exactly like youcompleteme#GetCommandResponse
, except that instead
of returning the result, you supply a callback
argument. This argument must be
a FuncRef
to a function taking a single argument response
. This callback
will be called with the command response at some point later, or immediately.
As with youcompleteme#GetCommandResponse()
, this function will call the
callback with ''
(an empty string) if the request is not sent, or if there was
some sort of error.
Here's an example that's similar to the one above:
let s:ycm_hover_popup = -1
function! s:ShowDataPopup( response ) abort
if response == ''
return
endif
call popup_hide( s:ycm_hover_popup )
let s:ycm_hover_popup = popup_atcursor( balloon_split( response ), {} )
endfunction
function! s:GetData() abort
call youcompleteme#GetCommandResponseAsync(
\ function( 's:ShowDataPopup' ),
\ 'GetDoc' )
endfunction
autocommand CursorHold * call s:GetData()
Again, see g:ycm_auto_hover
for proper hover
support.
NOTE: The callback may be called immediately, in the stack frame that called this function.
NOTE: Only one command request can be outstanding at once. Attempting to
request a second response while the first is outstanding will result in the
second callback being immediately called with ''
.
Autocommands
The YcmLocationOpened
autocommand
This User
autocommand is fired when YCM opens the location list window in
response to the YcmDiags
command. By default, the location list window is
opened to the bottom of the current window and its height is set to fit all
entries. This behavior can be overridden by using the YcmLocationOpened
autocommand which is triggered while the cursor is in the location list window.
For instance:
function! s:CustomizeYcmLocationWindow()
" Move the window to the top of the screen.
wincmd K
" Set the window height to 5.
5wincmd _
" Switch back to the working window.
wincmd p
endfunction
autocmd User YcmLocationOpened call s:CustomizeYcmLocationWindow()
The YcmQuickFixOpened
autocommand
This User
autocommand is fired when YCM opens the quickfix window in response
to the GoTo*
and RefactorRename
subcommands. By default, the quickfix window
is opened to full width at the bottom of the screen and its height is set to fit
all entries. This behavior can be overridden by using the YcmQuickFixOpened
autocommand which is triggered while the cursor is in the quickfix window. For
instance:
function! s:CustomizeYcmQuickFixWindow()
" Move the window to the top of the screen.
wincmd K
" Set the window height to 5.
5wincmd _
endfunction
autocmd User YcmQuickFixOpened call s:CustomizeYcmQuickFixWindow()
Options
All options have reasonable defaults so if the plug-in works after installation you don't need to change any options. These options can be configured in your vimrc script by including a line like this:
let g:ycm_min_num_of_chars_for_completion = 1
Note that after changing an option in your vimrc script you have to
restart ycmd with the :YcmRestartServer
command for the changes to take
effect.
The g:ycm_min_num_of_chars_for_completion
option
This option controls the number of characters the user needs to type before
identifier-based completion suggestions are triggered. For example, if the
option is set to 2
, then when the user types a second alphanumeric character
after a whitespace character, completion suggestions will be triggered. This
option is NOT used for semantic completion.
Setting this option to a high number like 99
effectively turns off the
identifier completion engine and just leaves the semantic engine.
Default: 2
let g:ycm_min_num_of_chars_for_completion = 2
The g:ycm_min_num_identifier_candidate_chars
option
This option controls the minimum number of characters that a completion candidate coming from the identifier completer must have to be shown in the popup menu.
A special value of 0
means there is no limit.
NOTE: This option only applies to the identifier completer; it has no effect on the various semantic completers.
Default: 0
let g:ycm_min_num_identifier_candidate_chars = 0
The g:ycm_max_num_candidates
option
This option controls the maximum number of semantic completion suggestions shown
in the completion menu. This only applies to suggestions from semantic
completion engines; see the g:ycm_max_identifier_candidates
option to limit the number of
suggestions from the identifier-based engine.
A special value of 0
means there is no limit.
NOTE: Setting this option to 0
or to a value greater than 100
is not
recommended as it will slow down completion when there is a very large number
of suggestions.
Default: 50
let g:ycm_max_num_candidates = 50
The g:ycm_max_num_candidates_to_detail
option
Some completion engines require completion candidates to be 'resolved' in order
to get detailed info such as inline documentation, method signatures, etc. This
information is displayed by YCM in the preview window, or if completeopt
contains popup
, in the info popup next to the completion menu.
By default, if the info popup is in use, and there are more than 10 candidates, YCM will defer resolving candidates until they are selected in the completion menu. Otherwise, YCM must resolve the details upfront, which can be costly.
If neither popup
nor preview
are in completeopt
, YCM disables resolving
altogether as the information would not be displayed.
This setting can be used to override these defaults and controls the number of
completion candidates that should be resolved upfront. Typically users do not
need to change this, as YCM will work out an appropriate value based on your
completeopt
and g:ycm_add_preview_to_completeopt
settings. However, you may
override this calculation by setting this value to a number:
-1
- Resolve all candidates upfront0
- Never resolve any candidates upfront.> 0
- Resolve up to this many candidates upfront. If the number of candidates is greater than this value, no candidates are resolved.
In the latter two cases, if completeopt
contains popup
, then candidates are
resolved on demand asynchronously.
Default:
0
if neitherpopup
norpreview
are incompleteopt
.10
ifpopup
is in completeopt.-1
ifpreview
is in completeopt.
Example:
let g:ycm_max_num_candidates_to_detail = 0
The g:ycm_max_num_identifier_candidates
option
This option controls the maximum number of completion suggestions from the identifier-based engine shown in the completion menu.
A special value of 0
means there is no limit.
NOTE: Setting this option to 0
or to a value greater than 100
is not
recommended as it will slow down completion when there is a very large number
of suggestions.
Default: 10
let g:ycm_max_num_identifier_candidates = 10
The g:ycm_auto_trigger
option
When set to 0
, this option turns off YCM's identifier completer (the
as-you-type popup) and the semantic triggers (the popup you'd get after typing
.
or ->
in say C++). You can still force semantic completion with the
<C-Space>
shortcut.
If you want to just turn off the identifier completer but keep the semantic
triggers, you should set g:ycm_min_num_of_chars_for_completion
to a high
number like 99
.
When g:ycm_auto_trigger
is 0
, YCM sets the completefunc
, so that you can
manually trigger normal completion using C-x C-u
.
If you want to map something else to trigger completion, such as C-d
,
then you can map it to <plug>(YCMComplete)
. For example:
let g:ycm_auto_trigger = 0
imap <c-d> <plug>(YCMComplete)
NOTE: It's not possible to map one of the keys in
g:ycm_key_list_select_completion
(or similar) to <plug>(YCMComplete)
. In
practice that means that you can't use <Tab>
for this.
Default: 1
let g:ycm_auto_trigger = 1
The g:ycm_filetype_whitelist
option
This option controls for which Vim filetypes (see :h filetype
) should YCM be
turned on. The option value should be a Vim dictionary with keys being filetype
strings (like python
, cpp
, etc.) and values being unimportant (the
dictionary is used like a hash set, meaning that only the keys matter).
The *
key is special and matches all filetypes. By default, the whitelist
contains only this *
key.
YCM also has a g:ycm_filetype_blacklist
option that lists filetypes for which
YCM shouldn't be turned on. YCM will work only in filetypes that both the
whitelist and the blacklist allow (the blacklist "allows" a filetype by not
having it as a key).
For example, let's assume you want YCM to work in files with the cpp
filetype.
The filetype should then be present in the whitelist either directly (cpp
key
in the whitelist) or indirectly through the special *
key. It should not be
present in the blacklist.
Filetypes that are blocked by either of the lists will be completely ignored by YCM, meaning that neither the identifier-based completion engine nor the semantic engine will operate in them.
You can get the filetype of the current file in Vim with :set ft?
.
Default: {'*': 1}
let g:ycm_filetype_whitelist = {'*': 1}
** Completion in buffers with no filetype **
There is one exception to the above rule. YCM supports completion in buffers
with no filetype set, but this must be explicitly whitelisted. To identify
buffers with no filetype, we use the ycm_nofiletype
pseudo-filetype. To enable
completion in buffers with no filetype, set:
let g:ycm_filetype_whitelist = {
\ '*': 1,
\ 'ycm_nofiletype': 1
\ }
The g:ycm_filetype_blacklist
option
This option controls for which Vim filetypes (see :h filetype
) should YCM be
turned off. The option value should be a Vim dictionary with keys being filetype
strings (like python
, cpp
, etc.) and values being unimportant (the
dictionary is used like a hash set, meaning that only the keys matter).
See the g:ycm_filetype_whitelist
option for more details on how this works.
Default: [see next line]
let g:ycm_filetype_blacklist = {
\ 'tagbar': 1,
\ 'notes': 1,
\ 'markdown': 1,
\ 'netrw': 1,
\ 'unite': 1,
\ 'text': 1,
\ 'vimwiki': 1,
\ 'pandoc': 1,
\ 'infolog': 1,
\ 'leaderf': 1,
\ 'mail': 1
\}
In addition, ycm_nofiletype
(representing buffers with no filetype set)
is blacklisted if ycm_nofiletype
is not explicitly whitelisted (using
g:ycm_filetype_whitelist
).
The g:ycm_filetype_specific_completion_to_disable
option
This option controls for which Vim filetypes (see :h filetype
) should the YCM
semantic completion engine be turned off. The option value should be a Vim
dictionary with keys being filetype strings (like python
, cpp
, etc.) and
values being unimportant (the dictionary is used like a hash set, meaning that
only the keys matter). The listed filetypes will be ignored by the YCM semantic
completion engine, but the identifier-based completion engine will still trigger
in files of those filetypes.
Note that even if semantic completion is not turned off for a specific filetype, you will not get semantic completion if the semantic engine does not support that filetype.
You can get the filetype of the current file in Vim with :set ft?
.
Default: [see next line]
let g:ycm_filetype_specific_completion_to_disable = {
\ 'gitcommit': 1
\}
The g:ycm_filepath_blacklist
option
This option controls for which Vim filetypes (see :h filetype
) should filepath
completion be disabled. The option value should be a Vim dictionary with keys
being filetype strings (like python
, cpp
, etc.) and values being unimportant
(the dictionary is used like a hash set, meaning that only the keys matter).
The *
key is special and matches all filetypes. Use this key if you want to
completely disable filepath completion:
let g:ycm_filepath_blacklist = {'*': 1}
You can get the filetype of the current file in Vim with :set ft?
.
Default: [see next line]
let g:ycm_filepath_blacklist = {
\ 'html': 1,
\ 'jsx': 1,
\ 'xml': 1,
\}
The g:ycm_show_diagnostics_ui
option
When set, this option turns on YCM's diagnostic display features. See the Diagnostic display section in the User Manual for more details.
Specific parts of the diagnostics UI (like the gutter signs, text highlighting, diagnostic echo, and auto location list population) can be individually turned on or off. See the other options below for details.
Note that YCM's diagnostics UI is only supported for C-family languages.
When set, this option also makes YCM remove all Syntastic checkers set for the
c
, cpp
, objc
, objcpp
, and cuda
filetypes since this would conflict
with YCM's own diagnostics UI.
If you're using YCM's identifier completer in C-family languages but cannot use the clang-based semantic completer for those languages and want to use the GCC Syntastic checkers, unset this option.
Default: 1
let g:ycm_show_diagnostics_ui = 1
The g:ycm_error_symbol
option
YCM will use the value of this option as the symbol for errors in the Vim gutter.
This option is part of the Syntastic compatibility layer; if the option is not
set, YCM will fall back to the value of the g:syntastic_error_symbol
option
before using this option's default.
Default: >>
let g:ycm_error_symbol = '>>'
The g:ycm_warning_symbol
option
YCM will use the value of this option as the symbol for warnings in the Vim gutter.
This option is part of the Syntastic compatibility layer; if the option is not
set, YCM will fall back to the value of the g:syntastic_warning_symbol
option
before using this option's default.
Default: >>
let g:ycm_warning_symbol = '>>'
The g:ycm_enable_diagnostic_signs
option
When this option is set, YCM will put icons in Vim's gutter on lines that have a
diagnostic set. Turning this off will also turn off the YcmErrorLine
and
YcmWarningLine
highlighting.
This option is part of the Syntastic compatibility layer; if the option is not
set, YCM will fall back to the value of the g:syntastic_enable_signs
option
before using this option's default.
Default: 1
let g:ycm_enable_diagnostic_signs = 1
The g:ycm_enable_diagnostic_highlighting
option
When this option is set, YCM will highlight regions of text that are related to the diagnostic that is present on a line, if any.
This option is part of the Syntastic compatibility layer; if the option is not
set, YCM will fall back to the value of the g:syntastic_enable_highlighting
option before using this option's default.
Default: 1
let g:ycm_enable_diagnostic_highlighting = 1
The g:ycm_echo_current_diagnostic
option
When this option is set to 1, YCM will echo the text of the diagnostic present
on the current line when you move your cursor to that line. If a FixIt
is
available for the current diagnostic, then (FixIt)
is appended.
If you have a Vim that supports virtual text, you can set this option
to the string virtual-text
, and the diagnostic will be displayed inline with
the text, right aligned in the window and wrapping to the next line if there is
not enough space, for example:
NOTE: It's strongly recommended to also set
g:ycm_update_diagnostics_in_insert_mode
to 0
when using virtual-text
for
diagnostics. This is due to the increased amount of distraction provided by
drawing diagnostics next to your input position.
This option is part of the Syntastic compatibility layer; if the option is not
set, YCM will fall back to the value of the g:syntastic_echo_current_error
option before using this option's default.
Default: 1
Valid values:
0
- disabled1
- echo diagnostic to the command area'virtual-text'
- display the dignostic to the right of the line in the window using virtual text
let g:ycm_echo_current_diagnostic = 1
" Or, when you have Vim supporting virtual text
let g:ycm_echo_current_diagnostic = 'virtual-text'
The g:ycm_auto_hover
option
This option controls whether or not YCM shows documentation in a popup at the cursor location after a short delay. Only supported in Vim.
When this option is set to 'CursorHold'
, the popup is displayed on the
CursorHold
autocommand. See :help CursorHold
for the details, but this means
that it is displayed after updatetime
milliseconds. When set to an empty
string, the popup is not automatically displayed.
In addition to this setting, there is the <plug>(YCMHover)
mapping, which can
be used to manually trigger or hide the popup (it works like a toggle).
For example:
nmap <leader>D <plug>(YCMHover)
After dismissing the popup with this mapping, it will not be automatically
triggered again until the cursor is moved (i.e. CursorMoved
autocommand).
The displayed documentation depends on what the completer for the current language supports. It's selected heuristically in this order of preference:
GetHover
withmarkdown
syntaxGetDoc
with no syntaxGetType
with the syntax of the current file.
You can customise this by manually setting up b:ycm_hover
to your liking. This
buffer-local variable can be set to a dictionary with the following keys:
command
: The YCM completer subcommand which should be run on hoversyntax
: The syntax to use (as inset syntax=
) in the popup window for highlighting.popup_params
: The params passed to a popup window which gets opened.
For example, to use C/C++ syntax highlighting in the popup for C-family languages, add something like this to your vimrc:
augroup MyYCMCustom
autocmd!
autocmd FileType c,cpp let b:ycm_hover = {
\ 'command': 'GetDoc',
\ 'syntax': &filetype
\ }
augroup END
You can also modify the opened popup with popup_params
key.
For example, you can limit the popup's maximum width and add a border to it:
augroup MyYCMCustom
autocmd!
autocmd FileType c,cpp let b:ycm_hover = {
\ 'command': 'GetDoc',
\ 'syntax': &filetype
\ 'popup_params': {
\ 'maxwidth': 80,
\ 'border': [],
\ 'borderchars': ['─', '│', '─', '│', '┌', '┐', '┘', '└'],
\ },
\ }
augroup END
See :help popup_create-arguments
for the list of available popup window options.
Default: 'CursorHold'
The g:ycm_filter_diagnostics
option
This option controls which diagnostics will be rendered by YCM. This option holds a dictionary of key-values, where the keys are Vim's filetype strings delimited by commas and values are dictionaries describing the filter.
A filter is a dictionary of key-values, where the keys are the type of filter, and the value is a list of arguments to that filter. In the case of just a single item in the list, you may omit the brackets and just provide the argument directly. If any filter matches a diagnostic, it will be dropped and YCM will not render it.
The following filter types are supported:
- "regex": Accepts a string regular expression. This type matches
when the regex (treated as case-insensitive) is found anywhere in the diagnostic
text (
re.search
, notre.match
) - "level": Accepts a string level, either "warning" or "error." This type
matches when the diagnostic has the same level, that is,
specifying
level: "error"
will remove all errors from the diagnostics.
NOTE: The regex syntax is NOT Vim's, it's Python's.
Default: {}
The following example will do, for Java filetype only:
- Remove all error level diagnostics, and,
- Also remove anything that contains
ta<something>co
let g:ycm_filter_diagnostics = {
\ "java": {
\ "regex": [ "ta.+co", ... ],
\ "level": "error",
\ ...
\ }
\ }
The g:ycm_always_populate_location_list
option
When this option is set, YCM will populate the location list automatically every time it gets new diagnostic data. This option is off by default so as not to interfere with other data you might have placed in the location list.
See :help location-list
in Vim to learn more about the location list.
This option is part of the Syntastic compatibility layer; if the option is not
set, YCM will fall back to the value of the
g:syntastic_always_populate_loc_list
option before using this option's
default.
Note: if YCM's errors aren't visible, it might be that YCM is updating an older location list. See :help :lhistory
and :lolder
.
Default: 0
let g:ycm_always_populate_location_list = 0
The g:ycm_open_loclist_on_ycm_diags
option
When this option is set, :YcmDiags
will automatically open the location list
after forcing a compilation and filling the list with diagnostic data.
See :help location-list
in Vim to learn more about the location list.
Default: 1
let g:ycm_open_loclist_on_ycm_diags = 1
The g:ycm_complete_in_comments
option
When this option is set to 1
, YCM will show the completion menu even when
typing inside comments.
Default: 0
let g:ycm_complete_in_comments = 0
The g:ycm_complete_in_strings
option
When this option is set to 1
, YCM will show the completion menu even when
typing inside strings.
Note that this is turned on by default so that you can use the filename
completion inside strings. This is very useful for instance in C-family files
where typing #include "
will trigger the start of filename completion. If you
turn off this option, you will turn off filename completion in such situations
as well.
Default: 1
let g:ycm_complete_in_strings = 1
The g:ycm_collect_identifiers_from_comments_and_strings
option
When this option is set to 1
, YCM's identifier completer will also collect
identifiers from strings and comments. Otherwise, the text in comments and
strings will be ignored.
Default: 0
let g:ycm_collect_identifiers_from_comments_and_strings = 0
The g:ycm_collect_identifiers_from_tags_files
option
When this option is set to 1
, YCM's identifier completer will also collect
identifiers from tags files. The list of tags files to examine is retrieved from
the tagfiles()
Vim function which examines the tags
Vim option. See :h 'tags'
for details.
YCM will re-index your tags files if it detects that they have been modified.
The only supported tag format is the Exuberant Ctags format. The
format from "plain" ctags is NOT supported. Ctags needs to be called with the
--fields=+l
option (that's a lowercase L
, not a one) because YCM needs the
language:<lang>
field in the tags output.
See the FAQ for pointers if YCM does not appear to read your tag files.
This option is off by default because it makes Vim slower if your tags are on a network directory.
Default: 0
let g:ycm_collect_identifiers_from_tags_files = 0
The g:ycm_seed_identifiers_with_syntax
option
When this option is set to 1
, YCM's identifier completer will seed its
identifier database with the keywords of the programming language you're
writing.
Since the keywords are extracted from the Vim syntax file for the filetype, all keywords may not be collected, depending on how the syntax file was written. Usually at least 95% of the keywords are successfully extracted.
Default: 0
let g:ycm_seed_identifiers_with_syntax = 0
The g:ycm_extra_conf_vim_data
option
If you're using semantic completion for C-family files, this option might come
handy; it's a way of sending data from Vim to your Settings
function in
your .ycm_extra_conf.py
file.
This option is supposed to be a list of VimScript expression strings that are
evaluated for every request to the ycmd server and then passed to your
Settings
function as a client_data
keyword argument.
For instance, if you set this option to ['v:version']
, your Settings
function will be called like this:
# The '801' value is of course contingent on Vim 8.1; in 8.0 it would be '800'
Settings( ..., client_data = { 'v:version': 801 } )
So the client_data
parameter is a dictionary mapping Vim expression strings to
their values at the time of the request.
The correct way to define parameters for your Settings
function:
def Settings( **kwargs ):
You can then get to client_data
with kwargs['client_data']
.
Default: []
let g:ycm_extra_conf_vim_data = []
The g:ycm_server_python_interpreter
option
YCM will by default search for an appropriate Python interpreter on your system. You can use this option to override that behavior and force the use of a specific interpreter of your choosing.
NOTE: This interpreter is only used for the ycmd server. The YCM client running inside Vim always uses the Python interpreter that's embedded inside Vim.
Default: ''
let g:ycm_server_python_interpreter = ''
The g:ycm_keep_logfiles
option
When this option is set to 1
, YCM and the ycmd completion server will
keep the logfiles around after shutting down (they are deleted on shutdown by
default).
To see where the log files are, call :YcmDebugInfo
.
Default: 0
let g:ycm_keep_logfiles = 0
The g:ycm_log_level
option
The logging level that YCM and the ycmd completion server use. Valid values are the following, from most verbose to least verbose:
debug
info
warning
error
critical
Note that debug
is very verbose.
Default: info
let g:ycm_log_level = 'info'
The g:ycm_auto_start_csharp_server
option
When set to 1
, the OmniSharp-Roslyn server will be automatically started
(once per Vim session) when you open a C# file.
Default: 1
let g:ycm_auto_start_csharp_server = 1
The g:ycm_auto_stop_csharp_server
option
When set to 1
, the OmniSharp-Roslyn server will be automatically stopped upon
closing Vim.
Default: 1
let g:ycm_auto_stop_csharp_server = 1
The g:ycm_csharp_server_port
option
When g:ycm_auto_start_csharp_server is set to 1
, specifies the port for
the OmniSharp-Roslyn server to listen on. When set to 0
uses an unused port provided
by the OS.
Default: 0
let g:ycm_csharp_server_port = 0
The g:ycm_csharp_insert_namespace_expr
option
By default, when YCM inserts a namespace, it will insert the using
statement
under the nearest using
statement. You may prefer that the using
statement is
inserted somewhere, for example, to preserve sorting. If so, you can set this
option to override this behavior.
When this option is set, instead of inserting the using
statement itself, YCM
will set the global variable g:ycm_namespace_to_insert
to the namespace to
insert, and then evaluate this option's value as an expression. The option's
expression is responsible for inserting the namespace - the default insertion
will not occur.
Default: ''
let g:ycm_csharp_insert_namespace_expr = ''
The g:ycm_add_preview_to_completeopt
option
When this option is set to 1
, YCM will add the preview
string to Vim's
completeopt
option (see :h completeopt
). If your completeopt
option
already has preview
set, there will be no effect. Alternatively, when set to
popup
and your version of Vim supports popup windows (see :help popup
), the
popup
string will be used instead. You can see the current state of your
completeopt
setting with :set completeopt?
(yes, the question mark is
important).
When preview
is present in completeopt
, YCM will use the preview
window at
the top of the file to store detailed information about the current completion
candidate (but only if the candidate came from the semantic engine). For
instance, it would show the full function prototype and all the function
overloads in the window if the current completion is a function name.
When popup
is present in completeopt
, YCM will instead use a popup
window to the side of the completion popup for storing detailed information
about the current completion candidate. In addition, YCM may truncate the
detailed completion information in order to give the popup sufficient room
to display that detailed information.
Default: 0
let g:ycm_add_preview_to_completeopt = 0
The g:ycm_autoclose_preview_window_after_completion
option
When this option is set to 1
, YCM will auto-close the preview
window after
the user accepts the offered completion string. If there is no preview
window
triggered because there is no preview
string in completeopt
, this option is
irrelevant. See the g:ycm_add_preview_to_completeopt
option for more details.
Default: 0
let g:ycm_autoclose_preview_window_after_completion = 0
The g:ycm_autoclose_preview_window_after_insertion
option
When this option is set to 1
, YCM will auto-close the preview
window after
the user leaves insert mode. This option is irrelevant if
g:ycm_autoclose_preview_window_after_completion
is set or if no preview
window is triggered. See the g:ycm_add_preview_to_completeopt
option for more
details.
Default: 0
let g:ycm_autoclose_preview_window_after_insertion = 0
The g:ycm_max_diagnostics_to_display
option
This option controls the maximum number of diagnostics shown to the user when errors or warnings are detected in the file. This option is only relevant for the C-family, C#, Java, JavaScript, and TypeScript languages.
A special value of 0
means there is no limit.
Default: 30
let g:ycm_max_diagnostics_to_display = 30
The g:ycm_key_list_select_completion
option
This option controls the key mappings used to select the first completion string. Invoking any of them repeatedly cycles forward through the completion list.
Some users like adding <Enter>
to this list.
Default: ['<TAB>', '<Down>']
let g:ycm_key_list_select_completion = ['<TAB>', '<Down>']
The g:ycm_key_list_previous_completion
option
This option controls the key mappings used to select the previous completion string. Invoking any of them repeatedly cycles backward through the completion list.
Note that one of the defaults is <S-TAB>
which means Shift-TAB. That mapping
will probably only work in GUI Vim (Gvim or MacVim) and not in plain console Vim
because the terminal usually does not forward modifier key combinations to Vim.
Default: ['<S-TAB>', '<Up>']
let g:ycm_key_list_previous_completion = ['<S-TAB>', '<Up>']
The g:ycm_key_list_stop_completion
option
This option controls the key mappings used to close the completion menu. This is
useful when the menu is blocking the view, when you need to insert the <TAB>
character, or when you want to expand a snippet from UltiSnips and navigate
through it.
Default: ['<C-y>']
let g:ycm_key_list_stop_completion = ['<C-y>']
The g:ycm_key_invoke_completion
option
This option controls the key mapping used to invoke the completion menu for
semantic completion. By default, semantic completion is triggered automatically
after typing characters appropriate for the language, such as .
, ->
, ::
,
etc. in insert mode (if semantic completion support has been compiled in). This
key mapping can be used to trigger semantic completion anywhere. Useful for
searching for top-level functions and classes.
Console Vim (not Gvim or MacVim) passes <Nul>
to Vim when the user types
<C-Space>
so YCM will make sure that <Nul>
is used in the map command when
you're editing in console Vim, and <C-Space>
in GUI Vim. This means that you
can just press <C-Space>
in both the console and GUI Vim and YCM will do the right
thing.
Setting this option to an empty string will make sure no mapping is created.
Default: <C-Space>
let g:ycm_key_invoke_completion = '<C-Space>'
The g:ycm_key_detailed_diagnostics
option
This option controls the key mapping used to show the full diagnostic text when
the user's cursor is on the line with the diagnostic. It basically calls
:YcmShowDetailedDiagnostic
.
Setting this option to an empty string will make sure no mapping is created.
If you prefer the detailed diagnostic to be shown in a popup, then
let g:ycm_show_detailed_diag_in_popup=1
.
Default: <leader>d
let g:ycm_key_detailed_diagnostics = '<leader>d'
The g:ycm_show_detailed_diag_in_popup
option
Makes :YcmShowDetailedDiagnostic
always show in a popup rather than echoing to
the command line.
Default: 0
let g:ycm_show_detailed_diag_in_popup = 0
The g:ycm_global_ycm_extra_conf
option
Normally, YCM searches for a .ycm_extra_conf.py
file for compilation flags
(see the User Guide for more details on how this works). This option specifies
a fallback path to a config file which is used if no .ycm_extra_conf.py
is
found.
You can place such a global file anywhere in your filesystem.
Default: ''
let g:ycm_global_ycm_extra_conf = ''
The g:ycm_confirm_extra_conf
option
When this option is set to 1
YCM will ask once per .ycm_extra_conf.py
file
if it is safe to be loaded. This is to prevent the execution of malicious code
from a .ycm_extra_conf.py
file you didn't write.
To selectively get YCM to ask/not ask about loading certain .ycm_extra_conf.py
files, see the g:ycm_extra_conf_globlist
option.
Default: 1
let g:ycm_confirm_extra_conf = 1
The g:ycm_extra_conf_globlist
option
This option is a list that may contain several globbing patterns. If a pattern
starts with a !
all .ycm_extra_conf.py
files matching that pattern will be
blacklisted, that is they won't be loaded and no confirmation dialog will be
shown. If a pattern does not start with a !
all files matching that pattern
will be whitelisted. Note that this option is not used when confirmation is
disabled using g:ycm_confirm_extra_conf
and that items earlier in the list
will take precedence over the later ones.
Rules:
*
matches everything?
matches any single character[seq]
matches any character in seq[!seq]
matches any char not in seq
Example:
let g:ycm_extra_conf_globlist = ['~/dev/*','!~/*']
- The first rule will match everything contained in the
~/dev
directory so.ycm_extra_conf.py
files from there will be loaded. - The second rule will match everything in the home directory so a
.ycm_extra_conf.py
file from there won't be loaded. - As the first rule takes precedence everything in the home directory excluding
the
~/dev
directory will be blacklisted.
NOTE: The glob pattern is first expanded with Python's
os.path.expanduser()
and then resolved with os.path.abspath()
before being
matched against the filename.
Default: []
let g:ycm_extra_conf_globlist = []
The g:ycm_filepath_completion_use_working_dir
option
By default, YCM's filepath completion will interpret relative paths like ../
as being relative to the folder of the file of the currently active buffer.
Setting this option will force YCM to always interpret relative paths as being
relative to Vim's current working directory.
Default: 0
let g:ycm_filepath_completion_use_working_dir = 0
The g:ycm_semantic_triggers
option
This option controls the character-based triggers for the various semantic completion engines. The option holds a dictionary of key-values, where the keys are Vim's filetype strings delimited by commas and values are lists of strings, where the strings are the triggers.
Setting key-value pairs on the dictionary adds semantic triggers to the internal default set (listed below). You cannot remove the default triggers, only add new ones.
A "trigger" is a sequence of one or more characters that trigger semantic
completion when typed. For instance, C++ (cpp
filetype) has .
listed as a
trigger. So when the user types foo.
, the semantic engine will trigger and
serve foo
's list of member functions and variables. Since C++ also has ->
listed as a trigger, the same thing would happen when the user typed foo->
.
It's also possible to use a regular expression as a trigger. You have to prefix
your trigger with re!
to signify it's a regex trigger. For instance,
re!\w+\.
would only trigger after the \w+\.
regex matches.
NOTE: The regex syntax is NOT Vim's, it's Python's.
Default: [see next line]
let g:ycm_semantic_triggers = {
\ 'c': ['->', '.'],
\ 'objc': ['->', '.', 're!\[[_a-zA-Z]+\w*\s', 're!^\s*[^\W\d]\w*\s',
\ 're!\[.*\]\s'],
\ 'ocaml': ['.', '#'],
\ 'cpp,cuda,objcpp': ['->', '.', '::'],
\ 'perl': ['->'],
\ 'php': ['->', '::'],
\ 'cs,d,elixir,go,groovy,java,javascript,julia,perl6,python,scala,typescript,vb': ['.'],
\ 'ruby,rust': ['.', '::'],
\ 'lua': ['.', ':'],
\ 'erlang': [':'],
\ }
The g:ycm_cache_omnifunc
option
Some omnicompletion engines do not work well with the YCM cache—in particular, they might not produce all possible results for a given prefix. By unsetting this option you can ensure that the omnicompletion engine is re-queried on every keypress. That will ensure all completions will be presented but might cause stuttering and lag if the omnifunc is slow.
Default: 1
let g:ycm_cache_omnifunc = 1
The g:ycm_use_ultisnips_completer
option
By default, YCM will query the UltiSnips plugin for possible completions of snippet triggers. This option can turn that behavior off.
Default: 1
let g:ycm_use_ultisnips_completer = 1
The g:ycm_goto_buffer_command
option
Defines where GoTo*
commands result should be opened. Can take one of the
following values: 'same-buffer'
, 'split'
, or 'split-or-existing-window'
.
If this option is set to the 'same-buffer'
but current buffer can not be
switched (when buffer is modified and nohidden
option is set), then result
will be opened in a split. When the option is set to
'split-or-existing-window'
, if the result is already open in a window of the
current tab page (or any tab pages with the :tab
modifier; see below), it will
jump to that window. Otherwise, the result will be opened in a split as if the
option was set to 'split'
.
To customize the way a new window is split, prefix the GoTo*
command with one
of the following modifiers: :aboveleft
, :belowright
, :botright
,
:leftabove
, :rightbelow
, :topleft
, and :vertical
. For instance, to
split vertically to the right of the current window, run the command:
:rightbelow vertical YcmCompleter GoTo
To open in a new tab page, use the :tab
modifier with the 'split'
or
'split-or-existing-window'
options e.g.:
:tab YcmCompleter GoTo
Default: 'same-buffer'
let g:ycm_goto_buffer_command = 'same-buffer'
The g:ycm_disable_for_files_larger_than_kb
option
Defines the max size (in Kb) for a file to be considered for completion. If this option is set to 0 then no check is made on the size of the file you're opening.
Default: 1000
let g:ycm_disable_for_files_larger_than_kb = 1000
The g:ycm_use_clangd
option
This option controls whether clangd should be used as a completion engine for
C-family languages. Can take one of the following values: 1
, 0
, with
meanings:
1
: YCM will use clangd if clangd binary exists in third party or it was provided withycm_clangd_binary_path
option.0
: YCM will never use clangd completer.
Default: 1
let g:ycm_use_clangd = 1
The g:ycm_clangd_binary_path
option
When ycm_use_clangd
option is set to 1
, this option sets the path to
clangd binary.
Default: ''
let g:ycm_clangd_binary_path = ''
The g:ycm_clangd_args
option
This option controls the command line arguments passed to the clangd binary. It appends new options and overrides the existing ones.
Default: []
let g:ycm_clangd_args = []
The g:ycm_clangd_uses_ycmd_caching
option
This option controls which ranking and filtering algorithm to use for completion items. It can take values:
1
: Uses ycmd's caching and filtering logic.0
: Uses clangd's caching and filtering logic.
Default: 1
let g:ycm_clangd_uses_ycmd_caching = 1
The g:ycm_language_server
option
This option lets YCM use an arbitrary Language Server Protocol (LSP) server, not unlike many other completion systems. The officially supported completers are favoured over custom LSP ones, so overriding an existing completer means first making sure YCM won't choose that existing completer in the first place.
A simple working example of this option can be found in the section called "Semantic Completion for Other Languages".
Many working examples can be found in the YCM lsp-examples repo.
Default: []
let g:ycm_language_server = []
The g:ycm_disable_signature_help
option
This option allows you to disable all signature help for all completion engines. There is no way to disable it per-completer.
Default: 0
" Disable signature help
let g:ycm_disable_signature_help = 1
The g:ycm_signature_help_disable_syntax
option
Set this to 1 to disable syntax highlighting in the signature help popup. Thiis can help if your colourscheme doesn't work well with the default highliting and inverse video.
Default: 0
" Disable signature help syntax highliting
let g:ycm_signature_help_disable_syntax = 1
The g:ycm_gopls_binary_path
option
In case the system-wide gopls
binary is newer than the bundled one, setting
this option to the path of the system-wide gopls
would make YCM use that one
instead.
If the path is just gopls
, YCM will search in $PATH
.
The g:ycm_gopls_args
option
Similar to the g:ycm_clangd_args
, this option allows
passing additional flags to the gopls
command line.
Default: []
let g:ycm_gopls_args = []
The g:ycm_rls_binary_path
and g:ycm_rustc_binary_path
options
YCM no longer uses RLS for rust, and these options are therefore no longer supported.
To use a custom rust-analyzer, see g:ycm_rust_toolchain_root
.
The g:ycm_rust_toolchain_root
option
Optionally specify the path to a custom rust toolchain including at least a
supported version of rust-analyzer
.
The g:ycm_tsserver_binary_path
option
Similar to the gopls
path, this option
tells YCM where is the TSServer executable located.
The g:ycm_roslyn_binary_path
option
Similar to the gopls
path, this option
tells YCM where is the Omnisharp-Roslyn executable located.
The g:ycm_update_diagnostics_in_insert_mode
option
With async diagnostics, LSP servers might send new diagnostics mid-typing. If seeing these new diagnostics while typing is not desired, this option can be set to 0.
When this option is set to 0
, diagnostic signs, virtual text, and highlights
are cleared when entering insert mode and replaced when leaving insert mode.
This reduces visual noise while editing.
In addition, this option is recommended when g:ycm_echo_current_diagnostic
is
set to virtual-text
as it prevents updating the virtual text while you are
typing.
Default: 1
let g:ycm_update_diagnostics_in_insert_mode = 1
FAQ
The FAQ section has been moved to the wiki.
Contributor Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Contact
If you have questions about the plugin or need help, please join the Gitter room or use the ycm-users mailing list.
If you have bug reports or feature suggestions, please use the issue tracker. Before you do, please carefully read CONTRIBUTING.md as this asks for important diagnostics which the team will use to help get you going.
The latest version of the plugin is available at https://ycm-core.github.io/YouCompleteMe/.
The author's homepage is https://val.markovic.io.
Please do NOT go to #vim, Reddit, or Stack Overflow for support. Please contact the YouCompleteMe maintainers directly using the contact details.
License
This software is licensed under the GPL v3 license. © 2015-2018 YouCompleteMe contributors
Sponsorship
If you like YCM so much that you're willing to part with your hard-earned cash, please consider donating to one of the following charities, which are meaningful to the current maintainers (in no particular order):
- Hector's Greyhound Rescue
- Be Humane
- Cancer Research UK
- ICCF Holland
- Any charity of your choosing.
Please note: The YCM maintainers do not specifically endorse nor necessarily have any relationship with the above charities. Disclosure: It is noted that one key maintainer is a family with Trustees of Greyhound Rescue Wales.
Articlesto learn more about the python concepts.
- 1Automating Daily Tasks with Python
- 2Web Scraping with Python to Extract Data from Any Website
- 3Data Analysis with Python Using Pandas for Real-World Data
- 4Top 10 Python Libraries Every Data Scientist Should Know
- 5Building Your First Web App with Flask
- 6Django vs Flask: Which Python Web Framework Should You Choose?
- 7Getting Started with Machine Learning in Python
- 8Deep Learning with TensorFlow to Building Neural Networks in Python
- 9Python for Financial Analysis to Automating Stock Market Data Retrieval
- 10Building a Simple Trading Bot with Python
Resourceswhich are currently available to browse on.
mail [email protected] to add your project or resources here 🔥.
- 1dataclasses — Data Classes
https://docs.python.org/3/library/dataclasses.html
Source code: Lib/dataclasses.py This module provides a decorator and functions for automatically adding generated special methods such as__init__() and__repr__() to user-defined classes. It was ori...
- 2curses — Terminal handling for character-cell displays
https://docs.python.org/3/library/curses.html
Source code: Lib/curses The curses module provides an interface to the curses library, the de-facto standard for portable advanced terminal handling. While curses is most widely used in the Unix en...
- 3cssutils
https://pypi.org/project/cssutils/
A CSS Cascading Style Sheets library for Python
- 4selenium
https://pypi.org/project/selenium/
Official Python bindings for Selenium WebDriver
- 5Coroutine-based concurrency library for Python
https://github.com/gevent/gevent
Coroutine-based concurrency library for Python. Contribute to gevent/gevent development by creating an account on GitHub.
- 6Django Channels HTTP/WebSocket server
https://github.com/django/daphne
Django Channels HTTP/WebSocket server. Contribute to django/daphne development by creating an account on GitHub.
- 7Command Line Interface Formulation Framework. Mirror of code maintained at opendev.org.
https://github.com/openstack/cliff
Command Line Interface Formulation Framework. Mirror of code maintained at opendev.org. - openstack/cliff
- 8Because sometimes you need to do it live
https://github.com/sloria/doitlive
Because sometimes you need to do it live. Contribute to sloria/doitlive development by creating an account on GitHub.
- 9Python dictionaries with advanced dot notation access
https://github.com/cdgriffith/Box
Python dictionaries with advanced dot notation access - cdgriffith/Box
- 10Simple cross-platform colored terminal text in Python
https://github.com/tartley/colorama
Simple cross-platform colored terminal text in Python - tartley/colorama
- 11asyncio — Asynchronous I/O
https://docs.python.org/3/library/asyncio.html
Hello World!: asyncio is a library to write concurrent code using the async/await syntax. asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance n...
- 12difflib — Helpers for computing deltas
https://docs.python.org/3/library/difflib.html
Source code: Lib/difflib.py This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and can produce information about file differences i...
- 13Open Source Cloud Computing Infrastructure - OpenStack
https://www.openstack.org/
OpenStack is an open source cloud computing infrastructure software project and is one of the three most active open source projects in the world.
- 14multiprocessing — Process-based parallelism
https://docs.python.org/3/library/multiprocessing.html
Source code: Lib/multiprocessing/ Availability: not Emscripten, not WASI. This module does not work or is not available on WebAssembly platforms wasm32-emscripten and wasm32-wasi. See WebAssembly p...
- 15Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
https://github.com/pgjones/hypercorn
Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn. - pgjones/hypercorn
- 16Automatic caching and invalidation for Django models through the ORM.
https://github.com/django-cache-machine/django-cache-machine
Automatic caching and invalidation for Django models through the ORM. - django-cache-machine/django-cache-machine
- 17A jazzy skin for the Django Admin-Interface (official repository).
https://github.com/sehmaschine/django-grappelli
A jazzy skin for the Django Admin-Interface (official repository). - sehmaschine/django-grappelli
- 18A Python wrapper for the tesseract-ocr API
https://github.com/sirfz/tesserocr
A Python wrapper for the tesseract-ocr API. Contribute to sirfz/tesserocr development by creating an account on GitHub.
- 19Library and command-line utility for rendering projects templates.
https://github.com/copier-org/copier
Library and command-line utility for rendering projects templates. - copier-org/copier
- 20Scrapy, a fast high-level web crawling & scraping framework for Python.
https://github.com/scrapy/scrapy
Scrapy, a fast high-level web crawling & scraping framework for Python. - scrapy/scrapy
- 21Python - Visual Studio Marketplace
https://marketplace.visualstudio.com/items?itemName=ms-python.python
Extension for Visual Studio Code - Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more.
- 22coverage
https://pypi.org/project/coverage/
Code coverage measurement for Python
- 23Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.
https://github.com/pennersr/django-allauth
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication. - pennersr/django-allauth
- 24doublex
https://pypi.org/project/doublex/
Python test doubles
- 25configparser — Configuration file parser
https://docs.python.org/3/library/configparser.html
Source code: Lib/configparser.py This module provides the ConfigParser class which implements a basic configuration language which provides a structure similar to what’s found in Microsoft Windows ...
- 26WSGI middleware for sessions and caching
https://github.com/bbangert/beaker
WSGI middleware for sessions and caching. Contribute to bbangert/beaker development by creating an account on GitHub.
- 27A simple but flexible plugin system for Python.
https://github.com/mitsuhiko/pluginbase
A simple but flexible plugin system for Python. Contribute to mitsuhiko/pluginbase development by creating an account on GitHub.
- 28eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ID3v1 (1.0/1.1) and ID3v2 (2.3/2.4).
https://github.com/nicfit/eyeD3
eyeD3 is a Python module and command line program for processing ID3 tags. Information about mp3 files (i.e bit rate, sample frequency, play time, etc.) is also provided. The formats supported are ...
- 29dogpile.cache is a Python caching API which provides a generic interface to caching backends of any variety
https://github.com/sqlalchemy/dogpile.cache
dogpile.cache is a Python caching API which provides a generic interface to caching backends of any variety - sqlalchemy/dogpile.cache
- 30Panda3D | Open Source Framework for 3D Rendering & Games
https://www.panda3d.org/
Panda3D is an open-source, cross-platform, completely free-to-use engine for realtime 3D games, visualizations, simulations, experiments — you name it! Its rich feature set readily tailors to your specific workflow and development needs.
- 31mimetypes — Map filenames to MIME types
https://docs.python.org/3/library/mimetypes.html
Source code: Lib/mimetypes.py The mimetypes module converts between a filename or URL and the MIME type associated with the filename extension. Conversions are provided from filename to MIME type a...
- 32music library manager and MusicBrainz tagger
https://github.com/beetbox/beets
music library manager and MusicBrainz tagger. Contribute to beetbox/beets development by creating an account on GitHub.
- 33Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
https://github.com/ansible/ansible
Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to clo...
- 34Python CLI utility and library for manipulating SQLite databases
https://github.com/simonw/sqlite-utils
Python CLI utility and library for manipulating SQLite databases - simonw/sqlite-utils
- 35Asset management for Python web development.
https://github.com/miracle2k/webassets
Asset management for Python web development. Contribute to miracle2k/webassets development by creating an account on GitHub.
- 36JSON Web Token implementation in Python
https://github.com/jpadilla/pyjwt
JSON Web Token implementation in Python. Contribute to jpadilla/pyjwt development by creating an account on GitHub.
- 37Python Classes Without Boilerplate
https://github.com/python-attrs/attrs
Python Classes Without Boilerplate. Contribute to python-attrs/attrs development by creating an account on GitHub.
- 38Basic Utilities for PyTorch Natural Language Processing (NLP)
https://github.com/PetrochukM/PyTorch-NLP
Basic Utilities for PyTorch Natural Language Processing (NLP) - PetrochukM/PyTorch-NLP
- 39A Python library that generates static type annotations by collecting runtime types
https://github.com/Instagram/MonkeyType
A Python library that generates static type annotations by collecting runtime types - Instagram/MonkeyType
- 40Collection of awesome Python types, stubs, plugins, and tools to work with them.
https://github.com/typeddjango/awesome-python-typing
Collection of awesome Python types, stubs, plugins, and tools to work with them. - typeddjango/awesome-python-typing
- 41Streamlit — A faster way to build and share data apps.
https://github.com/streamlit/streamlit
Streamlit — A faster way to build and share data apps. - streamlit/streamlit
- 42Project Jupyter
https://jupyter.org
The Jupyter Notebook is a web-based interactive computing platform. The notebook combines live code, equations, narrative text, visualizations, interactive dashboards and other media.
- 43Python library that provides a method of accessing lists and dicts with a dotted path notation.
https://github.com/carlosescri/DottedDict
Python library that provides a method of accessing lists and dicts with a dotted path notation. - carlosescri/DottedDict
- 44Postgres CLI with autocompletion and syntax highlighting
https://github.com/dbcli/pgcli
Postgres CLI with autocompletion and syntax highlighting - dbcli/pgcli
- 45MySQL for Python
https://sourceforge.net/projects/mysql-python/
Download MySQL for Python for free. MySQL database connector for Python programming. MySQLdb is a Python DB API-2.0-compliant interface; see PEP-249 for details.
- 46Real-time monitor and web admin for Celery distributed task queue
https://github.com/mher/flower
Real-time monitor and web admin for Celery distributed task queue - mher/flower
- 47Concurrent networking library for Python
https://github.com/eventlet/eventlet
Concurrent networking library for Python. Contribute to eventlet/eventlet development by creating an account on GitHub.
- 48Python Sorted Container Types: Sorted List, Sorted Dict, and Sorted Set
https://github.com/grantjenks/python-sortedcontainers
Python Sorted Container Types: Sorted List, Sorted Dict, and Sorted Set - grantjenks/python-sortedcontainers
- 49🖥️ Session manager for tmux, build on libtmux.
https://github.com/tmux-python/tmuxp
🖥️ Session manager for tmux, build on libtmux. Contribute to tmux-python/tmuxp development by creating an account on GitHub.
- 50Application Framework for Python
https://github.com/datafolklabs/cement
Application Framework for Python. Contribute to datafolklabs/cement development by creating an account on GitHub.
- 51Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python.
https://github.com/grantjenks/python-diskcache
Python disk-backed cache (Django-compatible). Faster than Redis and Memcached. Pure-Python. - grantjenks/python-diskcache
- 52Library for building powerful interactive command line applications in Python
https://github.com/prompt-toolkit/python-prompt-toolkit
Library for building powerful interactive command line applications in Python - prompt-toolkit/python-prompt-toolkit
- 53It's not just a linter that annoys you!
https://github.com/pylint-dev/pylint
It's not just a linter that annoys you! Contribute to pylint-dev/pylint development by creating an account on GitHub.
- 54logging — Logging facility for Python
https://docs.python.org/3/library/logging.html
Source code: Lib/logging/__init__.py Important: This page contains the API reference information. For tutorial information and discussion of more advanced topics, see Basic Tutorial, Advanced Tutor...
- 55pathlib — Object-oriented filesystem paths
https://docs.python.org/3/library/pathlib.html
Source code: Lib/pathlib.py This module offers classes representing filesystem paths with semantics appropriate for different operating systems. Path classes are divided between pure paths, which p...
- 56subprocess — Subprocess management
https://docs.python.org/3/library/subprocess.html
Source code: Lib/subprocess.py The subprocess module allows you to spawn new processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace seve...
- 57unittest — Unit testing framework
https://docs.python.org/3/library/unittest.html
Source code: Lib/unittest/__init__.py(If you are already familiar with the basic concepts of testing, you might want to skip to the list of assert methods.) The unittest unit testing framework was ...
- 58Python 3+ compatible port of the configobj library
https://github.com/DiffSK/configobj
Python 3+ compatible port of the configobj library - DiffSK/configobj
- 59CLI for SQLite Databases with auto-completion and syntax highlighting
https://github.com/dbcli/litecli
CLI for SQLite Databases with auto-completion and syntax highlighting - dbcli/litecli
- 60A library for audio and music analysis, feature extraction.
https://github.com/libAudioFlux/audioFlux
A library for audio and music analysis, feature extraction. - libAudioFlux/audioFlux
- 61Dead simple CLI tool to try Python packages - It's never been easier!
https://github.com/timofurrer/try
Dead simple CLI tool to try Python packages - It's never been easier! :package: - GitHub - timofurrer/try: Dead simple CLI tool to try Python packages - It's never been easier!
- 62Pretty good call graphs for dynamic languages
https://github.com/scottrogowski/code2flow
Pretty good call graphs for dynamic languages. Contribute to scottrogowski/code2flow development by creating an account on GitHub.
- 63A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
https://github.com/peterbrittain/asciimatics
A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations - peterbrittain/asciimatics
- 64Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
https://github.com/tyiannak/pyAudioAnalysis
Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications - tyiannak/pyAudioAnalysis
- 65Multilingual text (NLP) processing toolkit
https://github.com/aboSamoor/polyglot
Multilingual text (NLP) processing toolkit . Contribute to aboSamoor/polyglot development by creating an account on GitHub.
- 66PathPicker accepts a wide range of input -- output from git commands, grep results, searches -- pretty much anything. After parsing the input, PathPicker presents you with a nice UI to select which files you're interested in. After that you can open them in your favorite editor or execute arbitrary commands.
https://github.com/facebook/PathPicker
PathPicker accepts a wide range of input -- output from git commands, grep results, searches -- pretty much anything. After parsing the input, PathPicker presents you with a nice UI to select which...
- 67Cross-platform Python Framework for NUI
https://kivy.org/
Open source Python framework for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps.
- 68Python library for audio and music analysis
https://github.com/librosa/librosa
Python library for audio and music analysis. Contribute to librosa/librosa development by creating an account on GitHub.
- 69Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions.
https://github.com/pudo/dataset
Easy-to-use data handling for SQL data stores with support for implicit table creation, bulk loading, and transactions. - pudo/dataset
- 70A Python wrapper around the libmemcached interface from TangentOrg.
https://github.com/lericson/pylibmc
A Python wrapper around the libmemcached interface from TangentOrg. - GitHub - lericson/pylibmc: A Python wrapper around the libmemcached interface from TangentOrg.
- 71Developer-friendly asynchrony for Django
https://github.com/django/channels
Developer-friendly asynchrony for Django. Contribute to django/channels development by creating an account on GitHub.
- 72Buildout is a deployment automation tool written in and extended with Python
https://github.com/buildout/buildout
Buildout is a deployment automation tool written in and extended with Python - buildout/buildout
- 73WebSocket and WAMP in Python for Twisted and asyncio
https://github.com/crossbario/autobahn-python
WebSocket and WAMP in Python for Twisted and asyncio - crossbario/autobahn-python
- 74A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
https://github.com/dbcli/mycli
A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting. - dbcli/mycli
- 75A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings.
https://github.com/selwin/python-user-agents
A Python library that provides an easy way to identify devices like mobile phones, tablets and their capabilities by parsing (browser) user agent strings. - selwin/python-user-agents
- 76Python library and shell utilities to monitor filesystem events.
https://github.com/gorakhargosh/watchdog
Python library and shell utilities to monitor filesystem events. - gorakhargosh/watchdog
- 77A Django content management system focused on flexibility and user experience
https://github.com/wagtail/wagtail
A Django content management system focused on flexibility and user experience - wagtail/wagtail
- 78A generic, spec-compliant, thorough implementation of the OAuth request-signing logic
https://github.com/oauthlib/oauthlib
A generic, spec-compliant, thorough implementation of the OAuth request-signing logic - oauthlib/oauthlib
- 79radar
https://pypi.org/project/radar/
Generate random date(time).
- 80Modularity, scalability & security for your business
http://www.tryton.org/
TRYTON is business software, ideal for companies of any size, easy to use, complete and 100% Open Source.
- 81unittest.mock — mock object library
https://docs.python.org/3/library/unittest.mock.html
Source code: Lib/unittest/mock.py unittest.mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they hav...
- 82Official home for the pymssql source code.
https://github.com/pymssql/pymssql
Official home for the pymssql source code. Contribute to pymssql/pymssql development by creating an account on GitHub.
- 83Ajenti Core and stock plugins
https://github.com/ajenti/ajenti
Ajenti Core and stock plugins. Contribute to ajenti/ajenti development by creating an account on GitHub.
- 84instant coding answers via the command line
https://github.com/gleitz/howdoi
instant coding answers via the command line. Contribute to gleitz/howdoi development by creating an account on GitHub.
- 85A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/
https://github.com/pypa/bandersnatch/
A PyPI mirror client according to PEP 381 http://www.python.org/dev/peps/pep-0381/ - pypa/bandersnatch
- 86Indico - A feature-rich event management system, made @ CERN, the place where the Web was born.
https://github.com/indico/indico
Indico - A feature-rich event management system, made @ CERN, the place where the Web was born. - indico/indico
- 87concurrent.futures — Launching parallel tasks
https://docs.python.org/3/library/concurrent.futures.html
Source code: Lib/concurrent/futures/thread.py and Lib/concurrent/futures/process.py The concurrent.futures module provides a high-level interface for asynchronously executing callables. The asynchr...
- 88HermesCache
https://pypi.org/project/HermesCache/
Python caching library with tag-based invalidation and dogpile effect prevention
- 89Unidecode
https://pypi.org/project/Unidecode/
ASCII transliterations of Unicode text
- 90Web Scraping Framework
https://github.com/lorien/grab
Web Scraping Framework. Contribute to lorien/grab development by creating an account on GitHub.
- 91Python object-oriented database
https://github.com/zopefoundation/ZODB
Python object-oriented database. Contribute to zopefoundation/ZODB development by creating an account on GitHub.
- 92The Python programming language
https://github.com/python/cpython
The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
- 93Minimal examples of data structures and algorithms in Python
https://github.com/keon/algorithms
Minimal examples of data structures and algorithms in Python - keon/algorithms
- 94GeoDjango | Django documentation
https://docs.djangoproject.com/en/dev/ref/contrib/gis/
The web framework for perfectionists with deadlines.
- 95flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
https://github.com/PyCQA/flake8
flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code. - PyCQA/flake8
- 96datetime — Basic date and time types
https://docs.python.org/3/library/datetime.html
Source code: Lib/datetime.py The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is supported, the focus of the implementation is on efficient attr...
- 97sqlite3 — DB-API 2.0 interface for SQLite databases
https://docs.python.org/3/library/sqlite3.html
Source code: Lib/sqlite3/ SQLite is a C library that provides a lightweight disk-based database that doesn’t require a separate server process and allows accessing the database using a nonstandard ...
- 98Chef-like functionality for Fabric
https://github.com/sebastien/cuisine
Chef-like functionality for Fabric. Contribute to sebastien/cuisine development by creating an account on GitHub.
- 99A Python module for creating Excel XLSX files.
https://github.com/jmcnamara/XlsxWriter
A Python module for creating Excel XLSX files. Contribute to jmcnamara/XlsxWriter development by creating an account on GitHub.
- 100fastFM: A Library for Factorization Machines
https://github.com/ibayer/fastFM
fastFM: A Library for Factorization Machines. Contribute to ibayer/fastFM development by creating an account on GitHub.
- 101🎚️ Open Source Audio Matching and Mastering
https://github.com/sergree/matchering
🎚️ Open Source Audio Matching and Mastering. Contribute to sergree/matchering development by creating an account on GitHub.
- 102cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
https://github.com/pyca/cryptography
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers. - pyca/cryptography
- 103pytz
https://pypi.org/project/pytz/
World timezone definitions, modern and historical
- 104A jquery-like library for python
https://github.com/gawel/pyquery
A jquery-like library for python. Contribute to gawel/pyquery development by creating an account on GitHub.
- 105The leading native Python SSHv2 protocol library.
https://github.com/paramiko/paramiko
The leading native Python SSHv2 protocol library. Contribute to paramiko/paramiko development by creating an account on GitHub.
- 106Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.
https://github.com/laixintao/iredis
Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting. - laixintao/iredis
- 107PyPy / pypy · GitLab
https://foss.heptapod.net/pypy/pypy
PyPy is a very fast and compliant implementation of the Python language.
- 108Performant type-checking for python.
https://github.com/facebook/pyre-check
Performant type-checking for python. Contribute to facebook/pyre-check development by creating an account on GitHub.
- 109A collection of design patterns/idioms in Python
https://github.com/faif/python-patterns
A collection of design patterns/idioms in Python. Contribute to faif/python-patterns development by creating an account on GitHub.
- 110🎨 Generate and change color-schemes on the fly.
https://github.com/dylanaraps/pywal
🎨 Generate and change color-schemes on the fly. Contribute to dylanaraps/pywal development by creating an account on GitHub.
- 111SCons - a software construction tool
https://github.com/SCons/scons
SCons - a software construction tool. Contribute to SCons/scons development by creating an account on GitHub.
- 112cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python
https://github.com/beetbox/audioread
cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python - beetbox/audioread
- 113Simple tagging for django
https://github.com/jazzband/django-taggit
Simple tagging for django. Contribute to jazzband/django-taggit development by creating an account on GitHub.
- 114Pipeline is an asset packaging library for Django.
https://github.com/jazzband/django-pipeline
Pipeline is an asset packaging library for Django. - jazzband/django-pipeline
- 115A Django app that creates automatic web UIs for Python scripts.
https://github.com/wooey/wooey
A Django app that creates automatic web UIs for Python scripts. - wooey/Wooey
- 116The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
https://github.com/lepture/authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included. - lepture/authlib
- 117Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
https://github.com/google/python-fire
Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object. - google/python-fire
- 118kapre: Keras Audio Preprocessors
https://github.com/keunwoochoi/kapre
kapre: Keras Audio Preprocessors. Contribute to keunwoochoi/kapre development by creating an account on GitHub.
- 119The official bitbake Git is at https://git.openembedded.org/bitbake/. Do not open issues or file pull requests here.
https://github.com/openembedded/bitbake
The official bitbake Git is at https://git.openembedded.org/bitbake/. Do not open issues or file pull requests here. - openembedded/bitbake
- 120Apache Kafka
https://kafka.apache.org/documentation/streams/
Apache Kafka: A Distributed Streaming Platform.
- 121the Python IDE for data science and web development
https://www.jetbrains.com/pycharm/
The Python IDE for data science and web development with intelligent code completion, on-the-fly error checking, quick-fixes, and much more.
- 122㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.
https://github.com/WhyNotHugo/python-barcode
㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python. - WhyNotHugo/python-barcode
- 123Standards-compliant library for parsing and serializing HTML documents and fragments in Python
https://github.com/html5lib/html5lib-python
Standards-compliant library for parsing and serializing HTML documents and fragments in Python - html5lib/html5lib-python
- 124A curated list of awesome PostgreSQL software, libraries, tools and resources, inspired by awesome-mysql
https://github.com/dhamaniasad/awesome-postgres
A curated list of awesome PostgreSQL software, libraries, tools and resources, inspired by awesome-mysql - dhamaniasad/awesome-postgres
- 125plotting in the terminal
https://github.com/glamp/bashplotlib
plotting in the terminal. Contribute to glamp/bashplotlib development by creating an account on GitHub.
- 126Hydra is a framework for elegantly configuring complex applications
https://github.com/facebookresearch/hydra
Hydra is a framework for elegantly configuring complex applications - facebookresearch/hydra
- 127All Algorithms implemented in Python
https://github.com/TheAlgorithms/Python
All Algorithms implemented in Python. Contribute to TheAlgorithms/Python development by creating an account on GitHub.
- 128scalable audio processing framework and server written in Python
https://github.com/Parisson/TimeSide
scalable audio processing framework and server written in Python - Parisson/TimeSide
- 129The uncompromising Python code formatter
https://github.com/psf/black
The uncompromising Python code formatter. Contribute to psf/black development by creating an account on GitHub.
- 130Python composable command line interface toolkit
https://github.com/pallets/click/
Python composable command line interface toolkit. Contribute to pallets/click development by creating an account on GitHub.
- 131Write scalable load tests in plain Python 🚗💨
https://github.com/locustio/locust
Write scalable load tests in plain Python 🚗💨. Contribute to locustio/locust development by creating an account on GitHub.
- 132An ASGI web server, for Python. 🦄
https://github.com/encode/uvicorn
An ASGI web server, for Python. 🦄. Contribute to encode/uvicorn development by creating an account on GitHub.
- 133Collection of library stubs for Python, with static types
https://github.com/python/typeshed
Collection of library stubs for Python, with static types - python/typeshed
- 134Intercept HTTP requests at the Python socket level. Fakes the whole socket module
https://github.com/gabrielfalcao/HTTPretty
Intercept HTTP requests at the Python socket level. Fakes the whole socket module - gabrielfalcao/HTTPretty
- 135Audio fingerprinting and recognition in Python
https://github.com/worldveil/dejavu
Audio fingerprinting and recognition in Python. Contribute to worldveil/dejavu development by creating an account on GitHub.
- 136Rich is a Python library for rich text and beautiful formatting in the terminal.
https://github.com/Textualize/rich
Rich is a Python library for rich text and beautiful formatting in the terminal. - Textualize/rich
- 137Bowler · Safe code refactoring for modern Python
https://pybowler.io/
Safe code refactoring for modern Python
- 138:truck: Agile Data Preparation Workflows made easy with Pandas, Dask, cuDF, Dask-cuDF, Vaex and PySpark
https://github.com/hi-primus/optimus
:truck: Agile Data Preparation Workflows made easy with Pandas, Dask, cuDF, Dask-cuDF, Vaex and PySpark - hi-primus/optimus
- 139Python binding to the Networking and Cryptography (NaCl) library
https://github.com/pyca/pynacl
Python binding to the Networking and Cryptography (NaCl) library - pyca/pynacl
- 140MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://github.com/micropython/micropython
MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems - micropython/micropython
- 141Manipulate audio with a simple and easy high level interface
https://github.com/jiaaro/pydub
Manipulate audio with a simple and easy high level interface - jiaaro/pydub
- 142Event-driven networking engine written in Python.
https://github.com/twisted/twisted
Event-driven networking engine written in Python. Contribute to twisted/twisted development by creating an account on GitHub.
- 143Qt | Tools for Each Stage of Software Development Lifecycle
https://www.qt.io/
All the essential Qt tools for all stages of Software Development Lifecycle: planning, design, development, testing, and deployment.
- 144spaCy · Industrial-strength Natural Language Processing in Python
https://spacy.io/
spaCy is a free open-source library for Natural Language Processing in Python. It features NER, POS tagging, dependency parsing, word vectors and more.
- 145A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
https://github.com/rsalmei/alive-progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations! - rsalmei/alive-progress
- 146team-simpy / simpy · GitLab
https://gitlab.com/team-simpy/simpy
GitLab.com
- 147Lightweight, extensible data validation library for Python
https://github.com/pyeve/cerberus
Lightweight, extensible data validation library for Python - pyeve/cerberus
- 148A simple library for implementing common design patterns.
https://github.com/tylerlaberge/PyPattyrn
A simple library for implementing common design patterns. - tylerlaberge/PyPattyrn
- 149Strict separation of config from code.
https://github.com/HBNetwork/python-decouple
Strict separation of config from code. Contribute to HBNetwork/python-decouple development by creating an account on GitHub.
- 150A Django-based CMS with a focus on extensibility and concise code
https://github.com/feincms/feincms
A Django-based CMS with a focus on extensibility and concise code - feincms/feincms
- 151Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://github.com/pytorch/pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration - pytorch/pytorch
- 152Software build automation tool for Python.
https://github.com/pybuilder/pybuilder
Software build automation tool for Python. Contribute to pybuilder/pybuilder development by creating an account on GitHub.
- 153Geometric Computer Vision Library for Spatial AI
https://github.com/kornia/kornia/
Geometric Computer Vision Library for Spatial AI. Contribute to kornia/kornia development by creating an account on GitHub.
- 154Find dead Python code
https://github.com/jendrikseipp/vulture
Find dead Python code. Contribute to jendrikseipp/vulture development by creating an account on GitHub.
- 155Python module for handling audio metadata
https://github.com/quodlibet/mutagen
Python module for handling audio metadata. Contribute to quodlibet/mutagen development by creating an account on GitHub.
- 156A static type analyzer for Python code
https://github.com/google/pytype
A static type analyzer for Python code. Contribute to google/pytype development by creating an account on GitHub.
- 157Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
https://github.com/pythonnet/pythonnet
Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET develo...
- 158tmux source code
https://github.com/tmux/tmux
tmux source code. Contribute to tmux/tmux development by creating an account on GitHub.
- 159Ultra fast asyncio event loop.
https://github.com/MagicStack/uvloop
Ultra fast asyncio event loop. Contribute to MagicStack/uvloop development by creating an account on GitHub.
- 160Motor - the async Python driver for MongoDB and Tornado or asyncio
https://github.com/mongodb/motor
Motor - the async Python driver for MongoDB and Tornado or asyncio - mongodb/motor
- 161Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://github.com/s3tools/s3cmd
Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront). - s3tools/s3cmd
- 162Awesome Django authorization, without the database
https://github.com/dfunckt/django-rules
Awesome Django authorization, without the database - dfunckt/django-rules
- 163Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://github.com/JaidedAI/EasyOCR
Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc. - JaidedAI/EasyOCR
- 164pandas on AWS - Easy integration with Athena, Glue, Redshift, Timestream, Neptune, OpenSearch, QuickSight, Chime, CloudWatchLogs, DynamoDB, EMR, SecretManager, PostgreSQL, MySQL, SQLServer and S3 (Parquet, CSV, JSON and EXCEL).
https://github.com/aws/aws-sdk-pandas
pandas on AWS - Easy integration with Athena, Glue, Redshift, Timestream, Neptune, OpenSearch, QuickSight, Chime, CloudWatchLogs, DynamoDB, EMR, SecretManager, PostgreSQL, MySQL, SQLServer and S3 (...
- 165Optional static typing for Python
https://github.com/python/mypy
Optional static typing for Python. Contribute to python/mypy development by creating an account on GitHub.
- 166A JOSE implementation in Python
https://github.com/mpdavis/python-jose/
A JOSE implementation in Python. Contribute to mpdavis/python-jose development by creating an account on GitHub.
- 167Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
https://github.com/errbotio/errbot/
Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation. - errbotio/errbot
- 168No non-sense and no BS repo for how data structure code should be in Python - simple and elegant.
https://github.com/prabhupant/python-ds
No non-sense and no BS repo for how data structure code should be in Python - simple and elegant. - prabhupant/python-ds
- 169OAuth2 goodies for the Djangonauts!
https://github.com/jazzband/django-oauth-toolkit
OAuth2 goodies for the Djangonauts! Contribute to jazzband/django-oauth-toolkit development by creating an account on GitHub.
- 170Python Stream Processing
https://github.com/robinhood/faust
Python Stream Processing. Contribute to robinhood/faust development by creating an account on GitHub.
- 171Apache Libcloud is a standard Python library that abstracts away differences among multiple cloud provider APIs
https://libcloud.apache.org/
Python library for interacting with many of the popular cloud service providers using a unified API.
- 172结巴中文分词
https://github.com/fxsjy/jieba
结巴中文分词. Contribute to fxsjy/jieba development by creating an account on GitHub.
- 173The bidirectional mapping library for Python.
https://github.com/jab/bidict
The bidirectional mapping library for Python. Contribute to jab/bidict development by creating an account on GitHub.
- 174A curated list of awesome Python asyncio frameworks, libraries, software and resources
https://github.com/timofurrer/awesome-asyncio
A curated list of awesome Python asyncio frameworks, libraries, software and resources - timofurrer/awesome-asyncio
- 175🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://github.com/httpie/cli
🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. - httpie/cli
- 176:octocat: A curated awesome list of flake8 extensions. Feel free to contribute! :mortar_board:
https://github.com/DmytroLitvinov/awesome-flake8-extensions
:octocat: A curated awesome list of flake8 extensions. Feel free to contribute! :mortar_board: - DmytroLitvinov/awesome-flake8-extensions
- 177A curated list of awesome Flask resources and plugins
https://github.com/humiaozuzu/awesome-flask
A curated list of awesome Flask resources and plugins - humiaozuzu/awesome-flask
- 178Magnificent app which corrects your previous console command.
https://github.com/nvbn/thefuck
Magnificent app which corrects your previous console command. - nvbn/thefuck
- 179Python requests like API built on top of Twisted's HTTP client.
https://github.com/twisted/treq
Python requests like API built on top of Twisted's HTTP client. - twisted/treq
- 180:art: Diagram as Code for prototyping cloud system architectures
https://github.com/mingrammer/diagrams
:art: Diagram as Code for prototyping cloud system architectures - mingrammer/diagrams
- 181SQLAlchemy
https://www.sqlalchemy.org/
The Database Toolkit for Python
- 182Accelerate your web app development | Build fast. Run fast.
https://github.com/sanic-org/sanic
Accelerate your web app development | Build fast. Run fast. - sanic-org/sanic
- 183structlog
https://www.structlog.org/en/stable/
Simple. Powerful. Fast. Pick three. Release 24.4.0( What’s new?) structlog is the production-ready logging solution for Python: Simple: Everything is about functions that take and return dictionari...
- 184Python for Windows (pywin32) Extensions
https://github.com/mhammond/pywin32
Python for Windows (pywin32) Extensions. Contribute to mhammond/pywin32 development by creating an account on GitHub.
- 185MySQL client library for Python
https://github.com/PyMySQL/PyMySQL
MySQL client library for Python. Contribute to PyMySQL/PyMySQL development by creating an account on GitHub.
- 186Your Gateway to Embedded Software Development Excellence :alien:
https://github.com/platformio/platformio-core
Your Gateway to Embedded Software Development Excellence :alien: - platformio/platformio-core
- 187Build software better, together
https://github.com/tesseract-ocr.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 188An open source multi-tool for exploring and publishing data
https://github.com/simonw/datasette
An open source multi-tool for exploring and publishing data - simonw/datasette
- 189A curated list of awesome tools for Sphinx Python Documentation Generator
https://github.com/yoloseem/awesome-sphinxdoc
A curated list of awesome tools for Sphinx Python Documentation Generator - yoloseem/awesome-sphinxdoc
- 190A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects.
https://github.com/cookiecutter/cookiecutter
A cross-platform command-line utility that creates projects from cookiecutters (project templates), e.g. Python package projects, C projects. - cookiecutter/cookiecutter
- 191Trio – a friendly Python library for async concurrency and I/O
https://github.com/python-trio/trio
Trio – a friendly Python library for async concurrency and I/O - python-trio/trio
- 192Paranoid text spacing in Python
https://github.com/vinta/pangu.py
Paranoid text spacing in Python. Contribute to vinta/pangu.py development by creating an account on GitHub.
- 193Pythonic task management & command execution.
https://github.com/pyinvoke/invoke
Pythonic task management & command execution. Contribute to pyinvoke/invoke development by creating an account on GitHub.
- 194Python Tools for Visual Studio
https://github.com/Microsoft/PTVS
Python Tools for Visual Studio. Contribute to microsoft/PTVS development by creating an account on GitHub.
- 195Jet Admin – No-code Business App builder
https://github.com/jet-admin/jet-bridge
Jet Admin – No-code Business App builder. Contribute to jet-admin/jet-bridge development by creating an account on GitHub.
- 196Home
https://opencv.org/
OpenCV provides a real-time optimized Computer Vision library, tools, and hardware. It also supports model execution for Machine Learning (ML) and Artificial Intelligence (AI).
- 197HARFANG® 3D - Real Time Visualization Tools
http://www.harfang3d.com
Software framework for modern multimedia application development.
- 198Python email address and Mime parsing library
https://github.com/mailgun/flanker
Python email address and Mime parsing library. Contribute to mailgun/flanker development by creating an account on GitHub.
- 199shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included.
https://github.com/linkedin/shiv
shiv is a command line utility for building fully self contained Python zipapps as outlined in PEP 441, but with all their dependencies included. - linkedin/shiv
- 200Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://github.com/ray-project/ray/
Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads. - ray-project/ray
- 201MySQL database connector for Python (with Python 3 support)
https://github.com/PyMySQL/mysqlclient
MySQL database connector for Python (with Python 3 support) - PyMySQL/mysqlclient
- 202Generate generic activity streams from the actions on your site. Users can follow any actors' activities for personalized streams.
https://github.com/justquick/django-activity-stream
Generate generic activity streams from the actions on your site. Users can follow any actors' activities for personalized streams. - justquick/django-activity-stream
- 203A collection of awesome sqlite tools, scripts, books, etc
https://github.com/planetopendata/awesome-sqlite
A collection of awesome sqlite tools, scripts, books, etc - planetopendata/awesome-sqlite
- 204Make your functions return something meaningful, typed, and safe!
https://github.com/dry-python/returns
Make your functions return something meaningful, typed, and safe! - dry-python/returns
- 205Ultra fast JSON decoder and encoder written in C with Python bindings
https://github.com/esnme/ultrajson
Ultra fast JSON decoder and encoder written in C with Python bindings - ultrajson/ultrajson
- 206FastAPI framework, high performance, easy to learn, fast to code, ready for production
https://github.com/tiangolo/fastapi
FastAPI framework, high performance, easy to learn, fast to code, ready for production - fastapi/fastapi
- 207A code-completion engine for Vim
https://github.com/Valloric/YouCompleteMe
A code-completion engine for Vim. Contribute to ycm-core/YouCompleteMe development by creating an account on GitHub.
- 208Build software better, together
https://github.com/python-greenlet/greenlet.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 209A serialization/deserialization/validation library for strings, mappings and lists.
https://github.com/Pylons/colander
A serialization/deserialization/validation library for strings, mappings and lists. - Pylons/colander
- 210pickleDB is an open source key-value store using Python's json module.
https://github.com/patx/pickledb
pickleDB is an open source key-value store using Python's json module. - patx/pickledb
- 211Python library for processing Chinese text
https://github.com/isnowfy/snownlp
Python library for processing Chinese text. Contribute to isnowfy/snownlp development by creating an account on GitHub.
- 212Fast Python Collaborative Filtering for Implicit Feedback Datasets
https://github.com/benfred/implicit
Fast Python Collaborative Filtering for Implicit Feedback Datasets - benfred/implicit
- 213Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.
https://github.com/clips/pattern
Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization. - clips/pattern
- 214pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation
https://github.com/lancopku/pkuseg-python
pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation - lancopku/pkuseg-python
- 215fsociety Hacking Tools Pack – A Penetration Testing Framework
https://github.com/Manisso/fsociety
fsociety Hacking Tools Pack – A Penetration Testing Framework - Manisso/fsociety
- 216The Sphinx documentation generator
https://github.com/sphinx-doc/sphinx/
The Sphinx documentation generator. Contribute to sphinx-doc/sphinx development by creating an account on GitHub.
- 217Simple, Pythonic remote execution and deployment.
https://github.com/fabric/fabric
Simple, Pythonic remote execution and deployment. Contribute to fabric/fabric development by creating an account on GitHub.
- 218Simple framework for creating REST APIs
https://github.com/flask-restful/flask-restful
Simple framework for creating REST APIs. Contribute to flask-restful/flask-restful development by creating an account on GitHub.
- 219Deep Learning for humans
https://github.com/keras-team/keras
Deep Learning for humans. Contribute to keras-team/keras development by creating an account on GitHub.
- 220Redis Python client
https://github.com/redis/redis-py
Redis Python client. Contribute to redis/redis-py development by creating an account on GitHub.
- 221Luigi is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc. It also comes with Hadoop support built in.
https://github.com/spotify/luigi
Luigi is a Python module that helps you build complex pipelines of batch jobs. It handles dependency resolution, workflow management, visualization etc. It also comes with Hadoop support built in. ...
- 222AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://github.com/jindaxiang/akshare
AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库 - akfamily/akshare
- 223A Python wrapper for Google Tesseract
https://github.com/madmaze/pytesseract
A Python wrapper for Google Tesseract. Contribute to madmaze/pytesseract development by creating an account on GitHub.
- 224A pythonic interface to Amazon's DynamoDB
https://github.com/pynamodb/PynamoDB
A pythonic interface to Amazon's DynamoDB. Contribute to pynamodb/PynamoDB development by creating an account on GitHub.
- 225A slick ORM cache with automatic granular event-driven invalidation.
https://github.com/Suor/django-cacheops
A slick ORM cache with automatic granular event-driven invalidation. - Suor/django-cacheops
- 226Home
https://airflow.apache.org/
Platform created by the community to programmatically author, schedule and monitor workflows.
- 227Using the jedi autocompletion library for VIM.
https://github.com/davidhalter/jedi-vim
Using the jedi autocompletion library for VIM. Contribute to davidhalter/jedi-vim development by creating an account on GitHub.
- 228Data validation using Python type hints
https://github.com/pydantic/pydantic
Data validation using Python type hints. Contribute to pydantic/pydantic development by creating an account on GitHub.
- 229A Python implementation of LightFM, a hybrid recommendation algorithm.
https://github.com/lyst/lightfm
A Python implementation of LightFM, a hybrid recommendation algorithm. - lyst/lightfm
- 230bpython - A fancy curses interface to the Python interactive interpreter
https://github.com/bpython/bpython
bpython - A fancy curses interface to the Python interactive interpreter - bpython/bpython
- 231Python Data Structures for Humans™.
https://github.com/schematics/schematics
Python Data Structures for Humans™. Contribute to schematics/schematics development by creating an account on GitHub.
- 232Safely pass trusted data to untrusted environments and back.
https://github.com/pallets/itsdangerous
Safely pass trusted data to untrusted environments and back. - pallets/itsdangerous
- 233PYthon svg GrAph plotting Library
https://github.com/Kozea/pygal
PYthon svg GrAph plotting Library. Contribute to Kozea/pygal development by creating an account on GitHub.
- 234The most widely used Python to C compiler
https://github.com/cython/cython
The most widely used Python to C compiler. Contribute to cython/cython development by creating an account on GitHub.
- 235Parallel computing with task scheduling
https://github.com/dask/dask
Parallel computing with task scheduling. Contribute to dask/dask development by creating an account on GitHub.
- 236Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://github.com/RaylockLLC/DearPyGui/
Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies - hoffstadt/DearPyGui
- 237(No longer maintained) A faster and highly-compatible implementation of the Python programming language.
https://github.com/pyston/pyston/
(No longer maintained) A faster and highly-compatible implementation of the Python programming language. - pyston/pyston
- 238matplotlib: plotting with Python
https://github.com/matplotlib/matplotlib
matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
- 239pyglet is a cross-platform windowing and multimedia library for Python, for developing games and other visually rich applications.
https://github.com/pyglet/pyglet
pyglet is a cross-platform windowing and multimedia library for Python, for developing games and other visually rich applications. - pyglet/pyglet
- 240Vim python-mode. PyLint, Rope, Pydoc, breakpoints from box.
https://github.com/python-mode/python-mode
Vim python-mode. PyLint, Rope, Pydoc, breakpoints from box. - python-mode/python-mode
- 241Stanford NLP Python library for tokenization, sentence segmentation, NER, and parsing of many human languages
https://github.com/stanfordnlp/stanza
Stanford NLP Python library for tokenization, sentence segmentation, NER, and parsing of many human languages - stanfordnlp/stanza
- 242Automatic SQL injection and database takeover tool
https://github.com/sqlmapproject/sqlmap
Automatic SQL injection and database takeover tool - sqlmapproject/sqlmap
- 243PyMongo - the Official MongoDB Python driver
https://github.com/mongodb/mongo-python-driver
PyMongo - the Official MongoDB Python driver. Contribute to mongodb/mongo-python-driver development by creating an account on GitHub.
- 244🏹 Better dates & times for Python
https://github.com/arrow-py/arrow
🏹 Better dates & times for Python. Contribute to arrow-py/arrow development by creating an account on GitHub.
- 245A python wrapper for libmagic
https://github.com/ahupp/python-magic
A python wrapper for libmagic. Contribute to ahupp/python-magic development by creating an account on GitHub.
- 246🍦 Never use print() to debug again.
https://github.com/gruns/icecream
🍦 Never use print() to debug again. Contribute to gruns/icecream development by creating an account on GitHub.
- 247A Python native, OS native GUI toolkit.
https://github.com/pybee/toga
A Python native, OS native GUI toolkit. Contribute to beeware/toga development by creating an account on GitHub.
- 248Every web site provides APIs.
https://github.com/gaojiuli/toapi
Every web site provides APIs. Contribute to elliotgao2/toapi development by creating an account on GitHub.
- 249Python packaging and dependency management made easy
https://github.com/sdispater/poetry
Python packaging and dependency management made easy - python-poetry/poetry
- 250Sixpack is a language-agnostic a/b-testing framework
https://github.com/seatgeek/sixpack
Sixpack is a language-agnostic a/b-testing framework - sixpack/sixpack
- 251Object-oriented file system path manipulation
https://github.com/jaraco/path.py
Object-oriented file system path manipulation. Contribute to jaraco/path development by creating an account on GitHub.
- 252Python PyPi staging server and packaging, testing, release tool
https://github.com/devpi/devpi
Python PyPi staging server and packaging, testing, release tool - devpi/devpi
- 253An implementation of the JSON Schema specification for Python
https://github.com/python-jsonschema/jsonschema
An implementation of the JSON Schema specification for Python - python-jsonschema/jsonschema
- 254Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk
https://github.com/spotify/annoy
Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk - spotify/annoy
- 255Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime.
https://github.com/IronLanguages/ironpython3
Implementation of Python 3.x for .NET Framework that is built on top of the Dynamic Language Runtime. - IronLanguages/ironpython3
- 256zerorpc for python
https://github.com/0rpc/zerorpc-python
zerorpc for python. Contribute to 0rpc/zerorpc-python development by creating an account on GitHub.
- 257Freeze (package) Python programs into stand-alone executables
https://github.com/pyinstaller/pyinstaller
Freeze (package) Python programs into stand-alone executables - pyinstaller/pyinstaller
- 258Inspects Python source files and provides information about type and location of classes, methods etc
https://github.com/PyCQA/prospector
Inspects Python source files and provides information about type and location of classes, methods etc - landscapeio/prospector
- 259A Python implementation of John Gruber’s Markdown with Extension support.
https://github.com/waylan/Python-Markdown
A Python implementation of John Gruber’s Markdown with Extension support. - Python-Markdown/markdown
- 260Scapy: the Python-based interactive packet manipulation program & library.
https://github.com/secdev/scapy
Scapy: the Python-based interactive packet manipulation program & library. - secdev/scapy
- 261NumPy aware dynamic Python compiler using LLVM
https://github.com/numba/numba
NumPy aware dynamic Python compiler using LLVM. Contribute to numba/numba development by creating an account on GitHub.
- 262Full-screen console debugger for Python
https://github.com/inducer/pudb
Full-screen console debugger for Python. Contribute to inducer/pudb development by creating an account on GitHub.
- 263The Social-Engineer Toolkit (SET) repository from TrustedSec - All new versions of SET will be deployed here.
https://github.com/trustedsec/social-engineer-toolkit
The Social-Engineer Toolkit (SET) repository from TrustedSec - All new versions of SET will be deployed here. - trustedsec/social-engineer-toolkit
- 264Build software better, together
https://github.com/jonathanslenders/python-prompt-toolkit.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 265Create standalone Windows programs from Python code
https://github.com/py2exe/py2exe
Create standalone Windows programs from Python code - py2exe/py2exe
- 266Magenta: Music and Art Generation with Machine Intelligence
https://github.com/magenta/magenta
Magenta: Music and Art Generation with Machine Intelligence - magenta/magenta
- 267Validated, scalable, community developed variant calling, RNA-seq and small RNA analysis
https://github.com/chapmanb/bcbio-nextgen
Validated, scalable, community developed variant calling, RNA-seq and small RNA analysis - bcbio/bcbio-nextgen
- 268No longer maintained, please migrate to model_bakery
https://github.com/vandersonmota/model_mommy
No longer maintained, please migrate to model_bakery - berinhard/model_mommy
- 269Topic Modelling for Humans
https://github.com/RaRe-Technologies/gensim
Topic Modelling for Humans. Contribute to piskvorky/gensim development by creating an account on GitHub.
- 270xlwings is a Python library that makes it easy to call Python from Excel and vice versa. It works with Excel on Windows and macOS as well as with Google Sheets and Excel on the web.
https://github.com/ZoomerAnalytics/xlwings
xlwings is a Python library that makes it easy to call Python from Excel and vice versa. It works with Excel on Windows and macOS as well as with Google Sheets and Excel on the web. - GitHub - xlw...
- 271Build software better, together
https://github.com/mre/awesome-static-analysis.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 272A formatter for Python files
https://github.com/google/yapf
A formatter for Python files. Contribute to google/yapf development by creating an account on GitHub.
- 273Simple, elegant, Pythonic functional programming.
https://github.com/evhub/coconut
Simple, elegant, Pythonic functional programming. Contribute to evhub/coconut development by creating an account on GitHub.
- 274The POX network software platform
https://github.com/noxrepo/pox
The POX network software platform. Contribute to noxrepo/pox development by creating an account on GitHub.
- 275Write desktop and web apps in pure Python
https://github.com/zoofIO/flexx
Write desktop and web apps in pure Python. Contribute to flexxui/flexx development by creating an account on GitHub.
- 276py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts.
https://github.com/ronaldoussoren/py2app
py2app is a Python setuptools command which will allow you to make standalone Mac OS X application bundles and plugins from Python scripts. - ronaldoussoren/py2app
- 277Rich Python data types for Redis
https://github.com/stephenmcd/hot-redis
Rich Python data types for Redis. Contribute to stephenmcd/hot-redis development by creating an account on GitHub.
- 278A lightweight, object-oriented finite state machine implementation in Python with many extensions
https://github.com/pytransitions/transitions
A lightweight, object-oriented finite state machine implementation in Python with many extensions - pytransitions/transitions
- 279A Python Mail Server
https://github.com/moggers87/salmon
A Python Mail Server. Contribute to moggers87/salmon development by creating an account on GitHub.
- 280Python client for Apache Kafka
https://github.com/dpkp/kafka-python
Python client for Apache Kafka. Contribute to dpkp/kafka-python development by creating an account on GitHub.
- 281A powerful workflow engine implemented in pure Python
https://github.com/knipknap/SpiffWorkflow
A powerful workflow engine implemented in pure Python - sartography/SpiffWorkflow
- 282Supercharge your API testing, catch bugs, and ensure compliance
https://github.com/kiwicom/schemathesis
Supercharge your API testing, catch bugs, and ensure compliance - schemathesis/schemathesis
- 283The Web framework for perfectionists with deadlines.
https://github.com/django/django
The Web framework for perfectionists with deadlines. - django/django
- 284:zap: A Fast, Extensible Progress Bar for Python and CLI
https://github.com/tqdm/tqdm
:zap: A Fast, Extensible Progress Bar for Python and CLI - tqdm/tqdm
- 285Python job scheduling for humans.
https://github.com/dbader/schedule
Python job scheduling for humans. Contribute to dbader/schedule development by creating an account on GitHub.
- 286Visual profiler for Python
https://github.com/nvdv/vprof
Visual profiler for Python. Contribute to nvdv/vprof development by creating an account on GitHub.
- 287An async ORM. 🗃
https://github.com/encode/orm
An async ORM. 🗃. Contribute to encode/orm development by creating an account on GitHub.
- 288Mail hosting made simple
https://github.com/modoboa/modoboa
Mail hosting made simple. Contribute to modoboa/modoboa development by creating an account on GitHub.
- 289A system-level, binary package and environment manager running on all major operating systems and platforms.
https://github.com/conda/conda/
A system-level, binary package and environment manager running on all major operating systems and platforms. - conda/conda
- 290Python library for reading audio file metadata
https://github.com/devsnd/tinytag
Python library for reading audio file metadata. Contribute to tinytag/tinytag development by creating an account on GitHub.
- 291Automatically generate a RESTful API service for your legacy database. No code required!
https://github.com/jeffknupp/sandman2
Automatically generate a RESTful API service for your legacy database. No code required! - jeffknupp/sandman2
- 292A Python scikit for building and analyzing recommender systems
https://github.com/NicolasHug/Surprise
A Python scikit for building and analyzing recommender systems - NicolasHug/Surprise
- 293ICU - International Components for Unicode
http://site.icu-project.org/.
News 2024-04-17: ICU 75 is now available. It updates to CLDR 45 (beta blog) locale data with new locales and various additions and corrections. C++ code now requires C++17 and is being made more robust. The CLDR MessageFormat 2.0 specification is now in technology preview, together with a
- 294A computer algebra system written in pure Python
https://github.com/sympy/sympy
A computer algebra system written in pure Python. Contribute to sympy/sympy development by creating an account on GitHub.
- 295WordPress models and views for Django.
https://github.com/istrategylabs/django-wordpress
WordPress models and views for Django. Contribute to jcarbaugh/django-wordpress development by creating an account on GitHub.
- 296Simple and extensible administrative interface framework for Flask
https://github.com/flask-admin/flask-admin
Simple and extensible administrative interface framework for Flask - pallets-eco/flask-admin
- 297Virtual Python Environment builder
https://github.com/pypa/virtualenv
Virtual Python Environment builder. Contribute to pypa/virtualenv development by creating an account on GitHub.
- 298The Python micro framework for building web applications.
https://github.com/pallets/flask
The Python micro framework for building web applications. - pallets/flask
- 299API Documentation for Python Projects
https://github.com/mitmproxy/pdoc
API Documentation for Python Projects. Contribute to mitmproxy/pdoc development by creating an account on GitHub.
- 300Python IMAP for Human beings
https://github.com/martinrusev/imbox
Python IMAP for Human beings. Contribute to martinrusev/imbox development by creating an account on GitHub.
- 301Supervisor process control system for Unix (supervisord)
https://github.com/Supervisor/supervisor
Supervisor process control system for Unix (supervisord) - Supervisor/supervisor
- 302ClickHouse Python Driver with native interface support
https://github.com/mymarilyn/clickhouse-driver
ClickHouse Python Driver with native interface support - mymarilyn/clickhouse-driver
- 303Pony Object Relational Mapper
https://github.com/ponyorm/pony/
Pony Object Relational Mapper. Contribute to ponyorm/pony development by creating an account on GitHub.
- 304x86-64 assembler embedded in Python
https://github.com/Maratyszcza/PeachPy
x86-64 assembler embedded in Python. Contribute to Maratyszcza/PeachPy development by creating an account on GitHub.
- 305Incubator for useful bioinformatics code, primarily in Python and R
https://github.com/chapmanb/bcbb
Incubator for useful bioinformatics code, primarily in Python and R - chapmanb/bcbb
- 306A curated list of awesome tools for SQLAlchemy
https://github.com/dahlia/awesome-sqlalchemy
A curated list of awesome tools for SQLAlchemy. Contribute to dahlia/awesome-sqlalchemy development by creating an account on GitHub.
- 307TinyDB is a lightweight document oriented database optimized for your happiness :)
https://github.com/msiemens/tinydb
TinyDB is a lightweight document oriented database optimized for your happiness :) - msiemens/tinydb
- 308Apache Spark - A unified analytics engine for large-scale data processing
https://github.com/apache/spark
Apache Spark - A unified analytics engine for large-scale data processing - apache/spark
- 309Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.
https://github.com/tornadoweb/tornado
Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. - tornadoweb/tornado
- 310Library for building WebSocket servers and clients in Python
https://github.com/aaugustin/websockets
Library for building WebSocket servers and clients in Python - python-websockets/websockets
- 311Cython implementation of Toolz: High performance functional utilities
https://github.com/pytoolz/cytoolz/
Cython implementation of Toolz: High performance functional utilities - pytoolz/cytoolz
- 312A developer-friendly Python library to interact with Apache HBase
https://github.com/python-happybase/happybase
A developer-friendly Python library to interact with Apache HBase - python-happybase/happybase
- 313Per object permissions for Django
https://github.com/django-guardian/django-guardian
Per object permissions for Django. Contribute to django-guardian/django-guardian development by creating an account on GitHub.
- 314Parsing ELF and DWARF in Python
https://github.com/eliben/pyelftools
Parsing ELF and DWARF in Python. Contribute to eliben/pyelftools development by creating an account on GitHub.
- 315A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
https://github.com/dashingsoft/pyarmor
A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts. - dashingsoft/pyarmor
- 316Python QR Code image generator
https://github.com/lincolnloop/python-qrcode
Python QR Code image generator. Contribute to lincolnloop/python-qrcode development by creating an account on GitHub.
- 317A pure Python Database Abstraction Layer
https://github.com/web2py/pydal/
A pure Python Database Abstraction Layer. Contribute to web2py/pydal development by creating an account on GitHub.
- 318Use a docx as a jinja2 template
https://github.com/elapouya/python-docx-template
Use a docx as a jinja2 template. Contribute to elapouya/python-docx-template development by creating an account on GitHub.
- 319A Library for Field-aware Factorization Machines
https://github.com/guestwalk/libffm
A Library for Field-aware Factorization Machines. Contribute to ycjuan/libffm development by creating an account on GitHub.
- 320A better Python REPL
https://github.com/jonathanslenders/ptpython
A better Python REPL. Contribute to prompt-toolkit/ptpython development by creating an account on GitHub.
- 321A fancy and practical functional tools
https://github.com/Suor/funcy
A fancy and practical functional tools. Contribute to Suor/funcy development by creating an account on GitHub.
- 322Subprocesses for Humans 2.0.
https://github.com/amitt001/delegator.py
Subprocesses for Humans 2.0. Contribute to amitt001/delegator.py development by creating an account on GitHub.
- 323Emacs Python Development Environment
https://github.com/jorgenschaefer/elpy
Emacs Python Development Environment. Contribute to jorgenschaefer/elpy development by creating an account on GitHub.
- 324Build software better, together
https://github.com/tayllan/awesome-algorithms.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 325Computer art based on quadtrees.
https://github.com/fogleman/Quads
Computer art based on quadtrees. Contribute to fogleman/Quads development by creating an account on GitHub.
- 326A toolbar overlay for debugging Flask applications
https://github.com/pallets-eco/flask-debugtoolbar
A toolbar overlay for debugging Flask applications - pallets-eco/flask-debugtoolbar
- 327Karate Club: An API Oriented Open-source Python Framework for Unsupervised Learning on Graphs (CIKM 2020)
https://github.com/benedekrozemberczki/karateclub
Karate Club: An API Oriented Open-source Python Framework for Unsupervised Learning on Graphs (CIKM 2020) - benedekrozemberczki/karateclub
- 328More routines for operating on iterables, beyond itertools
https://github.com/erikrose/more-itertools
More routines for operating on iterables, beyond itertools - more-itertools/more-itertools
- 329Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, WxPython, and Remi into a simple, intuitive, and fun experience for both hobbyists and expert users.
https://github.com/PySimpleGUI/PySimpleGUI
Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, ...
- 330Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://github.com/PrefectHQ/prefect
Prefect is a workflow orchestration framework for building resilient data pipelines in Python. - PrefectHQ/prefect
- 331RPyC (Remote Python Call) - A transparent and symmetric RPC library for python
https://github.com/tomerfiliba/rpyc
RPyC (Remote Python Call) - A transparent and symmetric RPC library for python - tomerfiliba-org/rpyc
- 332A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files
https://github.com/mstamy2/PyPDF2
A pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files - py-pdf/pypdf
- 333Models | Django documentation
https://docs.djangoproject.com/en/dev/topics/db/models/
The web framework for perfectionists with deadlines.
- 334Build Web Services with Pyramid.
https://github.com/Cornices/cornice
Build Web Services with Pyramid. Contribute to Cornices/cornice development by creating an account on GitHub.
- 335Deduplicating archiver with compression and authenticated encryption.
https://github.com/borgbackup/borg
Deduplicating archiver with compression and authenticated encryption. - borgbackup/borg
- 336Theano was a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It is being continued as PyTensor: www.github.com/pymc-devs/pytensor
https://github.com/Theano/Theano
Theano was a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently. It is being continued as PyTensor: www.github....
- 337An implementation of Python in Common Lisp
https://github.com/metawilm/cl-python
An implementation of Python in Common Lisp. Contribute to metawilm/cl-python development by creating an account on GitHub.
- 338lightweight python wrapper for vowpal wabbit
https://github.com/josephreisinger/vowpal_porpoise
lightweight python wrapper for vowpal wabbit. Contribute to josephreisinger/vowpal_porpoise development by creating an account on GitHub.
- 339Integration of IPython pdb
https://github.com/gotcha/ipdb
Integration of IPython pdb. Contribute to gotcha/ipdb development by creating an account on GitHub.
- 340Main repository for Vispy
https://github.com/vispy/vispy
Main repository for Vispy. Contribute to vispy/vispy development by creating an account on GitHub.
- 341Python datetimes made easy
https://github.com/sdispater/pendulum
Python datetimes made easy. Contribute to sdispater/pendulum development by creating an account on GitHub.
- 342Web APIs for Django. 🎸
https://github.com/encode/django-rest-framework
Web APIs for Django. 🎸. Contribute to encode/django-rest-framework development by creating an account on GitHub.
- 343local pypi server (custom packages and auto-mirroring of pypi)
https://github.com/jazzband/localshop
local pypi server (custom packages and auto-mirroring of pypi) - mvantellingen/localshop
- 344The Python Package Index
https://github.com/pypa/warehouse
The Python Package Index. Contribute to pypi/warehouse development by creating an account on GitHub.
- 345A functional standard library for Python.
https://github.com/pytoolz/toolz
A functional standard library for Python. Contribute to pytoolz/toolz development by creating an account on GitHub.
- 346A toolkit for developing and comparing reinforcement learning algorithms.
https://github.com/openai/gym
A toolkit for developing and comparing reinforcement learning algorithms. - openai/gym
- 347Cartopy - a cartographic python library with matplotlib support
https://github.com/SciTools/cartopy
Cartopy - a cartographic python library with matplotlib support - SciTools/cartopy
- 348a python refactoring library
https://github.com/python-rope/rope
a python refactoring library. Contribute to python-rope/rope development by creating an account on GitHub.
- 349Python process launching
https://github.com/amoffat/sh
Python process launching. Contribute to amoffat/sh development by creating an account on GitHub.
- 350Statistical data visualization in Python
https://github.com/mwaskom/seaborn
Statistical data visualization in Python. Contribute to mwaskom/seaborn development by creating an account on GitHub.
- 351Fast data visualization and GUI tools for scientific / engineering applications
https://github.com/pyqtgraph/pyqtgraph
Fast data visualization and GUI tools for scientific / engineering applications - pyqtgraph/pyqtgraph
- 352Create Open XML PowerPoint documents in Python
https://github.com/scanny/python-pptx
Create Open XML PowerPoint documents in Python. Contribute to scanny/python-pptx development by creating an account on GitHub.
- 353Declarative User Interfaces for Python
https://github.com/nucleic/enaml
Declarative User Interfaces for Python. Contribute to nucleic/enaml development by creating an account on GitHub.
- 354Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
https://github.com/numenta/nupic
Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex. - numenta/nupic-...
- 355A Python utility / library to sort imports.
https://github.com/timothycrosley/isort
A Python utility / library to sort imports. Contribute to PyCQA/isort development by creating an account on GitHub.
- 356Run Python in Apache Storm topologies. Pythonic API, CLI tooling, and a topology DSL.
https://github.com/Parsely/streamparse
Run Python in Apache Storm topologies. Pythonic API, CLI tooling, and a topology DSL. - pystorm/streamparse
- 357Declarative statistical visualization library for Python
https://github.com/altair-viz/altair
Declarative statistical visualization library for Python - vega/altair
- 358Crontab jobs management in Python
https://github.com/fengsp/plan
Crontab jobs management in Python. Contribute to fengsp/plan development by creating an account on GitHub.
- 359A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny.
https://github.com/thauber/django-schedule
A calendaring app for Django. It is now stable, Please feel free to use it now. Active development has been taken over by bartekgorny. - thauber/django-schedule
- 360A Python Object-Document-Mapper for working with MongoDB
https://github.com/MongoEngine/mongoengine
A Python Object-Document-Mapper for working with MongoDB - MongoEngine/mongoengine
- 361Build software better, together
https://github.com/timofurrer/awesome-asyncio.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 362New generation PostgreSQL database adapter for the Python programming language
https://github.com/psycopg/psycopg
New generation PostgreSQL database adapter for the Python programming language - GitHub - psycopg/psycopg: New generation PostgreSQL database adapter for the Python programming language
- 363Build software better, together
https://github.com/realpython/list-of-python-api-wrappers.
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
- 364Python Imaging Library (Fork)
https://github.com/python-pillow/Pillow
Python Imaging Library (Fork). Contribute to python-pillow/Pillow development by creating an account on GitHub.
- 365Stream Framework is a Python library, which allows you to build news feed, activity streams and notification systems using Cassandra and/or Redis. The authors of Stream-Framework also provide a cloud service for feed technology:
https://github.com/tschellenbach/Stream-Framework
Stream Framework is a Python library, which allows you to build news feed, activity streams and notification systems using Cassandra and/or Redis. The authors of Stream-Framework also provide a clo...
- 366thumbor is an open-source photo thumbnail service by globo.com
https://github.com/thumbor/thumbor
thumbor is an open-source photo thumbnail service by globo.com - thumbor/thumbor
- 367REST API framework designed for human beings
https://github.com/pyeve/eve
REST API framework designed for human beings. Contribute to pyeve/eve development by creating an account on GitHub.
- 368Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
https://github.com/dmlc/xgboost
Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow - dmlc/x...
- 369Official upstream for the cloud-init: cloud instance initialization
https://github.com/canonical/cloud-init
Official upstream for the cloud-init: cloud instance initialization - canonical/cloud-init
- 370create custom test databases that are populated with fake data
https://github.com/emirozer/fake2db
create custom test databases that are populated with fake data - emirozer/fake2db
- 371Fixes mojibake and other glitches in Unicode text, after the fact.
https://github.com/LuminosoInsight/python-ftfy
Fixes mojibake and other glitches in Unicode text, after the fact. - rspeer/python-ftfy
- 372Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.
https://github.com/JohnLangford/vowpal_wabbit/.
Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive lea...
- 373Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://github.com/saltstack/salt
Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here: - GitHub - saltstack/salt: Software to...
- 374Plotting library for IPython/Jupyter notebooks
https://github.com/bloomberg/bqplot
Plotting library for IPython/Jupyter notebooks. Contribute to bqplot/bqplot development by creating an account on GitHub.
- 375Python interface to Graphviz graph drawing package
https://github.com/pygraphviz/pygraphviz/
Python interface to Graphviz graph drawing package - pygraphviz/pygraphviz
- 376🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library. Nothing like Michael Bolton.
https://github.com/mahmoud/boltons
🔩 Like builtins, but boltons. 250+ constructs, recipes, and snippets which extend (and rely on nothing but) the Python standard library. Nothing like Michael Bolton. - mahmoud/boltons
- 377Selenium
http://www.seleniumhq.org/
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should) also be automated as well. Getting Started Selenium WebDriver Selenium WebDriver If you want to create robust, browser-based regression automation suites and tests, scale and distribute scripts across many environments, then you want to use Selenium WebDriver, a collection of language specific bindings to drive a browser - the way it is meant to be driven.
- 378Machine learning evaluation metrics, implemented in Python, R, Haskell, and MATLAB / Octave
https://github.com/benhamner/Metrics
Machine learning evaluation metrics, implemented in Python, R, Haskell, and MATLAB / Octave - benhamner/Metrics
- 379DataStax Python Driver for Apache Cassandra
https://github.com/datastax/python-driver
DataStax Python Driver for Apache Cassandra. Contribute to datastax/python-driver development by creating an account on GitHub.
- 380A configurable set of panels that display various debug information about the current request/response.
https://github.com/jazzband/django-debug-toolbar
A configurable set of panels that display various debug information about the current request/response. - jazzband/django-debug-toolbar
- 381Creating delicious APIs for Django apps since 2010.
https://github.com/django-tastypie/django-tastypie
Creating delicious APIs for Django apps since 2010. - django-tastypie/django-tastypie
- 382A Grammar of Graphics for Python
https://github.com/has2k1/plotnine
A Grammar of Graphics for Python. Contribute to has2k1/plotnine development by creating an account on GitHub.
- 383The platform for building AI from enterprise data
https://github.com/mindsdb/mindsdb
The platform for building AI from enterprise data. Contribute to mindsdb/mindsdb development by creating an account on GitHub.
- 384A curated list of awesome Jupyter projects, libraries and resources
https://github.com/markusschanta/awesome-jupyter
A curated list of awesome Jupyter projects, libraries and resources - markusschanta/awesome-jupyter
- 385Useful extensions to the standard Python datetime features
https://github.com/dateutil/dateutil
Useful extensions to the standard Python datetime features - dateutil/dateutil
- 386Debugging manhole for python applications.
https://github.com/ionelmc/python-manhole
Debugging manhole for python applications. Contribute to ionelmc/python-manhole development by creating an account on GitHub.
- 387The comprehensive WSGI web application library.
https://github.com/pallets/werkzeug
The comprehensive WSGI web application library. Contribute to pallets/werkzeug development by creating an account on GitHub.
- 388A little Python library for making simple Electron-like HTML/JS GUI apps
https://github.com/ChrisKnott/Eel
A little Python library for making simple Electron-like HTML/JS GUI apps - python-eel/Eel
- 389Python flexible slugify function
https://github.com/dimka665/awesome-slugify
Python flexible slugify function. Contribute to voronind/awesome-slugify development by creating an account on GitHub.
- 390Bayesian Modeling and Probabilistic Programming in Python
https://github.com/pymc-devs/pymc3
Bayesian Modeling and Probabilistic Programming in Python - pymc-devs/pymc
- 391A set of tools to keep your pinned Python dependencies fresh.
https://github.com/jazzband/pip-tools
A set of tools to keep your pinned Python dependencies fresh. - jazzband/pip-tools
- 392Browsable web APIs for Flask.
https://github.com/flask-api/flask-api
Browsable web APIs for Flask. Contribute to flask-api/flask-api development by creating an account on GitHub.
- 393The official Python SDK for Sentry.io
https://github.com/getsentry/sentry-python
The official Python SDK for Sentry.io. Contribute to getsentry/sentry-python development by creating an account on GitHub.
- 394Remote task execution tool
https://github.com/gunnery/gunnery
Remote task execution tool. Contribute to gunnery/gunnery development by creating an account on GitHub.
- 395Statsmodels: statistical modeling and econometrics in Python
https://github.com/statsmodels/statsmodels
Statsmodels: statistical modeling and econometrics in Python - statsmodels/statsmodels
- 396pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://github.com/pyinfra-dev/pyinfra
pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast ...
- 397Interactive Data Visualization in the browser, from Python
https://github.com/bokeh/bokeh
Interactive Data Visualization in the browser, from Python - bokeh/bokeh
- 398Send email in Python conveniently for gmail using yagmail
https://github.com/kootenpv/yagmail
Send email in Python conveniently for gmail using yagmail - kootenpv/yagmail
- 399A fast Python in-process signal/event dispatching system.
https://github.com/jek/blinker
A fast Python in-process signal/event dispatching system. - pallets-eco/blinker
- 400🐍 The official Python client library for Google's discovery based APIs.
https://github.com/google/google-api-python-client
🐍 The official Python client library for Google's discovery based APIs. - googleapis/google-api-python-client
- 401📐 Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage.
https://github.com/orsinium/textdistance
📐 Compute distance between sequences. 30+ algorithms, pure python implementation, common interface, optional external libs usage. - life4/textdistance
FAQ'sto know more about the topic.
mail [email protected] to add your project or resources here 🔥.
- 1What is Python programming used for?
- 2How can I start learning Python?
- 3What are Python's main features?
- 4What are the best libraries for Python programming?
- 5How is Python different from other programming languages?
- 6What are common mistakes beginners make in Python?
- 7What is Python's role in data science?
- 8How does Python handle memory management?
- 9What are Python decorators and how are they used?
- 10What is the difference between a list and a tuple in Python?
- 11How do I handle exceptions in Python?
- 12What are Python's data types?
- 13What is the use of 'self' in Python?
- 14How can I optimize Python code for performance?
- 15What are Python modules and how do I use them?
- 16What is the significance of the Python 'if __name__ == '__main__'?'
- 17What is Python's role in web development?
- 18Why does my Python code keep throwing indentation errors?
- 19How can I fix TypeError in Python?
- 20What should I do if my Python script is running slowly?
- 21Why is my Python function returning None?
- 22How do I resolve 'ModuleNotFoundError' in Python?
- 23What does 'IndexError' mean and how can I fix it?
- 24Why does my Python program freeze or hang?
- 25How can I troubleshoot unexpected output in my Python program?
- 26How do I resolve 'AttributeError' in Python?
- 27Why am I getting a 'KeyError' when accessing a dictionary?
- 28How can I resolve issues with Python's 'open' function?
- 29Why is my Python program crashing with 'MemoryError'?
- 30How can I fix 'ValueError' in Python?
- 31What should I do if my Python code is throwing 'ImportError'?
- 32Why does my Python script fail with 'RecursionError'?
- 33How can I handle 'StopIteration' exceptions in Python?
- 34Why is my Python program throwing a 'FileNotFoundError'?
- 35How do I fix a 'ConnectionError' in Python?
- 36What causes 'SyntaxError' and how can I fix it?
- 37How can I manage dependencies in Python effectively?
- 38Why does my Python code raise 'OverflowError'?
- 39How do I handle exceptions in Python effectively?
- 40What are common issues when working with Python lists?
- 41How can I optimize my Python code for performance?
- 42Why does my Python script not return the expected results?
- 43How do I fix 'IndentationError' in Python?
- 44Why does my Python code throw a 'TypeError'?
- 45How can I deal with 'TimeoutError' in Python?
- 46Why is my Python program slow, and how can I speed it up?
- 47How can I resolve 'ValueError' in NumPy?
- 48What causes 'IndexError' in Python and how do I fix it?
- 49How do I fix 'ModuleNotFoundError' in Python?
- 50What should I do if my Python code runs slowly with large datasets?
- 51How can I prevent circular imports in Python?
- 52How do I resolve 'AttributeError' in Python?
- 53Why is my Python list not updating as expected?
- 54How can I deal with 'KeyError' when accessing dictionary elements?
- 55What causes 'TypeError' when using list comprehensions in Python?
- 56How can I avoid memory issues in Python?
- 57Why is my Python script encountering 'RecursionError'?
- 58How do I handle UnicodeEncodeError in Python?
- 59What are best practices for writing Python functions?
- 60How can I handle exceptions effectively in Python?
- 61Why is my Python code not producing any output?
- 62How do I manage dependencies in my Python project?
- 63How can I fix issues with Python's garbage collection?
- 64What are common causes of 'OSError' in Python?
- 65How do I use Python's logging module effectively?
- 66Why is my Python script using too much memory?
- 67How can I implement unit testing in Python?
- 68What are Python decorators, and how do I use them?
- 69How do I handle file operations safely in Python?
- 70Why is my Python script running slowly?
- 71How do I fix a 'ModuleNotFoundError' in Python?
- 72What should I do if I get 'IndexError' in Python?
- 73How do I fix 'NameError' in Python?
- 74What causes 'ValueError' in Python, and how can I fix it?
- 75How do I avoid 'TypeError' when using built-in functions?
- 76What should I do if I encounter 'FileNotFoundError'?
- 77How can I prevent 'KeyError' in Python dictionaries?
- 78What are common causes of 'AttributeError' in Python?
- 79How do I debug memory leaks in my Python application?
- 80How can I optimize database queries in Python?
- 81How do I handle multithreading issues in Python?
- 82How can I improve the performance of my Python application?
- 83What are the best practices for handling API responses in Python?
- 84How can I ensure my Python code is thread-safe?
- 85What are the common pitfalls when using Python's decorators?
- 86How do I manage configuration settings in a Python application?
- 87What are the strategies for testing asynchronous code in Python?
- 88How do I handle circular imports in Python?
- 89How can I improve my Python code's readability and maintainability?
- 90What are the best practices for using Python's logging module?
- 91How do I handle versioning in my Python packages?
- 92How can I ensure my Python application is secure?
- 93What are the challenges of working with Python's GIL in multi-threading?
- 94How do I implement custom exception handling in Python?
- 95What are the differences between `__str__` and `__repr__` methods in Python?
- 96How do I manage dependencies in a Python project?
- 97How do I manage large datasets in Python efficiently?
- 98What are some common performance bottlenecks in Python applications?
- 99How do I implement pagination in a Python web application?
- 100What strategies can I use to handle time zones in Python?
- 101How do I implement caching in Python applications?
- 102What are the key differences between Python 2 and Python 3?
- 103How can I use context managers in Python effectively?
- 104What is the best way to test Python code?
- 105How do I handle exceptions in asynchronous code?
- 106What is the purpose of `__init__.py` in Python packages?
- 107How do I profile Python code for performance optimization?
- 108What are the advantages of using Python decorators?
- 109How do I create and use custom iterators in Python?
- 110What are Python generators and how do they differ from regular functions?
- 111How do I implement a RESTful API using Flask?
- 112What are the benefits of using type hints in Python?
- 113How do I integrate third-party libraries into my Python project?
- 114What is the difference between deep copy and shallow copy in Python?
- 115How do I implement logging in my Python application?
- 116How can I secure my Python web application?
- 117What are Python's built-in data structures and when should I use them?
- 118How do I use the `asyncio` library in Python?
- 119How can I improve the readability of my Python code?
- 120What is the Global Interpreter Lock (GIL) and how does it affect multithreading?
- 121How do I handle exceptions in Python effectively?
- 122What are the differences between `list` and `tuple` in Python?
- 123How can I optimize the performance of my Python code?
- 124How do I create and use a virtual environment in Python?
- 125What is the purpose of `__str__` and `__repr__` in Python classes?
- 126What is list comprehension in Python and how does it work?
- 127How do I read and write files in Python?
- 128What is the purpose of `self` in Python class methods?
- 129How do I debug my Python code?
- 130What are decorators in Python and how do I use them?
- 131How do I manage dependencies in my Python project?
- 132What is the difference between `staticmethod` and `classmethod` in Python?
- 133How do I work with JSON data in Python?
- 134What are Python's built-in data types?
- 135How do I install third-party packages in Python?
- 136What is the difference between `==` and `is` in Python?
- 137How do I implement inheritance in Python?
- 138What are Python decorators and how do they work?
- 139What is a lambda function in Python?
- 140What is the purpose of the `__init__` method in Python classes?
- 141How do I use the `map` function in Python?
- 142What is the purpose of `with` statement in Python?
- 143How do I sort a list in Python?
- 144How can I handle exceptions in Python?
- 145What is a list comprehension in Python?
- 146How do I use the `filter` function in Python?
- 147How do I create a virtual environment in Python?
- 148How do I merge two dictionaries in Python?
- 149What is full stack development in Python?
- 150Which Python frameworks are best for full stack development?
- 151How does Python handle front-end and back-end development?
- 152Is Python suitable for building scalable applications?
- 153What is the role of RESTful APIs in Python full stack development?
- 154What databases are commonly used with Python full stack applications?
- 155What are the advantages of using Django for full stack development?
- 156How can I deploy a Python full stack application?
- 157What front-end technologies should I learn for Python full stack development?
- 158What is the difference between Django and Flask?
- 159How does Python's asynchronous programming benefit full stack development?
- 160What tools can help with testing Python full stack applications?
- 161What are the best practices for securing a Python web application?
- 162How can version control benefit Python full stack development?
- 163What should I include in my portfolio as a Python full stack developer?
- 164What is the significance of responsive design in full stack development?
- 165What is the importance of middleware in Django?
- 166How does Flask manage routing?
- 167What is the purpose of a virtual environment in Python development?
- 168What are some common challenges in full stack development?
- 169How can I optimize the performance of a Python web application?
- 170What role does HTML play in full stack development?
- 171What is the significance of a RESTful architecture in web applications?
- 172How can I learn full stack development with Python?
- 173What is the difference between SQL and NoSQL databases?
- 174How can I deploy a Python web application?
- 175What is the role of APIs in full stack development?
- 176What is the purpose of using Docker in full stack development?
- 177What skills are essential for a Python full stack developer?
- 178What are the advantages of using Django for web development?
- 179What is Flask’s main advantage over Django?
- 180How can I manage dependencies in a Python project?
- 181What is the role of a template engine in Python web frameworks?
- 182What is the importance of using version control in projects?
- 183What are migrations in Django, and why are they important?
- 184How does Django's ORM simplify database interactions?
- 185What are the benefits of using REST APIs in web applications?
- 186What is the purpose of using asynchronous programming in Python web development?
- 187What is the significance of user authentication in web applications?
- 188How does caching improve web application performance?
- 189What are some best practices for securing a Python web application?
- 190What is the difference between server-side and client-side rendering?
- 191How can I improve the security of APIs in my Python application?
- 192What are the differences between synchronous and asynchronous programming in Python?
- 193What is the role of middleware in Django?
- 194How do you handle static files in a Django application?
- 195What is the significance of using virtual environments in Python?
- 196How can I implement user authorization in a Python web application?
- 197What are some common performance optimization techniques in Python web applications?
- 198What is the purpose of using a task queue in a Python web application?
- 199How can I ensure my Python application is scalable?
- 200What is the importance of testing in Python web development?
- 201How do I deploy a Python web application?
- 202What are the best practices for API design in Python?
- 203How do you implement logging in a Python web application?
- 204What are some key considerations for designing a database schema?
- 205How can I implement pagination in a Django application?
- 206What are the best practices for error handling in Python web applications?
- 207What is the difference between Django and Flask?
- 208How do I manage database migrations in Django?
- 209What is the significance of RESTful API design?
- 210How do you secure a Django application?
- 211What are the benefits of using Django's ORM?
- 212What are signals in Django?
- 213How can I test a Django application?
- 214What are the common HTTP status codes used in web development?
- 215How do I use virtual environments in Python?
- 216What is the role of middleware in Django?
- 217How can I optimize the performance of a Django application?
- 218What is Django's admin interface, and how can it be customized?
- 219What are some common security vulnerabilities in web applications?
- 220How can I improve the user experience in a web application?
- 221What is the role of a full stack developer?
- 222How can I learn full stack development with Python?
- 223What databases are commonly used with Python web applications?
- 224What are some essential libraries for Python web development?
- 225What is the difference between front-end and back-end development?
- 226What tools can be used for front-end development in Python?
- 227What is the purpose of using a front-end framework?
- 228What are some best practices for coding in Python?
- 229How do you handle errors in a Django application?
- 230What is the importance of API documentation?
- 231What are environment variables and why are they used?
- 232What is version control and why is it important?
- 233How can I deploy a Django application?
- 234What are the advantages of using Python for web development?
- 235What is RESTful API, and how is it used in Python?
- 236What is Django REST Framework?
- 237How do I create a virtual environment for a Python project?
- 238What is a frontend-backend separation?
- 239What is the role of a web server in Python applications?
- 240What is CI/CD in web development?
- 241What is a Python package, and how do I create one?
- 242What are asynchronous tasks in Python?
- 243What are the differences between SQL and NoSQL databases?
- 244What are web sockets, and when should I use them?
- 245How do I secure a Python web application?
- 246What is the significance of testing in web development?
- 247What makes Python a great choice for beginners?
- 248Why is Python favored in data science?
- 249What are Python's key features that enhance productivity?
- 250How does Python support multiple programming paradigms?
- 251Why is Python popular for web development?
- 252What role does Python play in automation?
- 253How does Python support scientific computing?
- 254Why is Python popular for machine learning?
- 255What industries benefit from using Python?
Queriesor most google FAQ's about Python.
mail [email protected] to add more queries here 🔍.
- 1
how does python programming work
- 2
which app is best for python programming
- 3
what python programming can do
- 4
when was python programming language created
- 5
how long will it take to learn python programming
- 6
how to learn python programming for free
- 7
what can we do with python programming language
- 8
is python programming useful
- 9
why python programming is used
- 10
what are python programming language
- 11
what python programming language
- 12
why python programming is awesome
- 13
how to do python programming in mobile
- 14
why python programming language
- 15
which type of programming does python support
- 16
is python programming hard
- 17
is python coding free
- 18
where is python coding used
- 19
what does python programming look like
- 20
what are some limitations of python programming language
- 21
how to do python programming in jupyter notebook
- 22
is python programming language easy to learn
- 23
how to do python programming in vs code
- 24
is python programming hard to learn
- 25
which laptop is best for python programming
- 26
how to do python programming
- 27
which book is best for python programming
- 28
will python 4 come out
- 29
how to use anaconda for python programming
- 30
what can you do with python programming
- 31
what are the basics of python programming
- 32
how will i learn atl skills with python programming
- 33
what are variables in python programming
- 34
is python programming or scripting
- 35
why learn python programming
- 36
how long has python programming been around
- 37
where is python used and why
- 38
how to do python programming in laptop
- 39
what can you do with python programming language
- 40
what programming language should i learn after python
- 41
what has python been used for
- 42
is python sequential programming
- 43
who is the best python programmer in the world
- 44
how long does it take to learn python programming
- 45
can i do python programming on ipad
- 46
when is python used
- 47
is python programming easy to learn
- 48
who developed python programming language
- 49
where to start python programming
- 50
why python programming language named python
- 51
what are the uses of python programming
- 52
why python programming is important
- 53
which programming language is used in python
- 54
where python programming language is used
- 55
what are the good python programming practices
- 56
- 57
how is python different from other programming languages
- 58
is python named after monty python
- 59
is python the easiest programming language
- 60
is python programming in demand
- 61
why was python developed
- 62
will python die
- 63
why was python programming language created
- 64
does python support functional programming
- 65
where to learn python programming for free
- 66
where to program python
- 67
what are the functions of python programming
- 68
who is the father of python programming language
- 69
is python a programming software
- 70
why you should learn python programming
- 71
what is python as a programming language
- 72
who coded python
- 73
what is socket programming python
- 74
have python point to python3
- 75
can i do competitive programming in python
- 76
how did python programming get its name
- 77
who owns python programming language
- 78
is python programming language or scripting language
- 79
who developed python and when
- 80
what should be considered when using operators in python programming
- 81
why python is important
- 82
what should be used to terminate statements in python programming
- 83
how to make a programming language in python
- 84
where to practice python programming
- 85
how to practice python programming
- 86
why python is the best programming language
- 87
will python be replaced
- 88
who wrote python programming language
- 89
why is python good for beginners
- 90
why python programming is necessary
- 91
does python have object oriented programming
- 92
how long does it take to master python programming
- 93
how to do python programming in computer
- 94
does python support object oriented programming
- 95
what is functional programming in python
- 96
what jobs can you get with python programming
- 97
was python written in c
- 98
what are the features of python programming language
- 99
how would you describe object-oriented programming in python
- 100
who create python programming language
- 101
which app is used for python programming
- 102
who uses python programming language
- 103
what are the applications of python programming
- 104
what can python programming be used for
- 105
when python was created
- 106
who can learn python programming
- 107
where python programming is used
- 108
why was python invented
- 109
should you learn python
- 110
why should we learn python programming
- 111
why python is famous
- 112
will python become obsolete
- 113
what does python programming do
- 114
how python programming language works
- 115
who created python and why
- 116
which software is used for python programming
- 117
why python is most popular programming language
- 118
why python is popular programming language
- 119
how to do python programming for beginners
- 120
is python programming language
- 121
who developed python programming language and when
- 122
what python programming is used for
- 123
why python programming is called python
- 124
how is a function written in python programming language
- 125
is python programming free
- 126
what is object oriented programming in python
- 127
which software is best for python programming
- 128
how does python compare to other programming languages
- 129
what are the advantages of python programming language
- 130
what jobs can i get with python programming
- 131
who is the father of python
- 132
what does python programming mean
- 133
who uses python programming
- 134
what is gui programming in python
- 135
how to programming in python
- 136
is python necessary
- 137
do python programming online
More Sitesto check out once you're finished browsing here.
https://www.0x3d.site/
0x3d is designed for aggregating information.
https://nodejs.0x3d.site/
NodeJS Online Directory
https://cross-platform.0x3d.site/
Cross Platform Online Directory
https://open-source.0x3d.site/
Open Source Online Directory
https://analytics.0x3d.site/
Analytics Online Directory
https://javascript.0x3d.site/
JavaScript Online Directory
https://golang.0x3d.site/
GoLang Online Directory
https://python.0x3d.site/
Python Online Directory
https://swift.0x3d.site/
Swift Online Directory
https://rust.0x3d.site/
Rust Online Directory
https://scala.0x3d.site/
Scala Online Directory
https://ruby.0x3d.site/
Ruby Online Directory
https://clojure.0x3d.site/
Clojure Online Directory
https://elixir.0x3d.site/
Elixir Online Directory
https://elm.0x3d.site/
Elm Online Directory
https://lua.0x3d.site/
Lua Online Directory
https://c-programming.0x3d.site/
C Programming Online Directory
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
https://r-programming.0x3d.site/
R Programming Online Directory
https://perl.0x3d.site/
Perl Online Directory
https://java.0x3d.site/
Java Online Directory
https://kotlin.0x3d.site/
Kotlin Online Directory
https://php.0x3d.site/
PHP Online Directory
https://react.0x3d.site/
React JS Online Directory
https://angular.0x3d.site/
Angular JS Online Directory