Install¶
omnitax is on PyPI and runs on Linux only (see the roadmap):
uv add omnitax # in a project
uv tool install 'omnitax[server]' # the command line, with the server
pip install omnitax # or with pip
| Install | For | Brings |
|---|---|---|
omnitax |
Python code and every command but serve: reading a file, talking to a server, downloading |
httpx only |
omnitax[server] |
the machine that runs omnitax serve, or mounts the routes into its own app |
plus starlette, uvicorn, anyio |
omnitax[taxdump] |
omnitax export-taxdump of a taxonomy whose ids are not numbers (GTDB, SILVA), about three times faster |
plus xxhash (without it a pure-Python xxHash64 gives the same ids) |
Requirements¶
- Python 3.12 or newer.
- SQLite with FTS5 (the
trigramtokenizer needs SQLite 3.34 or newer) to build a file with the fuzzy-search index. Current Python distributions have it.--no-fuzzydoes not need it. - Disk and memory depend on what you load; see
build. A loaded taxonomy (omnitax.load) lives in a temporary file; for NCBI that is about 1.2 GB, in RAM if/tmpis a RAM disk.OMNITAX_TMPDIRmoves it (details).