Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call NameLoad Num With Call AttributeLoad NameLoad attr NameLoad NameStore body With Call AttributeLoad NameLoad attr NameLoad Str NameStore body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print Str Return TupleLoad NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Num Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad NameLoad keyword Num body If CompareEq NameLoad Num body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return TupleLoad NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num If CompareNotEq NameLoad NameLoad body Print Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareIs SubscriptLoad NameLoad Index NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad If CompareIs Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Print Str Return NameLoad If CompareIsNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareIsNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return NameLoad If BoolOpAnd CompareIsNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad CompareIsNot Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body Return NameLoad Print Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If UnaryOpNot NameLoad body Continue Assign NameStore Call NameLoad NameLoad NameLoad If CompareGtE Call NameLoad NameLoad Num body Assign TupleStore NameStore NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Expr Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Slice ListLoad Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad If UnaryOpNot NameLoad body Return Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr Assign NameStore AttributeLoad SubscriptLoad NameLoad Index Num attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr Num body Print Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad NameLoad attr Print NameLoad Return TupleLoad ListLoad NameLoad orelse Print Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Return TupleLoad ListLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print NameLoad Return TupleLoad ListLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print Call AttributeLoad Str attr NameLoad NameLoad AttributeLoad NameLoad attr Print NameLoad Return TupleLoad ListLoad NameLoad ExceptHandler type NameLoad body Print Call AttributeLoad Str attr NameLoad NameLoad Call AttributeLoad NameLoad attr Print NameLoad Return TupleLoad ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore NameLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str Str If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str Str For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr body Delete SubscriptDel NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore Num FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr GeneratorExp Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Str comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Return NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Return NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad BinOpAdd BinOpAdd NameLoad Str NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Str If BoolOpOr CompareGtE NameLoad Call NameLoad NameLoad CompareLt NameLoad Num body Print Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Return Str Return Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot BinOpMod NameLoad Num body Print NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Dict Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Dict Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad NameLoad attr Str Str decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr Assign NameStore Call AttributeLoad Str attr FunctionDef arguments args NameParam defaults body Return ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Dict Str Str Str Str decorator_list ClassDef bases NameLoad body Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr
N/A N/A 
--------------------------------------------------------------------------------

Requirements:

