{"id":13405655,"url":"https://github.com/rochacbruno/python-week-2022","last_synced_at":"2025-05-15T09:00:23.588Z","repository":{"id":37249624,"uuid":"483433733","full_name":"rochacbruno/python-week-2022","owner":"rochacbruno","description":"Template Para a Python Week 2002 - 25 a 29 de Abril na LINUXTips","archived":false,"fork":false,"pushed_at":"2023-01-19T02:10:13.000Z","size":1903,"stargazers_count":1825,"open_issues_count":7,"forks_count":1173,"subscribers_count":39,"default_branch":"main","last_synced_at":"2025-05-15T05:16:09.375Z","etag":null,"topics":["fastapi","jupyter","pytest","python","pythonweek"],"latest_commit_sha":null,"homepage":"https://youtube.com/linuxtips","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rochacbruno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-19T22:54:34.000Z","updated_at":"2025-05-08T23:43:58.000Z","dependencies_parsed_at":"2023-02-10T19:45:54.337Z","dependency_job_id":null,"html_url":"https://github.com/rochacbruno/python-week-2022","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochacbruno%2Fpython-week-2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochacbruno%2Fpython-week-2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochacbruno%2Fpython-week-2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rochacbruno%2Fpython-week-2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rochacbruno","download_url":"https://codeload.github.com/rochacbruno/python-week-2022/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310509,"owners_count":22049467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","jupyter","pytest","python","pythonweek"],"created_at":"2024-07-30T19:02:07.531Z","updated_at":"2025-05-15T09:00:23.517Z","avatar_url":"https://github.com/rochacbruno.png","language":"Python","readme":"# python-week-2022\n\nTemplate Para a Python Week 2022 - 25 a 29 de Abril na Linux Tips\n\n## Instruções\n\nEste repositório é um template de um projeto Python mínimo.  \nO programa se chama `beerlog` e está organizado com pastas\ne módulos, porém a maioria dos arquivos encontra-se vazio.\n\nA partir deste template você poderá acompanhar as lives  \nda Python week e programar junto com o Bruno e o Jeferson.\n\n## Obtendo seu repositório\n\n01. Faça login no github (cadastre-se gratuitamente caso ainda não tenha uma conta)\n00. Crie um **fork** (cópia) deste repositório clicando em [fork](https://github.com/rochacbruno/python-week-2022/fork)\n00. O seu repositório estará em https:// github.com / SEUNOME / python-week-2022\n00. Copie a URL do seu repositório (você vai precisar depois)\n\n## Preparando o ambiente\n\n\u003e **OBS**: substitua `SEUNOME` pelo seu nome de usuário do github.\n\n- Você pode rodar localmente em seu computador desde que tenha o Python 3.8+\n  - Para rodar localmente faça o clone com `git clone https://github.com/SEUNOME/python-week-2022`\n  - Acesse a pasta `cd python-week-2022`\n- Você pode rodar no [https://gitpod.io](https://gitpod.io) **recomendado**\n  - Para rodar no gitpod acesse no navegador `https://gitpod.io/#https://github.com/SEUNOME/python-week-2022`\n  - **OBS**: O plano free do gitpod permite o uso de 40 horas do ambiente.\n- Você pode rodar no [https://replit.com/](https://replit.com/) diretamente no browser\n  - Para rodar no replit, crie um replit e escolha a opção `importar do github` e informe o repositório\n  - **OBS**: O replit.com tem limite de consumo de memória e CPU\n- Ou em qualquer plataforma que permita executar Python 3.8\n\n## Requisitos\n\nEste template utiliza o gerenciador de pacotes **poetry**\n\n### Se estiver rodando no Linux no seu ambiente local\n\n`execute o comando abaixo para instalar o Poetry no Linux`\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -\n```\n\n`Em outros ambientes pode instalar com`\n\n```bash\npip install --user poetry\n```\n\n\u003e No replit.com o poetry já está disponível e no gitpod será instalado assim que o ambiente iniciar.\n\n## Instalando o ambiente\n\nO comando a seguir instala as dependências do projeto.\n\n```bash\npoetry install\n```\n\nO comando a seguir ativa o ambiente virtual do poetry\n\n```bash\npoetry shell\n```\n\n\u003e **IMPORTANTE** o ambiente precisa estar ativado para o programa executar.  \n\u003e No terminal aparecerá algo como  \n\u003e `(beerlog-DlEBh_72-py3.8) gitpod /workspace/python-week-2022 (main) $`\n\nExecutando o programa\n\n```bash\nbeerlog\n# ou\npython -m beerlog\n```\n\nSe apareceu `Hello from beerlog` então está tudo certo.\n\n\n## Está com problemas com instalação ou autocomplete no gitpod?\n\n### Poetry\n\nPara o programa rodar o ambiente poetry precisa estar ativado\n\n```\npip install poetry\npoetry install\npoetry shell\n```\n\nOu execute `source start_poetry` que é um script que automatiza os comandos acima.\n\n### Autocomplete não funciona?\n\nApós ativar o poetry digite no terminal\n\n```\nwhich python \n```\nA saida será algo como\n\n```\n/home/gitpod/.cache/pypoetry/virtualenvs/beerlog-DlEBh_72-py3.8/bin/python\n```\n\nCopie este path ^\n\nAgora digite `F1` no gitpod ou `Ctrl + Shift + P` no Vscode local e selectione a opção `Python: Select Interpreter`\nCole o path `/home/gitpod/.cache/pypoetry/virtualenvs/beerlog-DlEBh_72-py3.8/bin/python` e digite enter.\n\n\u003e **OBS**: Pode ser que o caminho seja outro, o importante é terminar com `/bin/python`","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frochacbruno%2Fpython-week-2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frochacbruno%2Fpython-week-2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frochacbruno%2Fpython-week-2022/lists"}