Bu derste python için tavsiye edeceğim paketlerden bahsedeceğiz.
Kurulum:
pip install ipython
Örnek:
ipython
Json terminalde daha iyi görmek için kullanılan bir default kütüphane Örnek
from pprint import pprint
pprint(~data~)
More : PPrint
Kurulum:
pip install requests
Örnek:
import requests
from pprint import pprint
r = requests.get('https://www.instagram.com/tlghnzn/?__a=1')
pprint(r.json())
More : Requests
Kurulum:
pip install scrapy
Örnek : Code Example
More : Scrapy
Kurulum:
pip install wxPython
Örnek : Code
More: WxPython
Kurulum:
pip install Pillow
Örnek:
from PIL import Image
im = Image.open("resim.jpg")
im.show()
box = (100, 100, 400, 400)
region = im.crop(box)
region.show()
More: BeautifulSoup
More: Twisted
pip install numpy
Örnek:
import numpy as np
a = np.arange(15).reshape(3, 5)
a
a.shape
a.dtype.name
a.size
b = np.array([2,3,4])
c = np.zeros( (3,4) )
Kurulum:
pip install matplotlib
Örnek:
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
np.random.seed(19680801)
matplotlib.rcParams['axes.unicode_minus'] = False
fig, ax = plt.subplots()
ax.plot(10*np.random.randn(100), 10*np.random.randn(100), 'o')
ax.set_title('Using hyphen instead of Unicode minus')
plt.show()
More = Pygame
python -m http.server 8080