Metadata-Version: 2.4
Name: lpy-autocomplete
Version: 0.1.0
Summary: Autocompletion and introspection tools for lispython.
Project-URL: Repository, https://github.com/jetack/lpy-autocomplete
Author: jetack
License-Expression: MIT
License-File: LICENSE
Keywords: completion,emacs,introspection,lispy,lispython,python
Requires-Python: >=3.11
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Description-Content-Type: text/markdown

# lpy-autocomplete

Autocompletion and introspection tools for [lispython](https://github.com/jetack/lispython).

## Installation

```bash
pip install lpy-autocomplete
```

## Usage

```python
from lpy_autocomplete import API

api = API()
api.set_namespace(globals_=globals())  # macros found automatically from __macro_namespace

# Completion
api.complete("pr")          # -> ("print", ...)
api.complete("print.")      # -> ("print.__call__", "print.__str__", ...)

# Documentation
api.docs("itertools")       # -> "Functional tools..."

# Annotation
api.annotate("itertools")   # -> "<module itertools>"
```

## Development

```bash
uv sync --extra dev
uv run -m pytest tests/
```

## TODO
- [ ] Imported module members completion

## License

MIT
