Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criado setup.py, pronto release 0.1 #728

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
7 changes: 5 additions & 2 deletions libpythonpro/github_api.py → Libpythonpro/github_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
def buscar_avatar(usuario):
"""
Busca o avatar de um usuário no Github

:param usuario: str com o nome de usuário no github
:Param usuário: str com o nome usuário no github
:return: str com o link do avatar
"""
url = f'https://api.github.com/users/{usuario}'
resp = requests.get(url)
return resp.json()['avatar_url']


if __name__ == '__main__':
print(buscar_avatar('Carloshbfreire'))
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,20 @@ Link para o curso [Python Pro](https://www.python.pro.br/)
[![Python 3](https://pyup.io/repos/github/pythonprobr/libpythonpro/python-3-shield.svg)](https://pyup.io/repos/github/pythonprobr/libpythonpro/)
[![codecov](https://codecov.io/gh/pythonprobr/libpythonpro/branch/master/graph/badge.svg)](https://codecov.io/gh/pythonprobr/libpythonpro)

Suportada versão 3 de Python
Suportada versão 3 de Python Carlinhos

Para instalar:

```console
pip install pipenv
pipenv install --dev
python3 -m venv .venv
source .venv/bin/activete
pip install -r requirements-dev.txt
```

Para conferir qualidade de código:

```console
pipenv run flake8
flake8
```

Tópicos a serem abordados:
Expand All @@ -32,4 +33,7 @@ Tópicos a serem abordados:
3. Pip
4. Mock
5. Pipenv


Revisando aula sobre Fork.

Link do Curso [Python pro](https://pythonpro.com.br/)
1 change: 0 additions & 1 deletion libpythonpro/__init__.py

This file was deleted.

31 changes: 0 additions & 31 deletions libpythonpro/spam/db.py

This file was deleted.

9 changes: 0 additions & 9 deletions libpythonpro/spam/enviador_de_email.py

This file was deleted.

13 changes: 0 additions & 13 deletions libpythonpro/spam/main.py

This file was deleted.

5 changes: 0 additions & 5 deletions libpythonpro/spam/modelos.py

This file was deleted.

Empty file removed libpythonpro/tests/__init__.py
Empty file.
2 changes: 0 additions & 2 deletions libpythonpro/tests/test_exemplo.py

This file was deleted.

Empty file.
20 changes: 0 additions & 20 deletions libpythonpro/tests/test_spam/conftest.py

This file was deleted.

38 changes: 0 additions & 38 deletions libpythonpro/tests/test_spam/test_enviador_de_email.py

This file was deleted.

49 changes: 0 additions & 49 deletions libpythonpro/tests/test_spam/test_envio_para_base_de_usuarios.py

This file was deleted.

28 changes: 0 additions & 28 deletions libpythonpro/tests/test_spam/test_github_api.py

This file was deleted.

17 changes: 0 additions & 17 deletions libpythonpro/tests/test_spam/test_usuarios.py

This file was deleted.