com.jetbrains.python.inspections.unresolvedReference.PyPackageAliasesProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of python-community Show documentation
Show all versions of python-community Show documentation
A packaging of the IntelliJ Community Edition python-community library.
This is release number 1 of trunk branch 142.
The newest version!
package com.jetbrains.python.inspections.unresolvedReference;
import java.util.HashMap;
import java.util.Map;
public class PyPackageAliasesProvider {
private PyPackageAliasesProvider() {
}
public static final Map commonImportAliases = new HashMap();
public static final Map packageAliases = new HashMap();
static {
commonImportAliases.put("np", "numpy");
commonImportAliases.put("pl", "pylab");
commonImportAliases.put("p", "pylab");
commonImportAliases.put("sp", "scipy");
commonImportAliases.put("pd", "pandas");
commonImportAliases.put("sym", "sympy");
commonImportAliases.put("sm", "statmodels");
commonImportAliases.put("nx", "networkx");
commonImportAliases.put("sk", "sklearn");
commonImportAliases.put("plt", "matplotlib.pyplot");
commonImportAliases.put("mpimg", "matplotlib.image");
commonImportAliases.put("mimg", "matplotlib.image");
}
static {
packageAliases.put("sklearn", "scikit-learn");
packageAliases.put("Crypto", "PyCrypto");
packageAliases.put("cv2", "pyopencv");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy