# API reference

Everything below is exported from `libphash`; the modules it comes from are private.

| Page | What |
| --- | --- |
| [Hashing](<https://gudoshnikovn.github.io/python-libphash/api/hashing/index.md>) | `hash()`, `ImageContext`, `Algorithm` |
| [Config](<https://gudoshnikovn.github.io/python-libphash/api/config/index.md>) | `Config`, the settings |
| [Digests and comparison](<https://gudoshnikovn.github.io/python-libphash/api/digests/index.md>) | `Digest`, `DigestKind`, `hamming_distance()`, `similarity()`, the text forms |
| [Batches](<https://gudoshnikovn.github.io/python-libphash/api/batch/index.md>) | `hash_files()`, `hash_buffers()`, `BatchResult` |
| [Errors](<https://gudoshnikovn.github.io/python-libphash/api/errors/index.md>) | `PhashError` and its subclasses |
| [Build and types](<https://gudoshnikovn.github.io/python-libphash/api/build/index.md>) | `libphash_version()`, `build_info()`, `can_decode()`, `digest_info()`, the type aliases and protocols |

The package is typed (`py.typed`): mypy and pyright check calls against these signatures, and every type a caller needs for their own annotations is exported.
