How to use custom python function to translate the numbers in Tamil?

I use Tamil language to send invoices.

I can get all the content in tamil, except the ‘In words’ for the amount.

For example, for Rs 10,000 we get as Ten thousand.

As this is dynamic string, we can’t have static translations. But for Tamil, we have a python library called Open-Tamil, which can do the number to text translation and many more things for processing tamil text.

Code open-tamil/ at main · Ezhil-Language-Foundation/open-tamil · GitHub

How Can we use this to get the numbers in tamil words in invoices?