# iso-standards

This library is designed to provide consumers with currencies and countries data,
compatible with iso-3166 standard. 

Installation
------------

```bash
pip install -i https://pypi.theorchard.io/pypi/ iso-standards
```

Usage
-----

#### Currencies

```python

from iso_standards.currency import get_currency_object_from_code


print(get_currency_object_from_code('UDS'))
# {'currency_id': 840, 'currency_code': 'USD', 'currency_name': 'US Dollar'}

```

#### Countries

Country can be initialized either via alpha2 or alpha3 or numeric codes. 

```python

from iso_standards.country import Country


usa = Country('USA')
# or
usa = Country('US')
# or
usa = Country('840')

print(usa.to_dict())
# {
#   'alpha2': 'US', 
#   'alpha3': 'USA', 
#   'numeric': '840', 
#   'name': 'United States of America', 
#   'region': 'Americas'
# }
```
