-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9e6ca0
commit 6bc242c
Showing
34 changed files
with
2,278 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[run] | ||
source = pyFBIG/ | ||
source = tests/ | ||
omit = __init__.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
from ac import AC | ||
from al import AL | ||
from am import AM | ||
from ap import AP | ||
from ba import BA | ||
from ce import CE | ||
from df import DF | ||
from es import ES | ||
from go import GO | ||
from ma import MA | ||
from mg import MG | ||
from ms import MS | ||
from mt import MT | ||
from pa import PA | ||
from pb import PB | ||
from pe import PE | ||
from pi import PI | ||
from pr import PR | ||
from rj import RJ | ||
from rn import RN | ||
from ro import RO | ||
from rr import RR | ||
from rs import RS | ||
from sc import SC | ||
from se import SE | ||
from sp import SP | ||
from to import TO | ||
|
||
""" | ||
states_name = { | ||
'AC': { | ||
'name': "Acre", | ||
'acronym': 'AC', | ||
'state_class': AC() | ||
}, | ||
'AL':{ | ||
'name': "Alagoas", | ||
'acronym': 'AL', | ||
'state_class': AL(), | ||
}, | ||
"Amapá", | ||
"Amazonas", | ||
"Bahia", | ||
"Ceará", | ||
"Distrito Federal", | ||
"Espírito Santo", | ||
"Goiás", | ||
"Maranhão", | ||
"Mato Grosso", | ||
"Mato Grosso do Sul", | ||
"Minas Gerais", | ||
"Pará", | ||
"Paraíba", | ||
"Paraná", | ||
"Pernambuco", | ||
"Piauí", | ||
"Rio de Janeiro", | ||
"Rio Grande do Norte", | ||
"Rio Grande do Sul", | ||
"Rondônia", | ||
"Roraima", | ||
"Santa Catarina", | ||
"São Paulo", | ||
"Sergipe", | ||
"Tocantins" | ||
} | ||
""" | ||
|
||
class BRStates: | ||
def __init__(self): | ||
# self.states_name = states_name | ||
self.states = [AC, AM, AP, BA, CE, DF, ES, GO, MA, MT, MS, MG, PA, PB, PR, PE] | ||
|
||
|
||
if __name__ == '__main__': | ||
br = BRStates() | ||
# print(br.states_name) | ||
for i in BRStates().states: | ||
if i().cities: | ||
print(i, i().cities) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
class AC: | ||
def __init__(self): | ||
self.cities = [ | ||
"Rio Branco", | ||
"Cruzeiro do Sul", | ||
"Sena Madureira", | ||
"Tarauacá", | ||
"Feijó", | ||
"Senador Guiomard", | ||
"Xapuri", | ||
"Porto Acre", | ||
"Mâncio Lima", | ||
"Jordão", | ||
"Capixaba", | ||
"Manoel Urbano", | ||
"Assis Brasil", | ||
"Plácido de Castro", | ||
"Rodrigues Alves" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
class AL: | ||
def __init__(self): | ||
self.cities: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
|
||
|
||
class AM: | ||
def __init__(self): | ||
self.cities = [ | ||
"Manaus", | ||
"Parintins", | ||
"Itacoatiara", | ||
"Manacapuru", | ||
"Coari", | ||
"Tefé", | ||
"Tabatinga", | ||
"Humaitá", | ||
"Maués", | ||
"Borba", | ||
"Autazes", | ||
"São Gabriel da Cachoeira", | ||
"Eirunepé", | ||
"Barcelos", | ||
"Benjamin Constant", | ||
"Boca do Acre", | ||
"Careiro", | ||
"Iranduba", | ||
"Santo Antônio do Içá", | ||
"São Paulo de Olivença", | ||
"Tabatinga", | ||
"Rio Preto da Eva", | ||
"Manicoré", | ||
"Presidente Figueiredo", | ||
"Novo Aripuanã", | ||
"Jutaí", | ||
"Tonantins", | ||
"Fonte Boa", | ||
"Lábrea", | ||
"Nova Olinda do Norte", | ||
"Beruri", | ||
"Uarini", | ||
"Anamã", | ||
"Urucurituba", | ||
"Novo Airão", | ||
"Silves", | ||
"Tapauá", | ||
"Careiro da Várzea", | ||
"Urucará", | ||
"Codajás", | ||
"Atalaia do Norte", | ||
"Pauini", | ||
"Itapiranga", | ||
"Amaturá", | ||
"Alvarães", | ||
"Manaquiri", | ||
"Santa Isabel do Rio Negro", | ||
"Canutama", | ||
"Tefé", | ||
"Japurá", | ||
"Apui", | ||
"Carauari", | ||
"Barreirinha", | ||
"Novo Airão", | ||
"Envira", | ||
"Juruá", | ||
"Juruá", | ||
"Itamarati", | ||
"Uarini", | ||
"Eirunepé", | ||
"Fonte Boa", | ||
"Guajará", | ||
"Humaitá", | ||
"Ipixuna", | ||
"Iranduba", | ||
"Itapiranga", | ||
"Japurá", | ||
"Juruá", | ||
"Jutaí", | ||
"Lábrea", | ||
"Manacapuru", | ||
"Manaquiri", | ||
"Manaus", | ||
"Manicoré", | ||
"Maraã", | ||
"Maués", | ||
"Nhamundá", | ||
"Nova Olinda do Norte", | ||
"Novo Airão", | ||
"Novo Aripuanã", | ||
"Parintins", | ||
"Pauini", | ||
"Presidente Figueiredo", | ||
"Rio Preto da Eva", | ||
"Santa Isabel do Rio Negro", | ||
"Santo Antônio do Içá", | ||
"São Gabriel da Cachoeira", | ||
"São Paulo de Olivença", | ||
"São Sebastião do Uatumã", | ||
"Silves", | ||
"Tabatinga", | ||
"Tapauá", | ||
"Tefé", | ||
"Tonantins", | ||
"Uarini", | ||
"Urucará", | ||
"Urucurituba" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
|
||
class AP: | ||
def __init__(self): | ||
self.cities = [ | ||
"Macapá", | ||
"Santana", | ||
"Laranjal do Jari", | ||
"Oiapoque", | ||
"Mazagão", | ||
"Tartarugalzinho", | ||
"Pedra Branca do Amapari", | ||
"Porto Grande", | ||
"Amapá", | ||
"Cutias", | ||
"Ferreira Gomes", | ||
"Calçoene", | ||
"Pracuúba", | ||
"Serra do Navio", | ||
"Itaubal", | ||
"Vitória do Jari" | ||
] |
Oops, something went wrong.