- Internet connection
- Python 2.7 (https://www.python.org/downloads/)
- Active LiveAddress API subscription (http://smartystreets.com/pricing)
- Valid Secret Key Pair (http://smartystreets.com/account/keys)

--------------------------------------------------------------------------------

This program preserves the core functionality of the deprecated LiveAddress
for Lists service by translating the output of the LiveAddress API into a
text file but without concerning itself with much of the backend infrastructure 
associated with the deprecated service (asynchronous messaging infrastructure, 
a fleet of auto-scaled processing servers, queueing of lists, web GUI, free 
file storage). Our reason for writing this code was to illustrate that our 
LiveAddress for Lists service was, in essence, a well-crafted example of how 
to use the LiveAddress API to do something interesting. In the case of 
LiveAddress for Lists, the "interesting" thing was to process a file with 
address data.

The input file must be a TAB-DELIMITED text file with a header row that has
column names from the following set (case-insensitive):

    'Id'
    'FullName'
    'FirstName'
    'LastName'
    'OrganizationName'
    'Street1'
    'Secondary'
    'Street2'
    'City'
    'State'
    'ZipCode'
    'CityStateZipCode'
    'Plus4Code'
    'Urbanization'

The column names may be presented in any order, but each record's field data
must match that order. Additional fields are welcome as well, but they won't be
included in the requests to the LiveAddress API.

The only combination of fields that is required is one of the following:

Street1, ZipCode
Street1, City, State
Street1, City, State, ZipCode
Street1, LastLine (city/state/zipcode in a single field)

The output of this program is a file that contains every field from the JSON
response of the LiveAddress API.

    Usage: python list_processing.py <path-to-input-file> <path-to-output-file>

--------------------------------------------------------------------------------

It should be noted that this program contains logic that we've used at
SmartyStreets for some time now. Much of the logic (like de-duplication and
deciding which fields to use for the 'addressee') are general purpose. You might
have good reasons to rewrite portions of this program in a way that matches your
use case more specifically.

--------------------------------------------------------------------------------

LiveAddress API Documentation:

- http://smartystreets.com/kb/liveaddress-api/rest-endpoint
- http://smartystreets.com/kb/liveaddress-api/parsing-the-response
- http://smartystreets.com/kb/liveaddress-api/field-definitions

--------------------------------------------------------------------------------

Enjoy!
 N/A argparse N/A hashlib N/A httplib N/A io N/A json N/A os N/A traceback N/A urllib N/A urllib2 N/A config main N/A N/A input_file output_file N/A N/A N/A N/A header_line headers N/A analyze input_file N/A N/A headers None N/A N/A N/A exit 1 N/A N/A N/A io open input_file records N/A N/A N/A N/A io open output_file w output N/A N/A N/A write_header_row header_line output N/A N/A process records headers output N/A N/A N/A output flush N/A analyze N/A N/A input_file N/A N/A N/A 
    Does the input file exist?
    Does it have a header row with the right kind of field names?
    Does each record have the appropriate number of fields?
     N/A N/A N/A N/A N/A os path exists input_file N/A N/A The given input file does not exist! N/A N/A None None N/A header_line None N/A headers None N/A N/A N/A io open input_file records N/A N/A columns 0 N/A header N/A N/A number line N/A enumerate records start 1 N/A N/A N/A number 1 N/A N/A header line N/A fields N/A N/A line split TAB N/A columns N/A len fields N/A headers N/A identify_headers fields N/A N/A headers None N/A N/A N/A None None N/A N/A header_line line N/A field_count N/A N/A N/A line count TAB 1 N/A N/A field_count columns N/A N/A N/A N/A Line number {0} had {1} fields but each record must have {2} fields (separated by tabs) to match the header row: "{3}" format number field_count columns header N/A N/A None None N/A N/A header_line headers N/A identify_headers N/A N/A fields N/A N/A N/A 
    Required: Street1 & (ZIP_CODE | CITY & STATE | LAST_LINE)
     N/A headers N/A N/A dict fromkeys N/A N/A Headers field_keys N/A N/A index field N/A enumerate fields N/A N/A field N/A N/A N/A N/A field strip lower N/A N/A headers N/A field index N/A header N/A N/A headers keys N/A N/A N/A N/A headers N/A header None N/A N/A N/A headers N/A header N/A N/A N/A N/A headers get N/A Headers STREET1 None N/A N/A You must include a "Street1" field in the header row! N/A None N/A N/A N/A N/A headers get N/A Headers ZIP_CODE None N/A N/A headers N/A N/A N/A N/A headers get N/A Headers LAST_LINE None N/A N/A headers N/A N/A N/A N/A N/A headers get N/A Headers CITY None N/A N/A N/A headers get N/A Headers STATE None N/A N/A headers N/A At minimum, you must include "Street1" and at least one of the following combinations:
	"ZipCode"
	"CityStateZipCode"
	"City", "State" N/A None N/A write_header_row N/A N/A header_line output N/A N/A N/A 
    Inserts the headers from the input file into the output file header row.
     N/A header_fields N/A N/A N/A N/A header_line strip split TAB N/A header_fields N/A N/A TAB join N/A N/A N/A [{0}] format x N/A x header_fields N/A output_header_row N/A N/A N/A Templates header format input_headers header_fields N/A N/A N/A output write output_header_row N/A process N/A N/A records headers output N/A N/A N/A 
    Each HTTP request payload is a batch of <= 100 addresses (json).
    HTTP error (other than 400) causes unhandled exception (program exits).
     N/A batch N/A N/A hashes N/A set N/A N/A number line N/A enumerate records N/A N/A N/A number N/A N/A N/A input_record N/A InputRecord line headers N/A N/A N/A len batch 100 N/A N/A N/A verified_batch ok N/A verify batch N/A N/A ok N/A N/A N/A N/A write_batch verified_batch hashes output N/A N/A batch N/A N/A N/A N/A N/A batch append input_record N/A N/A len batch N/A N/A N/A verified_batch ok N/A verify batch N/A N/A ok N/A N/A N/A N/A write_batch verified_batch hashes output N/A is_duplicate N/A N/A hashes record N/A N/A N/A 
    Each address result is concatenated and hashed using MD5. `hashes` set
    maintains record of everything we've already seen.
     N/A value N/A N/A record hash_input N/A N/A value BLANK_ADDRESS_CONCATENATION N/A N/A False N/A hasher N/A N/A hashlib md5 N/A N/A N/A hasher update value N/A hashed N/A N/A hasher digest N/A N/A hashed hashes N/A N/A True N/A N/A N/A hashes add hashed N/A False N/A verify N/A N/A batch N/A N/A N/A 
    LiveAddress API - HTTP nitty-gritty.
     N/A records N/A sanitize batch N/A payload N/A N/A json dumps records N/A url N/A N/A N/A HTTP api_url ? N/A N/A urllib urlencode N/A config AUTHENTICATION N/A request N/A N/A urllib2 Request url payload N/A HTTP request_headers N/A first N/A N/A batch N/A 0 sequence N/A last N/A N/A batch N/A -1 sequence N/A N/A N/A response N/A N/A urllib2 urlopen request N/A N/A N/A parse N/A N/A response read batch True N/A N/A N/A N/A urllib2 HTTPError N/A e N/A N/A N/A N/A e code 400 N/A N/A N/A N/A Bad batch from records {0}-{1}, returning empty result set... ({2}) format first last N/A e reason N/A payload N/A N/A N/A True N/A N/A N/A N/A urllib2.HTTPError: HTTP Status Code for batch of records ({0}-{1}): {2} ({3}) format first last N/A e code N/A e reason N/A payload N/A N/A N/A False N/A N/A N/A urllib2 URLError N/A e N/A N/A N/A N/A urllib2.URLError for batch of records ({0}-{1}):
	Message: {2}
	Reason: {3} format first last N/A e message N/A e reason N/A payload N/A N/A N/A False N/A N/A N/A httplib HTTPException N/A e N/A N/A N/A N/A httplib.HTTPException for batch of records ({0}-{1}): {2} format first last N/A e message N/A payload N/A N/A N/A False N/A N/A Exception N/A N/A N/A N/A Exception for batch of records ({0}-{1}): {2} format first last N/A N/A traceback format_exc N/A payload N/A N/A N/A False N/A sanitize N/A N/A input_batch N/A N/A N/A 
    Make sure the JSON payload will have the correct fields (and not
    any extra fields).
     N/A records N/A N/A N/A x to_dict N/A x input_batch N/A record records N/A N/A N/A N/A N/A record get street N/A N/A N/A record N/A street <unknown_street> N/A N/A N/A N/A N/A record get zipcode N/A N/A N/A record get state N/A N/A N/A record get city N/A N/A N/A record get lastline N/A N/A N/A record N/A lastline <lastline_unknown> N/A record records N/A N/A field N/A N/A record keys N/A N/A N/A N/A N/A N/A record N/A field strip N/A N/A N/A record N/A field N/A records N/A parse N/A N/A json_result input_batch N/A N/A N/A 
    Put the resulting JSON response into a well-formed structure.
     N/A results N/A N/A json loads json_result N/A batch N/A N/A item input_batch N/A N/A processed N/A AddressResponse N/A N/A N/A processed include_input item N/A N/A N/A batch append processed N/A N/A index result N/A enumerate results N/A N/A batch_index N/A int N/A result N/A input_index N/A N/A N/A N/A batch N/A batch_index include_output result N/A batch N/A write_batch N/A N/A batch hashes output N/A N/A N/A record batch N/A N/A N/A is_duplicate hashes record N/A N/A N/A record duplicate Y N/A N/A N/A output write N/A unicode record N/A N/A QUOTE " N/A TAB N/A BLANK_ADDRESS_CONCATENATION ///// InputRecord N/A object N/A N/A 
    The InputRecord defines the fields that will be submitted in JSON format
    to the LiveAddress API.
     N/A sequence_counter 1 __unicode__ N/A N/A self N/A N/A N/A N/A N/A TAB join N/A N/A N/A N/A N/A x strip replace QUOTE N/A x N/A N/A N/A self original split TAB N/A to_dict N/A N/A self N/A N/A N/A N/A input_id street street2 city state zipcode plus4 urbanization secondary lastline addressee N/A self input_id N/A self street N/A self street2 N/A self city N/A self state N/A self zipcode N/A self plus4 N/A self urbanization N/A self secondary N/A self lastline N/A self addressee N/A __init__ N/A N/A self line headers N/A N/A N/A N/A self original line N/A N/A self sequence N/A InputRecord sequence_counter N/A N/A self fields N/A N/A N/A x strip N/A x N/A N/A line split TAB N/A N/A self input_id N/A get N/A self fields N/A N/A headers get N/A Headers ID N/A N/A self street N/A get N/A self fields N/A N/A headers get N/A Headers STREET1 N/A N/A self street2 N/A get N/A self fields N/A N/A headers get N/A Headers STREET2 N/A N/A self city N/A get N/A self fields N/A N/A headers get N/A Headers CITY N/A N/A self state N/A get N/A self fields N/A N/A headers get N/A Headers STATE N/A N/A self zipcode N/A get N/A self fields N/A N/A headers get N/A Headers ZIP_CODE N/A N/A self plus4 N/A get N/A self fields N/A N/A headers get N/A Headers PLUS4CODE N/A N/A self urbanization N/A get N/A self fields N/A N/A headers get N/A Headers URBANIZATION N/A N/A self secondary N/A get N/A self fields N/A N/A headers get N/A Headers SECONDARY N/A N/A self lastline N/A get N/A self fields N/A N/A headers get N/A Headers LAST_LINE N/A N/A self addressee N/A N/A self decide_on_addressee headers N/A N/A InputRecord sequence_counter 1 N/A N/A report_progress N/A InputRecord sequence_counter N/A decide_on_addressee N/A N/A self headers N/A N/A N/A 
        This is the logic we've used at SmartyStreets for some time. But it
        doesn't have to be like this if it's not helpful.
         N/A organization N/A get N/A self fields N/A N/A headers get N/A Headers ORGANIZATION N/A organization N/A N/A organization N/A full N/A get N/A self fields N/A N/A headers get N/A Headers FULL_NAME N/A full N/A N/A full N/A first N/A get N/A self fields N/A N/A headers get N/A Headers FIRST_NAME N/A last N/A get N/A self fields N/A N/A headers get N/A Headers LAST_NAME N/A N/A N/A N/A N/A first last strip N/A N/A get N/A N/A items index N/A N/A N/A 
    Safe indexing of list (avoids IndexError and subsequent try-except block).
    Also strips leading and trailing whitespace and leading and trailing quotes.
     N/A N/A index None N/A N/A N/A N/A N/A index N/A len items N/A index 0 N/A N/A N/A N/A Tried to access an invalid index in the line! Index: {0} | FieldCount: {1} format index N/A len items N/A N/A N/A N/A N/A N/A N/A items N/A index strip replace QUOTE N/A report_progress N/A N/A sequence N/A N/A N/A N/A N/A sequence 1000 N/A N/A sequence N/A AddressResponse N/A object N/A N/A 
    The AddressResponse serves to convert the JSON response from the
    LiveAddress API to the tab-delimited format of the output file.
    Each instance of this class corresponds directly to a record in
    the output file.
     hash_input N/A N/A self N/A N/A N/A 
        The value returned is hashed and used to determine duplicate
        addresses across the entire list/file. These are the values we've
        used for some time to de-duplicate. Feel free to modify this method
        if you have a more appropriate implementation for your use case.
         N/A N/A N/A {0}/{1}/{2}/{3}/{4}/{5} format N/A self delivery_line_1 N/A self delivery_line_2 N/A self city_name N/A self state_abbreviation N/A N/A self zipcode N/A self plus4_code N/A self urbanization N/A include_input N/A N/A self input_record N/A N/A N/A 
        Keeps track of all input fields as they are included in the output file.
         N/A N/A self sequence N/A input_record sequence N/A N/A self input input_record N/A include_output N/A N/A self structure N/A N/A N/A 
        Logic to convert JSON structure to a tab-delimited record.
         N/A analysis N/A N/A N/A structure get analysis N/A N/A component N/A N/A N/A structure get components N/A N/A metadata N/A N/A N/A structure get metadata N/A N/A N/A self input_id N/A N/A N/A structure get input_id N/A N/A self input_index N/A N/A N/A structure get input_index N/A N/A self candidate_index N/A N/A N/A structure get candidate_index N/A N/A self addressee N/A N/A N/A structure get addressee N/A N/A self delivery_line_1 N/A N/A N/A structure get delivery_line_1 N/A N/A self delivery_line_2 N/A N/A N/A structure get delivery_line_2 N/A N/A self last_line N/A N/A N/A structure get last_line N/A N/A self delivery_point_barcode N/A N/A N/A structure get delivery_point_barcode N/A N/A self urbanization N/A N/A N/A component get urbanization N/A N/A self primary_number N/A N/A N/A component get primary_number N/A N/A self street_name N/A N/A N/A component get street_name N/A N/A self street_predirection N/A N/A N/A component get street_predirection N/A N/A self street_postdirection N/A N/A N/A component get street_postdirection N/A N/A self street_suffix N/A N/A N/A component get street_suffix N/A N/A self secondary_number N/A N/A N/A component get secondary_number N/A N/A self secondary_designator N/A N/A N/A component get secondary_designator N/A N/A self extra_secondary_number N/A N/A N/A component get extra_secondary_number N/A N/A self extra_secondary_designator N/A N/A N/A component get extra_secondary_designator N/A N/A self pmb_designator N/A N/A N/A component get pmb_designator N/A N/A self pmb_number N/A N/A N/A component get pmb_number N/A N/A self city_name N/A N/A N/A component get city_name N/A N/A self default_city_name N/A N/A N/A component get default_city_name N/A N/A self state_abbreviation N/A N/A N/A component get state_abbreviation N/A N/A self zipcode N/A N/A N/A component get zipcode N/A N/A self plus4_code N/A N/A N/A component get plus4_code N/A N/A self delivery_point N/A N/A N/A component get delivery_point N/A N/A self delivery_point_check_digit N/A N/A N/A component get delivery_point_check_digit N/A N/A self record_type N/A N/A N/A metadata get record_type N/A N/A self zip_type N/A N/A N/A metadata get zip_type N/A N/A self county_fips N/A N/A N/A metadata get county_fips N/A N/A self county_name N/A N/A N/A metadata get county_name N/A N/A self carrier_route N/A N/A N/A metadata get carrier_route N/A N/A self congressional_district N/A N/A N/A metadata get congressional_district N/A N/A self building_default_indicator N/A N/A N/A metadata get building_default_indicator N/A N/A self rdi N/A N/A N/A metadata get rdi N/A N/A self elot_sequence N/A N/A N/A metadata get elot_sequence N/A N/A self elot_sort N/A N/A N/A metadata get elot_sort N/A N/A self latitude N/A N/A N/A metadata get latitude N/A N/A self longitude N/A N/A N/A metadata get longitude N/A N/A self precision N/A N/A N/A metadata get precision N/A N/A self time_zone N/A N/A N/A metadata get time_zone N/A N/A self utc_offset N/A N/A N/A metadata get utc_offset N/A N/A self dst N/A N/A N/A metadata get dst N/A N/A self dpv_match_code N/A N/A N/A analysis get dpv_match_code N/A N/A self dpv_footnotes N/A N/A N/A analysis get dpv_footnotes N/A N/A self dpv_cmra N/A N/A N/A analysis get dpv_cmra N/A N/A self dpv_vacant N/A N/A N/A analysis get dpv_vacant N/A N/A self active N/A N/A N/A analysis get active N/A N/A self ews_match N/A N/A N/A analysis get ews_match N/A N/A self footnotes N/A N/A N/A analysis get footnotes N/A N/A self lacslink_code N/A N/A N/A analysis get lacslink_code N/A N/A self lacslink_indicator N/A N/A N/A analysis get lacslink_indicator N/A N/A self suitelink_match N/A N/A N/A analysis get suitelink_match N/A _to_dict N/A N/A self N/A N/A N/A N/A sequence duplicate input_id input_index candidate_index addressee delivery_line_1 delivery_line_2 last_line delivery_point_barcode urbanization primary_number street_name street_predirection street_postdirection street_suffix secondary_number secondary_designator extra_secondary_number extra_secondary_designator pmb_designator pmb_number city_name default_city_name state_abbreviation zipcode plus4_code delivery_point delivery_point_check_digit record_type zip_type county_fips county_name carrier_route congressional_district building_default_indicator rdi elot_sequence elot_sort latitude longitude precision time_zone utc_offset dst dpv_match_code dpv_footnotes dpv_cmra dpv_vacant active ews_match footnotes lacslink_code lacslink_indicator suitelink_match N/A self sequence N/A self duplicate N/A self input_id N/A self input_index N/A self candidate_index N/A self addressee N/A self delivery_line_1 N/A self delivery_line_2 N/A self last_line N/A self delivery_point_barcode N/A self urbanization N/A self primary_number N/A self street_name N/A self street_predirection N/A self street_postdirection N/A self street_suffix N/A self secondary_number N/A self secondary_designator N/A self extra_secondary_number N/A self extra_secondary_designator N/A self pmb_designator N/A self pmb_number N/A self city_name N/A self default_city_name N/A self state_abbreviation N/A self zipcode N/A self plus4_code N/A self delivery_point N/A self delivery_point_check_digit N/A self record_type N/A self zip_type N/A self county_fips N/A self county_name N/A self carrier_route N/A self congressional_district N/A self building_default_indicator N/A self rdi N/A self elot_sequence N/A self elot_sort N/A self latitude N/A self longitude N/A self precision N/A self time_zone N/A self utc_offset N/A self dst N/A self dpv_match_code N/A self dpv_footnotes N/A self dpv_cmra N/A self dpv_vacant N/A self active N/A self ews_match N/A self footnotes N/A self lacslink_code N/A self lacslink_indicator N/A self suitelink_match N/A __unicode__ N/A N/A self N/A N/A N/A 
        Turns self into a tab-delimited unicode string for the output file.''
         N/A output N/A N/A N/A Templates row format N/A N/A self _to_dict N/A with_input N/A N/A output format all_input_fields N/A unicode N/A self input N/A with_input N/A __init__ N/A N/A self N/A N/A N/A N/A self input None N/A N/A self sequence -1 N/A N/A self duplicate N/A N/A self input_id N/A N/A self input_index N/A N/A self candidate_index N/A N/A self addressee N/A N/A self delivery_line_1 N/A N/A self delivery_line_2 N/A N/A self last_line N/A N/A self delivery_point_barcode N/A N/A self urbanization N/A N/A self primary_number N/A N/A self street_name N/A N/A self street_predirection N/A N/A self street_postdirection N/A N/A self street_suffix N/A N/A self secondary_number N/A N/A self secondary_designator N/A N/A self extra_secondary_number N/A N/A self extra_secondary_designator N/A N/A self pmb_designator N/A N/A self pmb_number N/A N/A self city_name N/A N/A self default_city_name N/A N/A self state_abbreviation N/A N/A self zipcode N/A N/A self plus4_code N/A N/A self delivery_point N/A N/A self delivery_point_check_digit N/A N/A self record_type N/A N/A self zip_type N/A N/A self county_fips N/A N/A self county_name N/A N/A self carrier_route N/A N/A self congressional_district N/A N/A self building_default_indicator N/A N/A self rdi N/A N/A self elot_sequence N/A N/A self elot_sort N/A N/A self latitude N/A N/A self longitude N/A N/A self precision N/A N/A self time_zone N/A N/A self utc_offset N/A N/A self dst N/A N/A self dpv_match_code N/A N/A self dpv_footnotes N/A N/A self dpv_cmra N/A N/A self dpv_vacant N/A N/A self active N/A N/A self ews_match N/A N/A self footnotes N/A N/A self lacslink_code N/A N/A self lacslink_indicator N/A N/A self suitelink_match N/A N/A Headers N/A object N/A N/A ID N/A N/A Id lower N/A FULL_NAME N/A N/A FullName lower N/A FIRST_NAME N/A N/A FirstName lower N/A LAST_NAME N/A N/A LastName lower N/A ORGANIZATION N/A N/A OrganizationName lower N/A STREET1 N/A N/A Street1 lower N/A STREET2 N/A N/A Street2 lower N/A SECONDARY N/A N/A Secondary lower N/A CITY N/A N/A City lower N/A STATE N/A N/A State lower N/A ZIP_CODE N/A N/A ZipCode lower N/A LAST_LINE N/A N/A CityStateZipCode lower N/A PLUS4CODE N/A N/A Plus4Code lower N/A URBANIZATION N/A N/A Urbanization lower field_keys N/A N/A cls N/A N/A N/A N/A N/A cls ID N/A cls FULL_NAME N/A cls FIRST_NAME N/A cls LAST_NAME N/A cls ORGANIZATION N/A cls STREET1 N/A cls STREET2 N/A cls SECONDARY N/A cls CITY N/A cls STATE N/A cls ZIP_CODE N/A cls LAST_LINE N/A cls PLUS4CODE N/A cls URBANIZATION N/A classmethod N/A HTTP N/A object N/A N/A api_url https://api.smartystreets.com/street-address N/A request_headers N/A Content-Type x-include-invalid application/json true N/A Templates N/A object N/A N/A header N/A N/A N/A TAB join N/A sequence duplicate input_id input_index addressee delivery_line_1 delivery_line_2 last_line delivery_point_barcode component-urbanization component-primary_number component-street_name component-street_predirection component-street_postdirection component-street_suffix component-secondary_number component-secondary_designator component-extra_secondary_number component-extra_secondary_designator component-pmb_designator component-pmb_number component-city_name component-default_city_name component-state_abbreviation component-zipcode component-plus4_code component-delivery_point component-delivery_point_check_digit metadata-record_type metadata-zip_type metadata-county_fips metadata-county_name metadata-carrier_route metadata-congressional_district metadata-building_default_indicator metadata-rdi metadata-elot_sequence metadata-elot_sort metadata-latitude metadata-longitude metadata-precision metadata-time_zone metadata-utc_offset metadata-dst analysis-dpv_match_code analysis-dpv_footnotes analysis-dpv_cmra analysis-dpv_vacant analysis-active analysis-ews_match analysis-footnotes analysis-lacslink_code analysis-lacslink_indicator analysis-suitelink_match N/A row N/A N/A N/A TAB join N/A {sequence} {duplicate} {input_id} {input_index} {addressee} {delivery_line_1} {delivery_line_2} {last_line} {delivery_point_barcode} {urbanization} {primary_number} {street_name} {street_predirection} {street_postdirection} {street_suffix} {secondary_number} {secondary_designator} {extra_secondary_number} {extra_secondary_designator} {pmb_designator} {pmb_number} {city_name} {default_city_name} {state_abbreviation} {zipcode} {plus4_code} {delivery_point} {delivery_point_check_digit} {record_type} {zip_type} {county_fips} {county_name} {carrier_route} {congressional_district} {building_default_indicator} {rdi} {elot_sequence} {elot_sort} {latitude} {longitude} {precision} {time_zone} {utc_offset} {dst} {dpv_match_code} {dpv_footnotes} {dpv_cmra} {dpv_vacant} {active} {ews_match} {footnotes} {lacslink_code} {lacslink_indicator} {suitelink_match} N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument input N/A N/A N/A parser add_argument output N/A args N/A N/A parser parse_args N/A N/A main N/A args input N/A args output