Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

luausense-0.4.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

luausense-0.4.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file luausense-0.4.0.tar.gz.

File metadata

  • Download URL: luausense-0.4.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for luausense-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5e7a80bd1fb53216d55655ac0eab3bc82357f83e5b5e8929cb908e6d4629c369
MD5 78e81aab7a54237beef4906f818a5d01
BLAKE2b-256 0603ca5c09cb755c01e9cfda2f33e682e40c0570815878e776041619d6995e41

See more details on using hashes here.

File details

Details for the file luausense-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: luausense-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for luausense-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4ca33e59294390aa43dde1386459f57f0e792ed0f48934068affe78073ac9e4
MD5 efdc4dcb3d4e1857139f3c9ee5963a78
BLAKE2b-256 8cb276c666a8eee6ac90b8aaae192470622f701211df7d72320d186c74b1b4ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page