Manlio Perillo wrote: > Zanon Samuele ha scritto: >> Ciao a tutti... volevo chiedere se esiste un'istruzione in python per >> conoscere i moduli installati sul proprio spazio web (tipo la funzione >> phpinfo() di php). Mi serve per vedere quali moduli sono installati su >> un piano hosting. >>
Puoi usare yolk (da installare con easy_install), che ti dice quelli installati con distutils o setuptools (easy_install) usando l'opzione -l, come vedi sotto. E' anche utile l'opzione -U che ti dice quali moduli hanno disponibili degli upgrade. ciao Gianfranco Usage: yolk [options] Options: -h, --help show this help message and exit --version Show yolk version and exit. --debug Show debugging information. -q, --quiet Show less output. Query installed Python packages: The following options show information about installed Python packages. Activated packages are normal packages on sys.path that can be imported. Non-activated packages need 'pkg_resources.require()' before they can be imported, such as packages installed with 'easy_install --multi-version'. PKG_SPEC can be either a package name or package name and version e.g. Paste==0.9 -l, --list List all Python packages installed by distutils or setuptools. Use PKG_SPEC to narrow results. -- Istituto Nazionale di Ricerca Metrologica (I.N.Ri.M) (former Istituto Elettrotecnico Nazionale Galileo Ferraris) Strada delle Cacce, 91 - 10135 Torino Italy tel: ++39 011 3919839 fax: ++39 011 3919834 Personal home page: http://www.inrim.it/~durin/ INRiM home pag: http://www.inrim.it/ ============================================================= Please note my new e-mail: g.du...@inrim.it ============================================================= _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python