Improved Xonsh's Python completions using jedi
Project description
Xonsh Python completions using jedi.
If you like the idea click ⭐ on the repo and tweet.
Installation
To install use pip:
xpip install xontrib-jedi
# or: xpip install -U git+https://github.com/xonsh/xontrib-jedi
Usage
xontrib load jedi
import json
json.<Tab>
The xontrib swaps xonsh's built-in python completer for jedi_python.
Other completers in the chain (including xonsh_imp, which completes
__xonsh__.imp.<module>) are left alone, so they keep working as before.
Operator and shell-syntax tokens (<=, **, $(, @(, ,, …) are pulled
from xonsh's own XONSH_EXPR_TOKENS, so the menu stays in sync with the
host xonsh version. Keywords already produced by jedi (if, and, lambda,
…) are filtered out to avoid duplicates.
Configuration
$XONTRIB_JEDI_FUZZY(bool, defaultFalse) — whenTrue, jedi is called withfuzzy=True, so e.g.ooamatchesfoobar. Off by default since fuzzy mode returns more noisy candidates.$XONTRIB_JEDI_CASE_SENSITIVE(bool, defaultFalse) — whenTrue, jedi matches candidate names case-sensitively (setsjedi.settings.case_insensitive_completion = False). Off by default to match jedi's own default.
Examples:
$XONTRIB_JEDI_FUZZY = True
$XONTRIB_JEDI_CASE_SENSITIVE = True
Release
- update the version in
pyproject.toml - Create a new release with the same tag using Github releases
Credits
This package was created with xontrib template.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xontrib_jedi-0.2.0.tar.gz.
File metadata
- Download URL: xontrib_jedi-0.2.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d530328a3b59ecd0284c52ddfbf6910384b50e10e80042b5359e86837604703
|
|
| MD5 |
88bb8dbcd51d5abd62414282f87aaa55
|
|
| BLAKE2b-256 |
e1981ccd24f0a3f2526693d61892fbb183ab2d53228f37c249207b8ca7d1974c
|
Provenance
The following attestation bundles were made for xontrib_jedi-0.2.0.tar.gz:
Publisher:
release.yml on xonsh/xontrib-jedi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xontrib_jedi-0.2.0.tar.gz -
Subject digest:
4d530328a3b59ecd0284c52ddfbf6910384b50e10e80042b5359e86837604703 - Sigstore transparency entry: 1563740582
- Sigstore integration time:
-
Permalink:
xonsh/xontrib-jedi@ba4ee71885d6894ff712ec44917e3768df47880e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/xonsh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ba4ee71885d6894ff712ec44917e3768df47880e -
Trigger Event:
push
-
Statement type:
File details
Details for the file xontrib_jedi-0.2.0-py3-none-any.whl.
File metadata
- Download URL: xontrib_jedi-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e387175f194a27ab758d73c527b6af8b6a6b4d932ea722e16242fea58ad1c5b5
|
|
| MD5 |
7b7bd7fd4358a0a063b74fa726565594
|
|
| BLAKE2b-256 |
27f453eceabb0d3136a65171b5ad8fca9a7be4adda5d3471673371b4f6c18815
|
Provenance
The following attestation bundles were made for xontrib_jedi-0.2.0-py3-none-any.whl:
Publisher:
release.yml on xonsh/xontrib-jedi
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xontrib_jedi-0.2.0-py3-none-any.whl -
Subject digest:
e387175f194a27ab758d73c527b6af8b6a6b4d932ea722e16242fea58ad1c5b5 - Sigstore transparency entry: 1563740625
- Sigstore integration time:
-
Permalink:
xonsh/xontrib-jedi@ba4ee71885d6894ff712ec44917e3768df47880e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/xonsh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@ba4ee71885d6894ff712ec44917e3768df47880e -
Trigger Event:
push
-
Statement type: