Intelligent autocompletion for Luau scripting language
Project description
LuauSense
A Python library providing intelligent autocompletion for Luau scripting language keywords and built-in functions.
Features
- Fast, case-sensitive autocompletion for Luau keywords and functions
- Input validation with meaningful error messages
- Zero external dependencies
- Fully typed for better IDE support
Installation
pip install luausense
Usage
import luausense
# Get autocomplete suggestions
try:
suggestions = luausense.autocomplete("pri")
print(suggestions) # ['print', 'private']
except luausense.TooShortRequestError:
print("Input too short - minimum 2 characters required")
API
autocomplete(query: str) -> List[str]
Returns a list of Luau keywords and built-in functions that start with the given query.
· query: String to autocomplete (minimum 2 characters) · Returns: List of matching Luau identifiers · Raises: TooShortRequestError if query length < 2
License
Apache-2.0
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 luausense-0.5.0.tar.gz.
File metadata
- Download URL: luausense-0.5.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f3cad46dd1f910ef0a76c63ccd2531526dbeaec9d272fd3a0318a95077be0e
|
|
| MD5 |
f1bec19b9d1b901f916ac8d40a660125
|
|
| BLAKE2b-256 |
6d0125e00c47efe0a6e29262737f4926ce4956810d7d72a7559ee2cd2ac9417b
|
File details
Details for the file luausense-0.5.0-py3-none-any.whl.
File metadata
- Download URL: luausense-0.5.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dbc77b7fd251e5f8031866fd372cd23866bc7902fda28b89733959727dd0a31
|
|
| MD5 |
93278a3d266b875cdc565afbec488f5a
|
|
| BLAKE2b-256 |
033cdc8b4c945e05c9413970d18f7f80f3d862aec8026e14c200f33494aec784
|