• Stars
    star
    1,848
  • Rank 24,240 (Top 0.5 %)
  • Language
    Python
  • License
    The Unlicense
  • Created about 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Template Para a Python Week 2002 - 25 a 29 de Abril na LINUXTips

python-week-2022

Template Para a Python Week 2022 - 25 a 29 de Abril na Linux Tips

Instruções

Este repositório é um template de um projeto Python mínimo.
O programa se chama beerlog e está organizado com pastas e módulos, porém a maioria dos arquivos encontra-se vazio.

A partir deste template você poderá acompanhar as lives
da Python week e programar junto com o Bruno e o Jeferson.

Obtendo seu repositório

  1. Faça login no github (cadastre-se gratuitamente caso ainda não tenha uma conta)
  2. Crie um fork (cópia) deste repositório clicando em fork
  3. O seu repositório estará em https:// github.com / SEUNOME / python-week-2022
  4. Copie a URL do seu repositório (você vai precisar depois)

Preparando o ambiente

OBS: substitua SEUNOME pelo seu nome de usuário do github.

  • Você pode rodar localmente em seu computador desde que tenha o Python 3.8+
    • Para rodar localmente faça o clone com git clone https://github.com/SEUNOME/python-week-2022
    • Acesse a pasta cd python-week-2022
  • Você pode rodar no https://gitpod.io recomendado
    • Para rodar no gitpod acesse no navegador https://gitpod.io/#https://github.com/SEUNOME/python-week-2022
    • OBS: O plano free do gitpod permite o uso de 40 horas do ambiente.
  • Você pode rodar no https://replit.com/ diretamente no browser
    • Para rodar no replit, crie um replit e escolha a opção importar do github e informe o repositório
    • OBS: O replit.com tem limite de consumo de memória e CPU
  • Ou em qualquer plataforma que permita executar Python 3.8

Requisitos

Este template utiliza o gerenciador de pacotes poetry

Se estiver rodando no Linux no seu ambiente local

execute o comando abaixo para instalar o Poetry no Linux

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

Em outros ambientes pode instalar com

pip install --user poetry

No replit.com o poetry já está disponível e no gitpod será instalado assim que o ambiente iniciar.

Instalando o ambiente

O comando a seguir instala as dependências do projeto.

poetry install

O comando a seguir ativa o ambiente virtual do poetry

poetry shell

IMPORTANTE o ambiente precisa estar ativado para o programa executar.
No terminal aparecerá algo como
(beerlog-DlEBh_72-py3.8) gitpod /workspace/python-week-2022 (main) $

Executando o programa

beerlog
# ou
python -m beerlog

Se apareceu Hello from beerlog então está tudo certo.

Está com problemas com instalação ou autocomplete no gitpod?

Poetry

Para o programa rodar o ambiente poetry precisa estar ativado

pip install poetry
poetry install
poetry shell

Ou execute source start_poetry que é um script que automatiza os comandos acima.

Autocomplete não funciona?

Após ativar o poetry digite no terminal

which python 

A saida será algo como

/home/gitpod/.cache/pypoetry/virtualenvs/beerlog-DlEBh_72-py3.8/bin/python

Copie este path ^

Agora digite F1 no gitpod ou Ctrl + Shift + P no Vscode local e selectione a opção Python: Select Interpreter Cole o path /home/gitpod/.cache/pypoetry/virtualenvs/beerlog-DlEBh_72-py3.8/bin/python e digite enter.

OBS: Pode ser que o caminho seja outro, o importante é terminar com /bin/python

More Repositories

1

py2rs

A quick reference guide for the Pythonista in the process of becoming a Rustacean
CSS
2,022
star
2

rust-python-example

Example of using Rust to Extend Python
Python
776
star
3

python-project-template

DO NOT FORK, CLICK ON "Use this template" - A github template to start a Python Project - this uses github actions to generate your project based on the template.
Makefile
753
star
4

fastapi-project-template

DO NOT FORK, CLICK "Use this template" - The base to start an openapi project featuring: SQLModel, Typer, FastAPI, JWT Token Auth, Interactive Shell, Management Commands.
Python
290
star
5

nameko-example

Code for example in this post: http://brunorocha.org/python/microservices-with-python-rabbitmq-and-nameko.html
Python
191
star
6

flask-powered

List of companies using Flask framework - who is using Flask?
134
star
7

python-base

https://www.linuxtips.io/products/python-base
Python
129
star
8

flask-project-template

DO NOT FORK, CLICK "Use this template" - A github template to start a Flask Project - this uses github actions to generate your project based on the template.
Python
121
star
9

rust_memes

The best memes and stickers about #rust #rustlang - listed here for easy use on talks and share
Rust
106
star
10

learndynaconf

Learn Dynaconf - the best config library for Python :)
Python
61
star
11

talkshow

A Call 4 Papers System - A simple base app as example of Flask Architecture
Python
59
star
12

wtf

What The Flask - News App da parte 1 do artigo What the Flask
Python
50
star
13

vegan_recipes

100% vegan recipes
48
star
14

dotfiles

My Environment Configurations
Lua
42
star
15

fastapi-workshop

Material do workshop - Criando API com FastAPI da LINUXtips
Python
36
star
16

python-hello-world

Hello World
28
star
17

rochacbruno

My Profile
20
star
18

i_am_learning_rust

My Rust exercices with notes (mostly based on Rust Essentials and TRPL books + exercism)
Rust
20
star
19

dundie-api

Projeto do Treinamento Python Web API LINUXtips
Shell
18
star
20

dundie-rewards

point rewards system for dunder mifflin company
Python
17
star
21

makectl

WIP - Generate and Manage targets in your makefiles.
Rust
16
star
22

python-web-api

https://cursodepython.com.br
15
star
23

DURC

Declarative Understandable Reproducible Cases - Powered by Ansible
Python
11
star
24

aprenda-rust

https://bit.ly/aprendarust
Rust
10
star
25

thunar-actions

My actions used in Thunar (XFCE file manager)
Shell
9
star
26

dynaconf_ng

You know... when a repo is created having `_ng` suffix it means the main project will evolve or is going to die...
Python
6
star
27

Postgre

A Database System Inspired by Postgres
6
star
28

rust-dynaconf

GO TO https://github.com/rubik/hydroconf
Rust
5
star
29

discord_classroom

Discord bot to work as a Learning Management System - LMS
Rust
5
star
30

python-base-1

Codigos do Treinamento Python Expert Modulo Base
Python
4
star
31

bruno-api-done

Python
4
star
32

exercism

My exercism solutions, don't COPY it!!! :) try yourself at -> https://exercism.io/
Rust
3
star
33

fastapi-workshop-template

⬅️ Click on Use This Template - Template para o workshop de FastAPI da Codecon 2021
Python
3
star
34

rust-intro

Rust Intro Repository for Data Umbrella Workshop - This repository is almost empty, only some instructions on the readme.
3
star
35

web-api-example

Python
2
star
36

micro-rust-plugin

Micro Editor rust plugin
Lua
2
star
37

trivia

Python TUI for Open Trivia Database
Python
2
star
38

smarter

Some objects could be smarter
Python
2
star
39

ansible-test

ansible.test.case is a testing framework and test runner within ansible tasks, it talks to API using openapispec, to Selenium using pageObjects and CLI using pexpect.
HTML
2
star
40

flask_admin_example

FlaskConf 2018 talk code
Python
1
star
41

dataclass-validator

Python
1
star
42

wagd

Workspace for Ansible Galaxy Development
1
star
43

conffee-maker

`$cm` or Confee Maker is a command terminal interface TUI to generate configuration files for different applications based on templates.
Rust
1
star