Skip to main content

Locale currency country code mapper

Project description

Locale, currency, and country code mapper

Python library for looking up locale, currency, or country code based on one of the other.

URLs

https://github.com/peal/lccc_mapper

http://pypi.python.org/pypi/lccc_mapper

Example

>>> import lccc_mapper
>>> lccc_mapper.currency_to_country_codes('USD')
['AS', 'BQ', 'IO', 'EC', 'SV', 'GU', 'HT', 'MH', 'FM', 'MP', 'PW', 'PA', 'PR', 'TL', 'TC', 'US', 'UM', 'VG', 'VI']
>>> lccc_mapper.country_code_to_currencies('CH')
['CHF', 'CHE', 'CHW']
>>> lccc_mapper.locale_to_currencies('en_GB')[0]
'GBP'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lccc_mapper-0.0.2.tar.gz (6.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page