I moduli compresi nella distribuzione ufficiale estendono le funzionalità del linguaggio di base.
I moduli si utilizzano, all’interno di un programma, tramite import
- __hello__ – Easter egg
- antigravity – Easter egg
- array – Liste con operazioni più efficienti
- calendar
- cmath – Funzioni matematiche con numeri complessi
- collections
- colorsys – Conversioni tra i sistemi di colore RGB, YIQ, HLS e HSV
- copy
- csv – File csv
- datetime
- decimal
- defaultdict
- fractions – Frazioni
- keyword – Controllare se una stringa è una parola chiave
- math – Funzioni matematiche
- operator
- os
- random – Numeri pseudocasuali
- re – Espressioni regolari
- secrets – Numeri pseudocasuali più sicuri
- statistics – Funzioni statistiche
- string – Funzionalità aggiuntive per le stringhe
- sys
- this – Easter egg
- time
- tkinter – Interfaccia grafica
- turtle – Grafica della tartaruga
- …
Il mondo dell’open source estende le potenzialità di Python con migliaia di modli gratuiti!
The Python Package Index (PyPI) is a repository of software for the Python programming language.
Questi moduli si installano preventivamente tramite pip
- cryptography – Crittografia
- emoji
- freegames – Giochi didattici
- Kivy – App, Giochi
- matplotlib – Data analysis
- numpy – Data analysis
- pandas – Data analysis
- PrettyTable – Dati in tabella
- pycao – 3D POV-Ray
- pycart – 2D Pygraph
- pycontexfree – 2D/3D ContextFree
- pygame – Giochi
- pygraph – 2D
- pyig – 2D Pygraph
- pyplasm – 3D PLaSM
- pyplot – 2D Pygraph
- PyPov – 3D POV-Ray
- pyturtle – LOGO Pygraph
- PyGTK – GUI
- PyQt – GUI
- pyray – 3D POV-Ray
- QPython – App
- seaborn – Data analysis
- Sympy – Computer algebra system
- tabulate – Dati in tabella
- texttable – Dati in tabella
- Vapory – 3D POV-Ray
- visual – 3D VPython
- visual.factorial – VPython
- visual.graph – 2D VPython
- vpython – 2D / 3D
- wxPython – GUI
- …