# US_STATE_NAMES


US state and territory code to name mapping.


`US_STATE_NAMES={`\
`    ``"AL": `<span class="st">`"Alabama"``,`\
`    ``"AK"``: ``"Alaska"``,`\
`    ``"AZ"``: ``"Arizona"``,`\
`    ``"AR"``: ``"Arkansas"``,`\
`    ``"CA"``: ``"California"``,`\
`    ``"CO"``: ``"Colorado"``,`\
`    ``"CT"``: ``"Connecticut"``,`\
`    ``"DE"``: ``"Delaware"``,`\
`    ``"FL"``: ``"Florida"``,`\
`    ``"GA"``: ``"Georgia"``,`\
`    ``"HI"``: ``"Hawaii"``,`\
`    ``"ID"``: ``"Idaho"``,`\
`    ``"IL"``: ``"Illinois"``,`\
`    ``"IN"``: ``"Indiana"``,`\
`    ``"IA"``: ``"Iowa"``,`\
`    ``"KS"``: ``"Kansas"``,`\
`    ``"KY"``: ``"Kentucky"``,`\
`    ``"LA"``: ``"Louisiana"``,`\
`    ``"ME"``: ``"Maine"``,`\
`    ``"MD"``: ``"Maryland"``,`\
`    ``"MA"``: ``"Massachusetts"``,`\
`    ``"MI"``: ``"Michigan"``,`\
`    ``"MN"``: ``"Minnesota"``,`\
`    ``"MS"``: ``"Mississippi"``,`\
`    ``"MO"``: ``"Missouri"``,`\
`    ``"MT"``: ``"Montana"``,`\
`    ``"NE"``: ``"Nebraska"``,`\
`    ``"NV"``: ``"Nevada"``,`\
`    ``"NH"``: ``"New Hampshire"``,`\
`    ``"NJ"``: ``"New Jersey"``,`\
`    ``"NM"``: ``"New Mexico"``,`\
`    ``"NY"``: ``"New York"``,`\
`    ``"NC"``: ``"North Carolina"``,`\
`    ``"ND"``: ``"North Dakota"``,`\
`    ``"OH"``: ``"Ohio"``,`\
`    ``"OK"``: ``"Oklahoma"``,`\
`    ``"OR"``: ``"Oregon"``,`\
`    ``"PA"``: ``"Pennsylvania"``,`\
`    ``"RI"``: ``"Rhode Island"``,`\
`    ``"SC"``: ``"South Carolina"``,`\
`    ``"SD"``: ``"South Dakota"``,`\
`    ``"TN"``: ``"Tennessee"``,`\
`    ``"TX"``: ``"Texas"``,`\
`    ``"UT"``: ``"Utah"``,`\
`    ``"VT"``: ``"Vermont"``,`\
`    ``"VA"``: ``"Virginia"``,`\
`    ``"WA"``: ``"Washington"``,`\
`    ``"WV"``: ``"West Virginia"``,`\
`    ``"WI"``: ``"Wisconsin"``,`\
`    ``"WY"``: ``"Wyoming"``,`\
`    ``"DC"``: ``"District of Columbia"``,`\
`    ``"AS"``: ``"American Samoa"``,`\
`    ``"GU"``: ``"Guam"``,`\
`    ``"MP"``: ``"Northern Mariana Islands"``,`\
`    ``"PR"``: ``"Puerto Rico"``,`\
`    ``"VI"``: ``"U.S. Virgin Islands"``,`\
`}`</span>


This dictionary maps two-letter US state and territory codes to their full names. Includes all 50 states, District of Columbia, and 5 US territories (American Samoa, Guam, Northern Mariana Islands, Puerto Rico, U.S. Virgin Islands).

The [state](state.md#weathervault.state) helper object provides convenient attribute-based access to these codes.

## Examples

``` python
    >>> import weathervault as wv
    >>> wv.US_STATE_NAMES['CA']
```

    'California'

``` python
    >>> wv.US_STATE_NAMES['NY']
```

    'New York'

``` python
    >>> # Or use the state helper for attribute-based access:
    >>> wv.state.CA
```

    'CA'

``` python
    >>> # Use in search_stations:
    >>> wv.search_stations(country_code='US', state=wv.state.TX)
```
