diff --git a/__init__.py b/__init__.py index 9044156..c8dfcb4 100644 --- a/__init__.py +++ b/__init__.py @@ -10,6 +10,16 @@ import pyaqsapi.bypqao.bypqao as bypqao import pyaqsapi.bycbsa.bycbsa as bycbsa +from .textvariables import (Alabama, AL, Alaska, AK, Arizona, AZ, Arkansas, AR, California, CA, Colorado, CO, Connecticut, CT, + Delaware, DE, DistrictOfColumbia, DC, Florida, FL, Georgia, GA, Hawaii, HI, Idaho, ID, Illinois, IL, Indiana, IN, + Iowa, IA, Kansas, KS, Kentucky, KY, Louisiana, LA, Maine, ME, Maryland, MD, Massachusetts, MA, Michigan, MI, Minnesota, MN, + Mississippi, MS, Missouri, MO, Montana, MT, Nebraska, NE, Nevada, NV, NewHampshire, NH, NewJersey, NJ, NewMexico, NM, + NewYork, NY, NorthCarolina, NC, NorthDakota, ND, Ohio, OH, Oklahoma, OK, Oregon, OR, Pennsylvania, PA, RhodeIsland, RI, + SouthCarolina, SC, SouthDakota, SD, Tennessee, TN, Texas, TX, Utah, UT, Vermont, VT, Virginia, VA, Washington, WA, + WestVirginia, WV, Wisconsin, WI, Wyoming, WY, Guam, GU, PuertoRico, PR, VirginIslands, VI, Mexico, MX, Canada, CAN) + + + # from pyaqsapi.bysite import bysite as bysite # from pyaqsapi.bycounty import bycounty as bycounty @@ -32,4 +42,5 @@ # 'bycbsa/', # 'bybox/', "listfunctions", -] + "textvariables", +] \ No newline at end of file diff --git a/docs/pyaqsapi.rst b/docs/pyaqsapi.rst index 05090ed..da9d080 100644 --- a/docs/pyaqsapi.rst +++ b/docs/pyaqsapi.rst @@ -92,3 +92,10 @@ pyaqsapi.setupfunctions module :undoc-members: :show-inheritance: +pyaqsapi.textvariables module +------------------------------ + +.. automodule:: pyaqsapi.textvariables + :members: + :undoc-members: + :show-inheritance: \ No newline at end of file diff --git a/pyaqsapi.rst b/pyaqsapi.rst index 22741b9..e176d61 100644 --- a/pyaqsapi.rst +++ b/pyaqsapi.rst @@ -100,6 +100,14 @@ pyaqsapi.setupfunctions module :undoc-members: :show-inheritance: +pyaqsapi.textvariables module +------------------------------ + +.. automodule:: pyaqsapi.textvariables + :members: + :undoc-members: + :show-inheritance: + Module contents --------------- diff --git a/pyaqsapi/__init__.py b/pyaqsapi/__init__.py index 9044156..33570e9 100644 --- a/pyaqsapi/__init__.py +++ b/pyaqsapi/__init__.py @@ -10,6 +10,15 @@ import pyaqsapi.bypqao.bypqao as bypqao import pyaqsapi.bycbsa.bycbsa as bycbsa +from .textvariables import (Alabama, AL, Alaska, AK, Arizona, AZ, Arkansas, AR, California, CA, Colorado, CO, Connecticut, CT, + Delaware, DE, DistrictOfColumbia, DC, Florida, FL, Georgia, GA, Hawaii, HI, Idaho, ID, Illinois, IL, Indiana, IN, + Iowa, IA, Kansas, KS, Kentucky, KY, Louisiana, LA, Maine, ME, Maryland, MD, Massachusetts, MA, Michigan, MI, Minnesota, MN, + Mississippi, MS, Missouri, MO, Montana, MT, Nebraska, NE, Nevada, NV, NewHampshire, NH, NewJersey, NJ, NewMexico, NM, + NewYork, NY, NorthCarolina, NC, NorthDakota, ND, Ohio, OH, Oklahoma, OK, Oregon, OR, Pennsylvania, PA, RhodeIsland, RI, + SouthCarolina, SC, SouthDakota, SD, Tennessee, TN, Texas, TX, Utah, UT, Vermont, VT, Virginia, VA, Washington, WA, + WestVirginia, WV, Wisconsin, WI, Wyoming, WY, Guam, GU, PuertoRico, PR, VirginIslands, VI, Mexico, MX, Canada, CAN) + + # from pyaqsapi.bysite import bysite as bysite # from pyaqsapi.bycounty import bycounty as bycounty @@ -32,4 +41,5 @@ # 'bycbsa/', # 'bybox/', "listfunctions", -] + "textvariables", +] \ No newline at end of file diff --git a/pyaqsapi/textvariables.py b/pyaqsapi/textvariables.py new file mode 100644 index 0000000..6150ec4 --- /dev/null +++ b/pyaqsapi/textvariables.py @@ -0,0 +1,115 @@ +"""textvariables.py""" + +# Text strings to allow simpler input into `pyaqsapi.bystate()` +Alabama = '01' +AL = '01' +Alaska = '02' +AK = '02' +Arizona = '04' +AZ = '04' +Arkansas = '05' +AR = '05' +California = '06' +CA = '06' +Colorado = '08' +CO = '08' +Connecticut = '09' +CT = '09' +Delaware = '10' +DE = '10' +DistrictOfColumbia = '11' +DC = '11' +Florida = '12' +FL = '12' +Georgia = '13' +GA = '13' +Hawaii = '15' +HI = '15' +Idaho = '16' +ID = '16' +Illinois = '17' +IL = '17' +Indiana = '18' +IN = '18' +Iowa = '19' +IA = '19' +Kansas = '20' +KS = '20' +Kentucky = '21' +KY = '21' +Louisiana = '22' +LA = '22' +Maine = '23' +ME = '23' +Maryland = '24' +MD = '24' +Massachusetts = '25' +MA = '25' +Michigan = '26' +MI = '26' +Minnesota = '27' +MN = '27' +Mississippi = '28' +MS = '28' +Missouri = '29' +MO = '29' +Montana = '30' +MT = '30' +Nebraska = '31' +NE = '31' +Nevada = '32' +NV = '32' +NewHampshire = '33' +NH = '33' +NewJersey = '34' +NJ = '34' +NewMexico = '35' +NM = '35' +NewYork = '36' +NY = '36' +NorthCarolina = '37' +NC = '37' +NorthDakota = '38' +ND = '38' +Ohio = '39' +OH = '39' +Oklahoma = '40' +OK = '40' +Oregon = '41' +OR = '41' +Pennsylvania = '42' +PA = '42' +RhodeIsland = '44' +RI = '44' +SouthCarolina = '45' +SC = '45' +SouthDakota = '46' +SD = '46' +Tennessee = '47' +TN = '47' +Texas = '48' +TX = '48' +Utah = '49' +UT = '49' +Vermont = '50' +VT = '50' +Virginia = '51' +VA = '51' +Washington = '53' +WA = '53' +WestVirginia = '54' +WV = '54' +Wisconsin = '55' +WI = '55' +Wyoming = '56' +WY = '56' +Guam = '66' +GU = '66' +PuertoRico = '72' +PR = '72' +VirginIslands = '78' +VI = '78' +Mexico = '80' +MX = '80' +Canada = 'CC' +CAN = 'CC'