Metadata-Version: 2.4
Name: tilvisan-py
Version: 0.1.1
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Text Processing :: Fonts
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Libraries
License-File: LICENSE
License-File: LICENSE.external
Summary: Python bindings for tilvisan (Rust)
Author-email: Adrien Bachelart <hello@adrienbc.com>
Maintainer-email: Adrien Bachelart <hello@adrienbc.com>
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/adbac/tilvisan-py
Project-URL: Issues, https://github.com/adbac/tilvisan-py/issues

# tilvisan-py

Python bindings for the Rust [`tilvisan`](https://github.com/simoncozens/tilvisan) crate.

This package is distributed under the MIT license.

<!-- ## Documentation

The documentation is [here](https://adbac.github.io/xmpkit-py). Jump straight to the API reference [here](https://adbac.github.io/xmpkit-py/api-reference) -->

# Installation

- Ensure you have **Python 3.10+** installed on your machine.
- Install `tilvisan-py` through `pip` directly or using a package manager like `uv` or `poetry`.

# Use

You're all set! You can now use the package by importing it in a Python script:

``` py
from tilvisan import autohint

autohint(
    "UntitledFont_unhinted.ttf",  # input
    "UntitledFont_hinted.ttf",  # output
    no_info=True,
)
```

See the [stub file](https://github.com/adbac/tilvisan-py/blob/main/python/tilvisan/__init__.pyi) for a documentation of the function's parameters.

## Contributing

Contributions are welcome! Contributing guidelines are to be written.

