forked from mouredev/Hello-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path08_python_package_manager.py
More file actions
39 lines (25 loc) · 683 Bytes
/
Copy path08_python_package_manager.py
File metadata and controls
39 lines (25 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Clase en vídeo: https://youtu.be/TbcEqkabAWU?t=24010
### Python Package Manager ###
# PIP https://pypi.org
# pip install pip
# pip --version
# pip install numpy
import pandas
from mypackage import arithmetics
import requests
import numpy
print(numpy.version.version)
numpy_array = numpy.array([35, 24, 62, 52, 30, 30, 17])
print(type(numpy_array))
print(numpy_array * 2)
# pip install pandas
# pip list
# pip uninstall pandas
# pip show numpy
# pip install requests
response = requests.get("https://pokeapi.co/api/v2/pokemon?limit=151")
print(response)
print(response.status_code)
print(response.json())
# Arithmetics Package
print(arithmetics.sum_two_values(1, 4))