Indice
Python: Appunti in libertà
Questi appunti si riferiscono alla versione windows di Python
Installazione
Windows
SetupTools
Setuptolls è una libreria che rende possibile installare le librerire di python come se usassimo apt-get di linux.
Il pacchetto è scaricabile da qui
Dopo l'installazione, nella cartella C:\Python27\Lib\site-packages sarà possibile trovare easy_install
Easy_Install
Easy_Install permette di scaricare ed installare le librerie python che lo supportano come se stessimo usando apt-get
come esempio scaricheremo la libreria python-creole
python-creole
python-creole è una libreria per convertire da html a wiki e vice versa (è estendibile anche ad altri formati) Per installarla:
$ easy_install.py python-creole Searching for python-creole Reading http://pypi.python.org/simple/python-creole/ Reading http://code.google.com/p/python-creole/ Best match: python-creole 1.0.6 Downloading http://pypi.python.org/packages/source/p/python-creole/python-creole -1.0.6.tar.gz#md5=049bb9c0d1f16303195a7726b1fcd080 Processing python-creole-1.0.6.tar.gz Running python-creole-1.0.6\setup.py -q bdist_egg --dist-dir c:\users\ascani~2\a ppdata\local\temp\easy_install-hy8mas\python-creole-1.0.6\egg-dist-tmp-uud4pd warning: no previously-included files matching '*.py[co]' found under directory '*' Adding python-creole 1.0.6 to easy-install.pth file Installed c:\python27\lib\site-packages\python_creole-1.0.6-py2.7.egg Processing dependencies for python-creole Finished processing dependencies for python-creole
La documentazione e gli esempi possono essere trovati qui.
Lista Moduli Installati
Per avere ul elenco dei moduli installati sotto Python è possibile guardare nella sua cartella site-packages ma per automatizzare la cosa è meglio installare il modulo pip e poi lanciare pip list
Mio Elenco Moduli
| Nome Modulo | Versione | Descrizione |
|---|---|---|
| active-directory | 0.6 | |
| apsw | 3.8.0.2-r1 | |
| astroid | 1.0.1 | |
| beautifulsoup | 3.2.1 | |
| boa-constructor | 0.6.1 | |
| boto | 2.14.0 | |
| colorama | 0.2.7 | |
| configparser | 3.3.0r2 | |
| cx-Freeze | 4.3.2 | |
| cx-Oracle | 5.1.2 | |
| distribute | 0.6.35 | |
| facebook-sdk | 0.4.0 | |
| facepy | 0.9.0 | |
| fdb | 1.4 | |
| gdata | 2.0.17 | |
| html5lib | 0.999-dev | |
| htmlparser | 0.0.2 | |
| httplib2 | 0.8 | |
| ID3 | 1.2 | |
| logilab-common | 0.60.0 | |
| MySQL-python | 1.2.3 | |
| oauth2 | 1.5.211 | |
| paramiko | 1.10.1 | |
| PIL | 1.1.7 | |
| pip | 1.5.6 | |
| pisa | 3.0.33 | |
| psutil | 0.7.0 | |
| py2exe | 0.6.9 | |
| pycrypto | 2.3 | |
| pylint | 1.0.0 | |
| pylzma | 0.4.4 | |
| pyPdf | 1.13 | |
| pytagger | 0.5 | |
| python-creole | 1.0.6 | |
| pytumblr | 0.0.5 | |
| pyusb | 1.0.0a2 | |
| pywin32 | 218 | |
| rarfile | 2.5 | |
| reportlab | 2.7 | |
| requests | 2.1.0 | |
| scp | 0.5.1 | |
| setuptools | 0.6c11 | |
| six | 1.4.1 | |
| WMI | 1.4.9 | |
| xmpppy | 0.5.0rc1 |

