GitXplorerGitXplorer
h

python-stubs

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
9c34974f4db1700f16536f614fc82af2fd82c602

Add missing file

hhamdanal committed 2 months ago
Verified
e94743aa00dd2451b0f50cd7b45de24e995cbc33

A few pp improvements (#14)

hhamdanal committed 2 months ago
Verified
25ebe277649062122f753052314570a72f443dec

Improve geopandas and pandapower (#13)

hhamdanal committed 2 months ago
Verified
0d49251f97c37ada4c837fb3479969bd0865b4e6

Remove obsolete GeoSeries methods (#12)

hhamdanal committed 2 months ago
Verified
ddbf19ac17b218855cf17288b02934c03a2514a3

Update dependencies (#11)

hhamdanal committed 2 months ago
Unverified
95bc0c7778a8a0954e01d1c6afad92fd4ffaa254

Minor geopandas tweaks

hhamdanal committed 6 months ago

README

The README file for this repository.

python-stubs

This repository provides stubs for some python packages that do not offer proper type hints and have no stubs available. The main goal is to provide helpers for VSCode's Pylance language server to offer better autocompletion. Another goal is to improve the performance of VSCode's python extension where it suffers from slow downs with some packages (For example, installing pandapower without the stubs, python analysis in VSCode takes up to 7 seconds to complete on every change).

Usage

  1. Clone the repository:
    git clone https://github.com/hamdanal/python-stubs /path/to/python-stubs
  2. Add the stubs to "extraPaths" in your VSCode's settings.json:
    "python.analysis.extraPaths": ["/path/to/python-stubs/stubs"]

Contributing

Contributions of any kind are welcome. Please open an issue or a send pull request.

To set up a development environment:

  1. Create a virtual environment: python -m .venv venv
  2. Activate the virtual environment:
    • Unix: . .venv/bin/activate
    • Windows: .venv\Scripts\activate
  3. Install the dependencies: python -m pip install -r requirements.txt

Run python run.py --help for more.

License

This project is licensed under the MIT License.

List of available stubs

Project Import name Links Status Type-checked Tested
django-netfields netfields PyPI, GitHub Complete Yes No
django-postgres-extra psqlextra PyPI, GitHub Incomplete Yes No
pandapower pandapower PyPI, GitHub Incomplete Yes No
geopandas geopandas PyPI, GitHub Complete Yes Yes

Upstreamed stubs

These stubs were included here in the past and have been moved to typeshed or to the their libraries.

Project Moved to Installation
seaborn typeshed pip install types-seaborn
shapely typeshed pip install types-shapely