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.5.0.tar.gz (7.6 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.5.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for luasense-0.5.0.tar.gz
Algorithm Hash digest
SHA256 eb59cc549b7d1fc4464ba856ed34adde2138df6f869f0617f836610b1178a4d4
MD5 81f4b84ba4f22ad555f67ffdf14668b4
BLAKE2b-256 7962060ed55fa20551b1e9b2de3af1c2e54d212a45499fe9bab55fbb7bd20bbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: luasense-0.5.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1dd32895a738748821ce7d1767f62a50c5a2b35931fb2c8ac3e3f4f0431f3eca
MD5 aaa68a2aaef42ec7a2a41ce2efaecdc4
BLAKE2b-256 89e6c45f5491362b72df6cddc4aba0a73b180b276e837773cf6b2b8ab771e711

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