Is there a package that maintains a list all currencies with symbols?

后端 未结 3 1328
广开言路
广开言路 2021-02-20 11:36

Is there a python package that provides list of all (or fairly complete) currencies with the symbols (like \"$\" for USD).

There are excellent pycount

3条回答
  •  不要未来只要你来
    2021-02-20 12:09

    It's a lot more than you really need, but Babel does include currencies, in the Locale currency_symbols dictionary. Some may require a little parsing, though; for example, USD is 'US$' rather than just the dollar sign, while others, like the Euro or Yuan, have no such prefix.

    I believe Babel uses the CLDR as its source.

提交回复
热议问题