Varṇa (वर्ण) is a phonetic unit of Sanskrit language.
There are 50 varṇa, broadly classified in three types,
The Varṇajñānam system consists of utility functions related to varṇa information and manipulation.
The functionality offered by Varṇajñānam is also available as a Python library at PyPI.
sanskrit-text
: https://pypi.org/project/sanskrit-text/pip install sanskrit-text