├── .gitignore ├── 02_print.py ├── 02_strings.py ├── 03_01_input.py ├── 03_02_input.py ├── 03_03_tax.py ├── 03_04_tax.py ├── 03_05_while_tax.py ├── 03_06_def.py ├── 03_07_def_default.py ├── 03_08_math.py ├── 03_09_error.py ├── 03_10_import.py ├── 04_01_download_length.py ├── 04_02_download_no_length.py ├── 04_03_imports.py ├── 04_04_main.py ├── 04_05_full_main.py ├── 04_06_extract.py ├── 05_01_le_meta_dados.py ├── 05_02_le_meta_dados.py ├── 05_03_le_meta_dados.py ├── 05_04_le_meta_dados.py ├── 06_01_classes_decl.py ├── 06_02_classes_docstrings.py ├── 06_03_classes_metodo_add_col.py ├── 06_04_classes_relacoes.py ├── 06_05_classes_pk.py ├── 06_06_classes_heranca.py ├── 06_07_classes_sobrescrita.py ├── 06_08_classes_isinstance.py ├── 06_09_classes_atributo_classe.py ├── 06_10_classes_metodo_estatico.py ├── 06_11_classes_metodo_classe.py ├── 06_12_classes_prop_get.py ├── 06_13_classes_property.py ├── 06_14_classes_heranca_mult.py ├── 07_01_unzip.py ├── 07_02_try_unzip.py ├── 07_03_try_unzip_excepts.py ├── 07_04_unzip_oserror.py ├── 07_05_unzip_errors.py ├── 07_06_unzip_try_else.py ├── 07_07_finally.py ├── 07_08_raise.py ├── 07_09_raise_customexcept.py ├── 07_10_reraise.py ├── 07_11_download.py ├── 08_01_column.py ├── 08_02_first_test.py ├── 08_03_test.py ├── 08_04_loader.py ├── 08_05_loader_2.py ├── 08_06_custom_output.py ├── 08_07_exceptions.py ├── 08_08_setup.py ├── 08_09_error.py ├── 08_10_cleanup.py ├── 08_11_download_mock.py ├── 08_12_download_mock2.py ├── 09_01_domain_module.py ├── 09_02_test_domain.py ├── 09_03_copa__init__.py ├── 10_01_read.py ├── 10_02_read_with.py ├── 10_03_read_col.py ├── 11_01_grouped_count.py ├── 11_02_named_tuple.py ├── 11_03_per_year.py ├── 11_04_short_time_contracts.py ├── 11_05_total_date.py ├── 11_06_total_spent.py ├── 12_01_callable.py ├── 12_02_total.py ├── 13_01_sum.py ├── 13_02_dict_comp.py ├── 13_03_bench.py ├── 13_04_decorator_class.py ├── README.md ├── copa_transparente ├── __init__.py └── domain.py ├── data ├── README.md ├── data │ ├── Empreendimento.csv │ ├── ExecucaoFinanceira.csv │ ├── Instituicao.csv │ └── Licitacao.csv └── meta-data │ ├── Empreendimento.txt │ ├── ExecucaoFinanceira.txt │ ├── Instituicao.txt │ └── Licitacao.txt ├── domain.py ├── test_column.py └── test_domain.py /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /02_print.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/02_print.py -------------------------------------------------------------------------------- /02_strings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/02_strings.py -------------------------------------------------------------------------------- /03_01_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_01_input.py -------------------------------------------------------------------------------- /03_02_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_02_input.py -------------------------------------------------------------------------------- /03_03_tax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_03_tax.py -------------------------------------------------------------------------------- /03_04_tax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_04_tax.py -------------------------------------------------------------------------------- /03_05_while_tax.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_05_while_tax.py -------------------------------------------------------------------------------- /03_06_def.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_06_def.py -------------------------------------------------------------------------------- /03_07_def_default.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_07_def_default.py -------------------------------------------------------------------------------- /03_08_math.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_08_math.py -------------------------------------------------------------------------------- /03_09_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_09_error.py -------------------------------------------------------------------------------- /03_10_import.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/03_10_import.py -------------------------------------------------------------------------------- /04_01_download_length.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/04_01_download_length.py -------------------------------------------------------------------------------- /04_02_download_no_length.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/04_02_download_no_length.py -------------------------------------------------------------------------------- /04_03_imports.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/04_03_imports.py -------------------------------------------------------------------------------- /04_04_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/04_04_main.py -------------------------------------------------------------------------------- /04_05_full_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/04_05_full_main.py -------------------------------------------------------------------------------- /04_06_extract.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/04_06_extract.py -------------------------------------------------------------------------------- /05_01_le_meta_dados.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/05_01_le_meta_dados.py -------------------------------------------------------------------------------- /05_02_le_meta_dados.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/05_02_le_meta_dados.py -------------------------------------------------------------------------------- /05_03_le_meta_dados.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/05_03_le_meta_dados.py -------------------------------------------------------------------------------- /05_04_le_meta_dados.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/05_04_le_meta_dados.py -------------------------------------------------------------------------------- /06_01_classes_decl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_01_classes_decl.py -------------------------------------------------------------------------------- /06_02_classes_docstrings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_02_classes_docstrings.py -------------------------------------------------------------------------------- /06_03_classes_metodo_add_col.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_03_classes_metodo_add_col.py -------------------------------------------------------------------------------- /06_04_classes_relacoes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_04_classes_relacoes.py -------------------------------------------------------------------------------- /06_05_classes_pk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_05_classes_pk.py -------------------------------------------------------------------------------- /06_06_classes_heranca.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_06_classes_heranca.py -------------------------------------------------------------------------------- /06_07_classes_sobrescrita.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_07_classes_sobrescrita.py -------------------------------------------------------------------------------- /06_08_classes_isinstance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_08_classes_isinstance.py -------------------------------------------------------------------------------- /06_09_classes_atributo_classe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_09_classes_atributo_classe.py -------------------------------------------------------------------------------- /06_10_classes_metodo_estatico.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_10_classes_metodo_estatico.py -------------------------------------------------------------------------------- /06_11_classes_metodo_classe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_11_classes_metodo_classe.py -------------------------------------------------------------------------------- /06_12_classes_prop_get.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_12_classes_prop_get.py -------------------------------------------------------------------------------- /06_13_classes_property.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_13_classes_property.py -------------------------------------------------------------------------------- /06_14_classes_heranca_mult.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/06_14_classes_heranca_mult.py -------------------------------------------------------------------------------- /07_01_unzip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_01_unzip.py -------------------------------------------------------------------------------- /07_02_try_unzip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_02_try_unzip.py -------------------------------------------------------------------------------- /07_03_try_unzip_excepts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_03_try_unzip_excepts.py -------------------------------------------------------------------------------- /07_04_unzip_oserror.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_04_unzip_oserror.py -------------------------------------------------------------------------------- /07_05_unzip_errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_05_unzip_errors.py -------------------------------------------------------------------------------- /07_06_unzip_try_else.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_06_unzip_try_else.py -------------------------------------------------------------------------------- /07_07_finally.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_07_finally.py -------------------------------------------------------------------------------- /07_08_raise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_08_raise.py -------------------------------------------------------------------------------- /07_09_raise_customexcept.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_09_raise_customexcept.py -------------------------------------------------------------------------------- /07_10_reraise.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_10_reraise.py -------------------------------------------------------------------------------- /07_11_download.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/07_11_download.py -------------------------------------------------------------------------------- /08_01_column.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_01_column.py -------------------------------------------------------------------------------- /08_02_first_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_02_first_test.py -------------------------------------------------------------------------------- /08_03_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_03_test.py -------------------------------------------------------------------------------- /08_04_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_04_loader.py -------------------------------------------------------------------------------- /08_05_loader_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_05_loader_2.py -------------------------------------------------------------------------------- /08_06_custom_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_06_custom_output.py -------------------------------------------------------------------------------- /08_07_exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_07_exceptions.py -------------------------------------------------------------------------------- /08_08_setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_08_setup.py -------------------------------------------------------------------------------- /08_09_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_09_error.py -------------------------------------------------------------------------------- /08_10_cleanup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_10_cleanup.py -------------------------------------------------------------------------------- /08_11_download_mock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_11_download_mock.py -------------------------------------------------------------------------------- /08_12_download_mock2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/08_12_download_mock2.py -------------------------------------------------------------------------------- /09_01_domain_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/09_01_domain_module.py -------------------------------------------------------------------------------- /09_02_test_domain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/09_02_test_domain.py -------------------------------------------------------------------------------- /09_03_copa__init__.py: -------------------------------------------------------------------------------- 1 | from domain import * 2 | 3 | __all__ = ['DataTable'] 4 | -------------------------------------------------------------------------------- /10_01_read.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/10_01_read.py -------------------------------------------------------------------------------- /10_02_read_with.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/10_02_read_with.py -------------------------------------------------------------------------------- /10_03_read_col.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/10_03_read_col.py -------------------------------------------------------------------------------- /11_01_grouped_count.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/11_01_grouped_count.py -------------------------------------------------------------------------------- /11_02_named_tuple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/11_02_named_tuple.py -------------------------------------------------------------------------------- /11_03_per_year.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/11_03_per_year.py -------------------------------------------------------------------------------- /11_04_short_time_contracts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/11_04_short_time_contracts.py -------------------------------------------------------------------------------- /11_05_total_date.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/11_05_total_date.py -------------------------------------------------------------------------------- /11_06_total_spent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/11_06_total_spent.py -------------------------------------------------------------------------------- /12_01_callable.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/12_01_callable.py -------------------------------------------------------------------------------- /12_02_total.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/12_02_total.py -------------------------------------------------------------------------------- /13_01_sum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/13_01_sum.py -------------------------------------------------------------------------------- /13_02_dict_comp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/13_02_dict_comp.py -------------------------------------------------------------------------------- /13_03_bench.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/13_03_bench.py -------------------------------------------------------------------------------- /13_04_decorator_class.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/13_04_decorator_class.py -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/README.md -------------------------------------------------------------------------------- /copa_transparente/__init__.py: -------------------------------------------------------------------------------- 1 | from domain import * 2 | 3 | __all__ = ['DataTable'] 4 | -------------------------------------------------------------------------------- /copa_transparente/domain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/copa_transparente/domain.py -------------------------------------------------------------------------------- /data/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/README.md -------------------------------------------------------------------------------- /data/data/Empreendimento.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/data/Empreendimento.csv -------------------------------------------------------------------------------- /data/data/ExecucaoFinanceira.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/data/ExecucaoFinanceira.csv -------------------------------------------------------------------------------- /data/data/Instituicao.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/data/Instituicao.csv -------------------------------------------------------------------------------- /data/data/Licitacao.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/data/Licitacao.csv -------------------------------------------------------------------------------- /data/meta-data/Empreendimento.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/meta-data/Empreendimento.txt -------------------------------------------------------------------------------- /data/meta-data/ExecucaoFinanceira.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/meta-data/ExecucaoFinanceira.txt -------------------------------------------------------------------------------- /data/meta-data/Instituicao.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/meta-data/Instituicao.txt -------------------------------------------------------------------------------- /data/meta-data/Licitacao.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/data/meta-data/Licitacao.txt -------------------------------------------------------------------------------- /domain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/domain.py -------------------------------------------------------------------------------- /test_column.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/test_column.py -------------------------------------------------------------------------------- /test_domain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/felipecruz/exemplos/HEAD/test_domain.py --------------------------------------------------------------------------------