├── .gitignore ├── .vscode └── settings.json ├── 00_intro └── hello.py ├── 01_numericos └── tabuada.py ├── 02_textos ├── email_tmpl.txt ├── emails.txt └── interpolacao.py ├── 03_the_dicts └── cadastro_de_produto.py ├── 03_tuplas_listas ├── escola_v1_com_listas.py ├── escola_v2_com_sets.py └── escola_v3_com_dict.py ├── 04_input ├── infixcalc.log └── infixcalc.py ├── 05_filesystem ├── notes.py └── notes.txt ├── 06_errors └── errors.py ├── 07_algoritmo └── algoritmo.py ├── 07_logs └── logs.py ├── 08_repeticoes ├── post.txt ├── repete_com_for.py └── repete_com_while.py ├── 09_exercicios ├── alerta.py ├── numeros_pares.py ├── quartos.txt ├── repete_vogal.py ├── reserva.py └── reservas.txt ├── 09_smtp └── smtp.py ├── 10_funcao ├── anatomia_funcoes.py ├── composicao.py ├── coringas.py ├── funcoes.py ├── heron.py ├── lambdas.py ├── questions.py ├── valores_default.py └── valores_default_mutaveis.py ├── 11_escopos ├── contador.py ├── escopo.py ├── forcando_global.py └── non_local.py ├── 12_debug └── tembug.py ├── 13_poo ├── band.py ├── exercicio1.py ├── exercicio1_resolvido.py ├── exercicio1_resolvido_dataclass_rich.py ├── exercicio1_resolvido_dataclasses.py ├── funcional.py ├── instruments.py ├── match_turtle.py ├── oo.py ├── oo_v1.py ├── oo_v2_abstracao.py ├── oo_v3_heranca.py ├── oo_v4_abc.py ├── oo_v5_polimorfismo.py ├── oo_v6_encapsulamento.py ├── oo_v7_properties.py ├── oo_v8_protocolos.py ├── procedural.py └── requirements.txt ├── 14_modelagem ├── models.py ├── models_pydantic.py ├── requirements.txt ├── sqla_example.py ├── sqlite_example.py └── sqlmodel_example.py ├── 15_gui ├── kivy_example.py ├── requirements.txt ├── simplegui_example.py ├── tk_clock.py └── tk_example.py ├── 16_game ├── beers │ ├── 1.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ └── 5.png ├── game.py ├── player │ └── player.png ├── requirements.txt └── sound │ ├── olha_so.mp3 │ ├── sensacional.mp3 │ ├── vai.mp3 │ └── zika.mp3 ├── 17_tui ├── br-utf8.txt ├── colorize.py ├── grid.py ├── palavras.txt ├── processa_palavras.py ├── pylavras.py ├── requirements.txt └── trivia.py ├── 18_web ├── app.py ├── data.json ├── requirements.txt └── templates │ ├── index.html │ └── pessoas.html ├── 19_api ├── api.py ├── data.json └── requirements.txt └── docs ├── README.md ├── d1 ├── d1p01_intro.md ├── d1p02_programacao_linguagens.md ├── d1p03_plataforma_python.md ├── d1p04_instalacao_ambiente_terminais_editor.md ├── d1p05_repositorio_git_primeiro_script.md ├── d1p06_variaveis_de_ambiente.md ├── d1p07_tipos_de_instrucoes.md ├── d1p08_blocos_de_codigo.md └── d1p09_ambiente_virtual_ipython.md ├── d2 ├── d2p01_protocolos_e_tipos_de_dados_primarios.md ├── d2p02_float_bool_none.md ├── d2p03_textos.md ├── d2p04_formatacao_de_textos.md ├── d2p05_tipos_compostos-tuplas.md ├── d2p06_0_listas.md ├── d2p06_1_exercicio_listas_tuplas.md ├── d2p07_sets.md ├── d2p08_dicionario.md └── imgs │ ├── ascii.png │ ├── cartesiano.png │ ├── memoria.excalidraw │ ├── memoria.png │ ├── pasta_docs.jpg │ └── sets.jpg ├── d3 ├── computer.excalidraw ├── d3p01_stdout_stdin.md ├── d3p02_infix.md ├── d3p03_filesystem.md ├── d3p04_exercicio_notas.md ├── d3p05_exceptions.md ├── d3p06_logging.md ├── d3p07_allgoritmos.md ├── d3p08_condicionais_inline.md ├── d3p09_repeticoes.md ├── d3p10_exericios.md └── imgs │ ├── io.png │ └── precedencia.png ├── d4 ├── _email.py ├── d4p01_funcoes_uteis-builtin.md ├── d4p02_funcoes_stdlib_enviar_emails.md ├── d4p03_primeira_funcao_e_formula_math.md ├── d4p04_anatomia_de_funcoes.md ├── d4p05_escopos_argumentos_mutaveis_e_coringas.md ├── d4p06_lambdas.md ├── d4p07_recursao_e_retry.md ├── d4p08_debugging.md └── imgs │ ├── escopos.jpg │ ├── fun1.png │ ├── fun2.png │ ├── fun3.png │ ├── fun4.png │ ├── fun5.png │ ├── fun6.png │ ├── fun7.png │ ├── fun8.png │ ├── heron.png │ ├── pudb.png │ └── vscodepdb.png ├── d5 ├── README.md ├── project.md ├── rich_click.png ├── system_design.excalidraw └── system_design.png ├── d6 ├── d6p01_paradigmas.md ├── d6p02_intro_a_oo.md ├── d6p03_init_method.md ├── d6p04_pilares_oo.md ├── d6p05_propriedades.md ├── d6p06_protocolos.md └── d6p07_type_annotations.md ├── d7 ├── d7p01_pydantic.md ├── d7p02_exemplo_orm.md ├── d7p03_sql.md ├── d7p04_ORM.md ├── d7p05_SQLModel.md ├── d7p06_migrando_para_orm.md ├── d7p07_migrations_e_api.md ├── d7p08_final.md └── imgs │ ├── db_designer.png │ ├── sql_lang.png │ ├── vs_open_database.png │ ├── vs_sqlite_explorer.png │ └── vs_sqlite_select.png └── d8 └── README.MD /.gitignore: -------------------------------------------------------------------------------- 1 | .venv 2 | __pycache__ 3 | .DS_Store 4 | .vscode -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /00_intro/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/00_intro/hello.py -------------------------------------------------------------------------------- /01_numericos/tabuada.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/01_numericos/tabuada.py -------------------------------------------------------------------------------- /02_textos/email_tmpl.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/02_textos/email_tmpl.txt -------------------------------------------------------------------------------- /02_textos/emails.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/02_textos/emails.txt -------------------------------------------------------------------------------- /02_textos/interpolacao.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/02_textos/interpolacao.py -------------------------------------------------------------------------------- /03_the_dicts/cadastro_de_produto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/03_the_dicts/cadastro_de_produto.py -------------------------------------------------------------------------------- /03_tuplas_listas/escola_v1_com_listas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/03_tuplas_listas/escola_v1_com_listas.py -------------------------------------------------------------------------------- /03_tuplas_listas/escola_v2_com_sets.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/03_tuplas_listas/escola_v2_com_sets.py -------------------------------------------------------------------------------- /03_tuplas_listas/escola_v3_com_dict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/03_tuplas_listas/escola_v3_com_dict.py -------------------------------------------------------------------------------- /04_input/infixcalc.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /04_input/infixcalc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/04_input/infixcalc.py -------------------------------------------------------------------------------- /05_filesystem/notes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/05_filesystem/notes.py -------------------------------------------------------------------------------- /05_filesystem/notes.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /06_errors/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/06_errors/errors.py -------------------------------------------------------------------------------- /07_algoritmo/algoritmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/07_algoritmo/algoritmo.py -------------------------------------------------------------------------------- /07_logs/logs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/07_logs/logs.py -------------------------------------------------------------------------------- /08_repeticoes/post.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/08_repeticoes/post.txt -------------------------------------------------------------------------------- /08_repeticoes/repete_com_for.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/08_repeticoes/repete_com_for.py -------------------------------------------------------------------------------- /08_repeticoes/repete_com_while.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/08_repeticoes/repete_com_while.py -------------------------------------------------------------------------------- /09_exercicios/alerta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/09_exercicios/alerta.py -------------------------------------------------------------------------------- /09_exercicios/numeros_pares.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/09_exercicios/numeros_pares.py -------------------------------------------------------------------------------- /09_exercicios/quartos.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/09_exercicios/quartos.txt -------------------------------------------------------------------------------- /09_exercicios/repete_vogal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/09_exercicios/repete_vogal.py -------------------------------------------------------------------------------- /09_exercicios/reserva.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/09_exercicios/reserva.py -------------------------------------------------------------------------------- /09_exercicios/reservas.txt: -------------------------------------------------------------------------------- 1 | Bruno,2,6 2 | -------------------------------------------------------------------------------- /09_smtp/smtp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/09_smtp/smtp.py -------------------------------------------------------------------------------- /10_funcao/anatomia_funcoes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/anatomia_funcoes.py -------------------------------------------------------------------------------- /10_funcao/composicao.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/composicao.py -------------------------------------------------------------------------------- /10_funcao/coringas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/coringas.py -------------------------------------------------------------------------------- /10_funcao/funcoes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/funcoes.py -------------------------------------------------------------------------------- /10_funcao/heron.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/heron.py -------------------------------------------------------------------------------- /10_funcao/lambdas.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/lambdas.py -------------------------------------------------------------------------------- /10_funcao/questions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/questions.py -------------------------------------------------------------------------------- /10_funcao/valores_default.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/valores_default.py -------------------------------------------------------------------------------- /10_funcao/valores_default_mutaveis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/10_funcao/valores_default_mutaveis.py -------------------------------------------------------------------------------- /11_escopos/contador.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/11_escopos/contador.py -------------------------------------------------------------------------------- /11_escopos/escopo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/11_escopos/escopo.py -------------------------------------------------------------------------------- /11_escopos/forcando_global.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/11_escopos/forcando_global.py -------------------------------------------------------------------------------- /11_escopos/non_local.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/11_escopos/non_local.py -------------------------------------------------------------------------------- /12_debug/tembug.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/12_debug/tembug.py -------------------------------------------------------------------------------- /13_poo/band.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/band.py -------------------------------------------------------------------------------- /13_poo/exercicio1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/exercicio1.py -------------------------------------------------------------------------------- /13_poo/exercicio1_resolvido.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/exercicio1_resolvido.py -------------------------------------------------------------------------------- /13_poo/exercicio1_resolvido_dataclass_rich.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/exercicio1_resolvido_dataclass_rich.py -------------------------------------------------------------------------------- /13_poo/exercicio1_resolvido_dataclasses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/exercicio1_resolvido_dataclasses.py -------------------------------------------------------------------------------- /13_poo/funcional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/funcional.py -------------------------------------------------------------------------------- /13_poo/instruments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/instruments.py -------------------------------------------------------------------------------- /13_poo/match_turtle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/match_turtle.py -------------------------------------------------------------------------------- /13_poo/oo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo.py -------------------------------------------------------------------------------- /13_poo/oo_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v1.py -------------------------------------------------------------------------------- /13_poo/oo_v2_abstracao.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v2_abstracao.py -------------------------------------------------------------------------------- /13_poo/oo_v3_heranca.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v3_heranca.py -------------------------------------------------------------------------------- /13_poo/oo_v4_abc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v4_abc.py -------------------------------------------------------------------------------- /13_poo/oo_v5_polimorfismo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v5_polimorfismo.py -------------------------------------------------------------------------------- /13_poo/oo_v6_encapsulamento.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v6_encapsulamento.py -------------------------------------------------------------------------------- /13_poo/oo_v7_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v7_properties.py -------------------------------------------------------------------------------- /13_poo/oo_v8_protocolos.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/oo_v8_protocolos.py -------------------------------------------------------------------------------- /13_poo/procedural.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/13_poo/procedural.py -------------------------------------------------------------------------------- /13_poo/requirements.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /14_modelagem/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/14_modelagem/models.py -------------------------------------------------------------------------------- /14_modelagem/models_pydantic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/14_modelagem/models_pydantic.py -------------------------------------------------------------------------------- /14_modelagem/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/14_modelagem/requirements.txt -------------------------------------------------------------------------------- /14_modelagem/sqla_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/14_modelagem/sqla_example.py -------------------------------------------------------------------------------- /14_modelagem/sqlite_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/14_modelagem/sqlite_example.py -------------------------------------------------------------------------------- /14_modelagem/sqlmodel_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/14_modelagem/sqlmodel_example.py -------------------------------------------------------------------------------- /15_gui/kivy_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/15_gui/kivy_example.py -------------------------------------------------------------------------------- /15_gui/requirements.txt: -------------------------------------------------------------------------------- 1 | pysimplegui 2 | kivy 3 | -------------------------------------------------------------------------------- /15_gui/simplegui_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/15_gui/simplegui_example.py -------------------------------------------------------------------------------- /15_gui/tk_clock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/15_gui/tk_clock.py -------------------------------------------------------------------------------- /15_gui/tk_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/15_gui/tk_example.py -------------------------------------------------------------------------------- /16_game/beers/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/beers/1.png -------------------------------------------------------------------------------- /16_game/beers/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/beers/2.png -------------------------------------------------------------------------------- /16_game/beers/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/beers/3.png -------------------------------------------------------------------------------- /16_game/beers/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/beers/4.png -------------------------------------------------------------------------------- /16_game/beers/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/beers/5.png -------------------------------------------------------------------------------- /16_game/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/game.py -------------------------------------------------------------------------------- /16_game/player/player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/player/player.png -------------------------------------------------------------------------------- /16_game/requirements.txt: -------------------------------------------------------------------------------- 1 | pygame 2 | -------------------------------------------------------------------------------- /16_game/sound/olha_so.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/sound/olha_so.mp3 -------------------------------------------------------------------------------- /16_game/sound/sensacional.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/sound/sensacional.mp3 -------------------------------------------------------------------------------- /16_game/sound/vai.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/sound/vai.mp3 -------------------------------------------------------------------------------- /16_game/sound/zika.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/16_game/sound/zika.mp3 -------------------------------------------------------------------------------- /17_tui/br-utf8.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/br-utf8.txt -------------------------------------------------------------------------------- /17_tui/colorize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/colorize.py -------------------------------------------------------------------------------- /17_tui/grid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/grid.py -------------------------------------------------------------------------------- /17_tui/palavras.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/palavras.txt -------------------------------------------------------------------------------- /17_tui/processa_palavras.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/processa_palavras.py -------------------------------------------------------------------------------- /17_tui/pylavras.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/pylavras.py -------------------------------------------------------------------------------- /17_tui/requirements.txt: -------------------------------------------------------------------------------- 1 | textual 2 | -------------------------------------------------------------------------------- /17_tui/trivia.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/17_tui/trivia.py -------------------------------------------------------------------------------- /18_web/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/18_web/app.py -------------------------------------------------------------------------------- /18_web/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/18_web/data.json -------------------------------------------------------------------------------- /18_web/requirements.txt: -------------------------------------------------------------------------------- 1 | flask 2 | -------------------------------------------------------------------------------- /18_web/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/18_web/templates/index.html -------------------------------------------------------------------------------- /18_web/templates/pessoas.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/18_web/templates/pessoas.html -------------------------------------------------------------------------------- /19_api/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/19_api/api.py -------------------------------------------------------------------------------- /19_api/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/19_api/data.json -------------------------------------------------------------------------------- /19_api/requirements.txt: -------------------------------------------------------------------------------- 1 | fastapi 2 | uvicorn 3 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/d1/d1p01_intro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p01_intro.md -------------------------------------------------------------------------------- /docs/d1/d1p02_programacao_linguagens.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p02_programacao_linguagens.md -------------------------------------------------------------------------------- /docs/d1/d1p03_plataforma_python.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p03_plataforma_python.md -------------------------------------------------------------------------------- /docs/d1/d1p04_instalacao_ambiente_terminais_editor.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p04_instalacao_ambiente_terminais_editor.md -------------------------------------------------------------------------------- /docs/d1/d1p05_repositorio_git_primeiro_script.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p05_repositorio_git_primeiro_script.md -------------------------------------------------------------------------------- /docs/d1/d1p06_variaveis_de_ambiente.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p06_variaveis_de_ambiente.md -------------------------------------------------------------------------------- /docs/d1/d1p07_tipos_de_instrucoes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p07_tipos_de_instrucoes.md -------------------------------------------------------------------------------- /docs/d1/d1p08_blocos_de_codigo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p08_blocos_de_codigo.md -------------------------------------------------------------------------------- /docs/d1/d1p09_ambiente_virtual_ipython.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d1/d1p09_ambiente_virtual_ipython.md -------------------------------------------------------------------------------- /docs/d2/d2p01_protocolos_e_tipos_de_dados_primarios.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p01_protocolos_e_tipos_de_dados_primarios.md -------------------------------------------------------------------------------- /docs/d2/d2p02_float_bool_none.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p02_float_bool_none.md -------------------------------------------------------------------------------- /docs/d2/d2p03_textos.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p03_textos.md -------------------------------------------------------------------------------- /docs/d2/d2p04_formatacao_de_textos.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p04_formatacao_de_textos.md -------------------------------------------------------------------------------- /docs/d2/d2p05_tipos_compostos-tuplas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p05_tipos_compostos-tuplas.md -------------------------------------------------------------------------------- /docs/d2/d2p06_0_listas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p06_0_listas.md -------------------------------------------------------------------------------- /docs/d2/d2p06_1_exercicio_listas_tuplas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p06_1_exercicio_listas_tuplas.md -------------------------------------------------------------------------------- /docs/d2/d2p07_sets.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p07_sets.md -------------------------------------------------------------------------------- /docs/d2/d2p08_dicionario.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/d2p08_dicionario.md -------------------------------------------------------------------------------- /docs/d2/imgs/ascii.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/imgs/ascii.png -------------------------------------------------------------------------------- /docs/d2/imgs/cartesiano.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/imgs/cartesiano.png -------------------------------------------------------------------------------- /docs/d2/imgs/memoria.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/imgs/memoria.excalidraw -------------------------------------------------------------------------------- /docs/d2/imgs/memoria.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/imgs/memoria.png -------------------------------------------------------------------------------- /docs/d2/imgs/pasta_docs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/imgs/pasta_docs.jpg -------------------------------------------------------------------------------- /docs/d2/imgs/sets.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d2/imgs/sets.jpg -------------------------------------------------------------------------------- /docs/d3/computer.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/computer.excalidraw -------------------------------------------------------------------------------- /docs/d3/d3p01_stdout_stdin.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p01_stdout_stdin.md -------------------------------------------------------------------------------- /docs/d3/d3p02_infix.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p02_infix.md -------------------------------------------------------------------------------- /docs/d3/d3p03_filesystem.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p03_filesystem.md -------------------------------------------------------------------------------- /docs/d3/d3p04_exercicio_notas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p04_exercicio_notas.md -------------------------------------------------------------------------------- /docs/d3/d3p05_exceptions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p05_exceptions.md -------------------------------------------------------------------------------- /docs/d3/d3p06_logging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p06_logging.md -------------------------------------------------------------------------------- /docs/d3/d3p07_allgoritmos.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p07_allgoritmos.md -------------------------------------------------------------------------------- /docs/d3/d3p08_condicionais_inline.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p08_condicionais_inline.md -------------------------------------------------------------------------------- /docs/d3/d3p09_repeticoes.md: -------------------------------------------------------------------------------- 1 | # TODO: -------------------------------------------------------------------------------- /docs/d3/d3p10_exericios.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/d3p10_exericios.md -------------------------------------------------------------------------------- /docs/d3/imgs/io.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/imgs/io.png -------------------------------------------------------------------------------- /docs/d3/imgs/precedencia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d3/imgs/precedencia.png -------------------------------------------------------------------------------- /docs/d4/_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/_email.py -------------------------------------------------------------------------------- /docs/d4/d4p01_funcoes_uteis-builtin.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p01_funcoes_uteis-builtin.md -------------------------------------------------------------------------------- /docs/d4/d4p02_funcoes_stdlib_enviar_emails.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p02_funcoes_stdlib_enviar_emails.md -------------------------------------------------------------------------------- /docs/d4/d4p03_primeira_funcao_e_formula_math.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p03_primeira_funcao_e_formula_math.md -------------------------------------------------------------------------------- /docs/d4/d4p04_anatomia_de_funcoes.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p04_anatomia_de_funcoes.md -------------------------------------------------------------------------------- /docs/d4/d4p05_escopos_argumentos_mutaveis_e_coringas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p05_escopos_argumentos_mutaveis_e_coringas.md -------------------------------------------------------------------------------- /docs/d4/d4p06_lambdas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p06_lambdas.md -------------------------------------------------------------------------------- /docs/d4/d4p07_recursao_e_retry.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p07_recursao_e_retry.md -------------------------------------------------------------------------------- /docs/d4/d4p08_debugging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/d4p08_debugging.md -------------------------------------------------------------------------------- /docs/d4/imgs/escopos.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/escopos.jpg -------------------------------------------------------------------------------- /docs/d4/imgs/fun1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun1.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun2.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun3.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun4.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun5.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun6.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun7.png -------------------------------------------------------------------------------- /docs/d4/imgs/fun8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/fun8.png -------------------------------------------------------------------------------- /docs/d4/imgs/heron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/heron.png -------------------------------------------------------------------------------- /docs/d4/imgs/pudb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/pudb.png -------------------------------------------------------------------------------- /docs/d4/imgs/vscodepdb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d4/imgs/vscodepdb.png -------------------------------------------------------------------------------- /docs/d5/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d5/README.md -------------------------------------------------------------------------------- /docs/d5/project.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d5/project.md -------------------------------------------------------------------------------- /docs/d5/rich_click.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d5/rich_click.png -------------------------------------------------------------------------------- /docs/d5/system_design.excalidraw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d5/system_design.excalidraw -------------------------------------------------------------------------------- /docs/d5/system_design.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d5/system_design.png -------------------------------------------------------------------------------- /docs/d6/d6p01_paradigmas.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p01_paradigmas.md -------------------------------------------------------------------------------- /docs/d6/d6p02_intro_a_oo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p02_intro_a_oo.md -------------------------------------------------------------------------------- /docs/d6/d6p03_init_method.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p03_init_method.md -------------------------------------------------------------------------------- /docs/d6/d6p04_pilares_oo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p04_pilares_oo.md -------------------------------------------------------------------------------- /docs/d6/d6p05_propriedades.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p05_propriedades.md -------------------------------------------------------------------------------- /docs/d6/d6p06_protocolos.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p06_protocolos.md -------------------------------------------------------------------------------- /docs/d6/d6p07_type_annotations.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d6/d6p07_type_annotations.md -------------------------------------------------------------------------------- /docs/d7/d7p01_pydantic.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p01_pydantic.md -------------------------------------------------------------------------------- /docs/d7/d7p02_exemplo_orm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p02_exemplo_orm.md -------------------------------------------------------------------------------- /docs/d7/d7p03_sql.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p03_sql.md -------------------------------------------------------------------------------- /docs/d7/d7p04_ORM.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p04_ORM.md -------------------------------------------------------------------------------- /docs/d7/d7p05_SQLModel.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p05_SQLModel.md -------------------------------------------------------------------------------- /docs/d7/d7p06_migrando_para_orm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p06_migrando_para_orm.md -------------------------------------------------------------------------------- /docs/d7/d7p07_migrations_e_api.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p07_migrations_e_api.md -------------------------------------------------------------------------------- /docs/d7/d7p08_final.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/d7p08_final.md -------------------------------------------------------------------------------- /docs/d7/imgs/db_designer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/imgs/db_designer.png -------------------------------------------------------------------------------- /docs/d7/imgs/sql_lang.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/imgs/sql_lang.png -------------------------------------------------------------------------------- /docs/d7/imgs/vs_open_database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/imgs/vs_open_database.png -------------------------------------------------------------------------------- /docs/d7/imgs/vs_sqlite_explorer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/imgs/vs_sqlite_explorer.png -------------------------------------------------------------------------------- /docs/d7/imgs/vs_sqlite_select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d7/imgs/vs_sqlite_select.png -------------------------------------------------------------------------------- /docs/d8/README.MD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rochacbruno/python-base/HEAD/docs/d8/README.MD --------------------------------------------------------------------------------