AI-powered code autocomplete with RL-optimized suggestions
Project description
vishwa-autocomplete
Python backend for the Vishwa Autocomplete VS Code extension — AI-powered code completions with reinforcement learning.
Installation
pip install vishwa-autocomplete
Python 3.10+ is required.
Usage
This package is the backend service for the Vishwa Autocomplete VS Code extension. The extension installs and manages it automatically.
You can also run it directly:
# With a local Ollama model (default: gemma3:4b)
vishwa-autocomplete --model gemma3:4b
# With a cloud model (set your API key first)
export ANTHROPIC_API_KEY=sk-...
vishwa-autocomplete --model claude-haiku-4-5
Or as a module:
python -m vishwa_autocomplete.service --model gemma3:4b
Supported Models
Local (free, via Ollama):
gemma3:4b— Google Gemma 3 4B (default)qwen2.5-coder:7b— Qwen 2.5 Coderdeepseek-coder— DeepSeek Coder
Cloud (requires API key):
| Model | Provider | Env var |
|---|---|---|
claude-haiku-4-5 |
Anthropic | ANTHROPIC_API_KEY |
claude-sonnet-4-6 |
Anthropic | ANTHROPIC_API_KEY |
gpt-4o-mini |
OpenAI | OPENAI_API_KEY |
Configuration
Set your model and API keys via environment variables or a .env file:
# ~/.vishwa-autocomplete/.env
VISHWA_AUTOCOMPLETE_MODEL=claude-haiku-4-5
ANTHROPIC_API_KEY=sk-ant-...
Links
Project details
Release history Release notifications | RSS feed
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 vishwa_autocomplete-1.0.0.tar.gz.
File metadata
- Download URL: vishwa_autocomplete-1.0.0.tar.gz
- Upload date:
- Size: 21.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2b2e7ff044cf137fb1d88ee1c18596ba8913652fd4ac1566e471974f852e5ed
|
|
| MD5 |
1d0706e2cfbcc693f6a4588adb33f848
|
|
| BLAKE2b-256 |
af60894927277421b71f38d2230c707c767c5f1bd3b72e2f3f3949ef05c76639
|
Provenance
The following attestation bundles were made for vishwa_autocomplete-1.0.0.tar.gz:
Publisher:
publish.yml on srujan375/vishwa-autocomplete
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vishwa_autocomplete-1.0.0.tar.gz -
Subject digest:
e2b2e7ff044cf137fb1d88ee1c18596ba8913652fd4ac1566e471974f852e5ed - Sigstore transparency entry: 1107688278
- Sigstore integration time:
-
Permalink:
srujan375/vishwa-autocomplete@7e991dbbaeec6b186e7aae6c1e264d4555bc3112 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/srujan375
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e991dbbaeec6b186e7aae6c1e264d4555bc3112 -
Trigger Event:
push
-
Statement type:
File details
Details for the file vishwa_autocomplete-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vishwa_autocomplete-1.0.0-py3-none-any.whl
- Upload date:
- Size: 42.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b3a8da8c32abaa102461c23b278733ea42915ac65606950b41134496a74d34
|
|
| MD5 |
b19622996ff59df1d2dc0b6275863042
|
|
| BLAKE2b-256 |
bf1f6080f8d3ac9c160cbe206afd7634b7b505bb429888c1d71efe2b88c86b90
|
Provenance
The following attestation bundles were made for vishwa_autocomplete-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on srujan375/vishwa-autocomplete
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vishwa_autocomplete-1.0.0-py3-none-any.whl -
Subject digest:
c0b3a8da8c32abaa102461c23b278733ea42915ac65606950b41134496a74d34 - Sigstore transparency entry: 1107688279
- Sigstore integration time:
-
Permalink:
srujan375/vishwa-autocomplete@7e991dbbaeec6b186e7aae6c1e264d4555bc3112 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/srujan375
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7e991dbbaeec6b186e7aae6c1e264d4555bc3112 -
Trigger Event:
push
-
Statement type: