Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier State Entries #12

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,4 +42,5 @@
# 'bycbsa/',
# 'bybox/',
"listfunctions",
]
"textvariables",
]
7 changes: 7 additions & 0 deletions docs/pyaqsapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,10 @@ pyaqsapi.setupfunctions module
:undoc-members:
:show-inheritance:

pyaqsapi.textvariables module
------------------------------

.. automodule:: pyaqsapi.textvariables
:members:
:undoc-members:
:show-inheritance:
8 changes: 8 additions & 0 deletions pyaqsapi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ pyaqsapi.setupfunctions module
:undoc-members:
:show-inheritance:

pyaqsapi.textvariables module
------------------------------

.. automodule:: pyaqsapi.textvariables
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

Expand Down
12 changes: 11 additions & 1 deletion pyaqsapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,4 +41,5 @@
# 'bycbsa/',
# 'bybox/',
"listfunctions",
]
"textvariables",
]
115 changes: 115 additions & 0 deletions pyaqsapi/textvariables.py
Original file line number Diff line number Diff line change
@@ -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'
AMDeitsch marked this conversation as resolved.
Show resolved Hide resolved