Skip to main content

Intelligent autocompletion for Lua scripting language

Project description

LuaSense

A Python library providing intelligent autocompletion for Lua scripting language keywords and built-in functions.

Features

  • Fast, case-sensitive autocompletion for Lua keywords and functions
  • Input validation with meaningful error messages
  • Zero external dependencies
  • Fully typed for better IDE support

Installation

pip install luasense

Usage

import luasense

# Get autocomplete suggestions
try:
    suggestions = luasense.autocomplete("pri")
    print(suggestions)  # ['print', 'private']
except luasense.TooShortRequestError:
    print("Input too short - minimum 2 characters required")

API

autocomplete(query: str) -> List[str]

Returns a list of Lua keywords and built-in functions that start with the given query.

· query: String to autocomplete (minimum 2 characters) · Returns: List of matching Lua 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

luasense-0.4.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

luasense-0.4.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for luasense-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fcb34fc4e40086917e6c0ff21b40da23b60c7ded86c5ac4f2a9c8672a3665015
MD5 a633f362842bfcad817b031216799bd9
BLAKE2b-256 6b9cd5dbdb8b67e5ed0cb2a294fe7514a5b01383aee2a023a595d8f1aa0548d7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for luasense-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdd1043b4c94015dad894b601c079b8310003324d4f70a2e10a10b2d7f53cb20
MD5 9fcc705542325cf78fe25312b2a812f3
BLAKE2b-256 69eeb7924cfa18a6aaf426774439be962196a40468d39a2ea7a3214aca9fc865

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