Try it out! Enter an address in the US, and we'll parse it into fields like
usaddress is a Python library for parsing unstructured address strings in the United States into address components.
> pip install usaddress
Pass in an address string to the
usaddress.tag() method, and it will return a tuple containing an
OrderedDict with tagged address parts and a
String with the address type.
>>> import usaddress >>> usaddress.tag('123 Main St. Suite 100 Chicago, IL') (OrderedDict([ ('AddressNumber', '123'), ('StreetName', 'Main'), ('StreetNamePostType', 'St.'), ('OccupancyType', 'Suite'), ('OccupancyIdentifier', '100'), ('PlaceName', 'Chicago'), ('StateName', 'IL')]), 'Street Address')