I've got a Python web server (mod_python, if that makes any difference) that I want to start formatting some currency. I've got two pieces of information when I format the currency - the value (as a number) and the currency (as the three-letter ISO 4217 code). I can also retrieve the country (or even city) that the currency is being formatted in. I can expect a large variety of currencies to be formatted - USD, CAD, JPY, GBP, EUR, etc. Each request might be in a different currency.
I'm aware of the locale module, but it doesn't do what I want. That module seems to be based around the computer's locale, so it doesn't work well for formatting any given currency.
Is there a way to do this in Python? Or does anyone know of a good library that can solve this problem?