Skip to content

Modules Python disponibles ​

Les modules ci-dessous s'importent directement (import numpy, etc.) : ils sont chargés automatiquement, il n'y a rien à installer (voir Paquets Python). Les noms indiqués sont ceux à importer. Certains modules s'utilisent un peu différemment dans Basthon : voir la page Modules adaptés à Basthon.

Les principaux modules, par thème ​

ThèmeModules
Apprendre et visualiserturtle, p5, tkinter, tutor (PythonTutor), lolviz, rcviz, binarytree, ipythonblocks, ipytest, basthon.autoeval (auto-évaluation)
Graphiquesmatplotlib, plotly, bokeh, altair, graphviz, drawsvg, svgwrite, wordcloud
Calcul et donnéesnumpy, pandas, scipy, sympy, statsmodels, networkx, igraph, mpmath, uncertainties
Apprentissage automatiquesklearn (scikit-learn), xgboost, lightgbm, nltk, gensim
ImagesPIL (Pillow), cv2 (OpenCV), skimage (scikit-image), imageio, qrcode
Cartes et géographiefolium, geopandas, shapely, pyproj, proj4py, pyroutelib3, gpx, geojson
Bases de donnéessqlite3, sqlalchemy, duckdb, mocodo
Fichiers et Webrequests, bs4 (BeautifulSoup), openpyxl (Excel), yaml, lxml, faker, ics (calendriers iCalendar)
Sciencesastropy, Bio (Biopython), rebound

Toute la bibliothèque standard de Python est aussi disponible (math, random, csv, json, datetime, collections…), sauf ce qui nécessite le système (threads, subprocess, multiprocessing, voir les différences avec un ordinateur).

La liste complète ​

Voici la sortie de la commande help('modules'), qui liste tous les modules importables avec Basthon (essayer).

Astuce

Les modules que vous chargez vous-même (voir Fichiers annexes et modules) apparaissent aussi dans cette liste.

txt

Please wait a moment while I gather a list of all available modules...

Bio                 calendar            kiwisolver          reprlib
BioSQL              cartopy             lakers              requests
CoolProp            cbor_diag           lazy_loader         retrying
Crypto              certifi             lazy_object_proxy   rich
IPython             cffi                libcst              river
PIL                 cffi_example        lightgbm            rlcompleter
RobotRaconteur      cftime              linecache           rpds
__future__          cgi                 locale              ruamel
__hello__           cgitb               logbook             runpy
__phello__          charset_normalizer  logging             rust-panic-test
_abc                chunk               lolviz              sched
_ast                clarabel            lxml                scipy
_asyncio            click               lzma                screed
_bisect             cligj               magic               secrets
_blake2             cloudpickle         mailbox             select
_bz2                cmath               mailcap             selectors
_codecs             cmd                 markupsafe          setuptools
_codecs_cn          cmyt                marshal             setuptools_scm
_codecs_hk          code                math                shapefile
_codecs_iso2022     codecs              matplotlib          shapely
_codecs_jp          codeop              matplotlib-inline   sharedlib_test
_codecs_kr          collections         matplotlib_basthon_backend shelve
_codecs_tw          colorspacious       matplotlib_pyodide  shlex
_collections        colorsys            memory_allocator    shutil
_collections_abc    compileall          micropip            signal
_compat_pickle      concurrent          mimetypes           simplejson
_compression        configparser        mmap                sisl
_contextvars        contextlib          mmh3                sisl_toolbox
_crypt              contextvars         mne                 site
_csv                contourpy           mocodo              six
_ctypes             copy                modulefinder        skimage
_datetime           copyreg             more_itertools      sklearn
_decimal            coverage            mpl_toolkits        smart_open
_distutils_hack     cpp-exceptions-test2 mpmath              smtplib
_elementtree        cramjam             msgpack             sndhdr
_functools          crc32c              msgspec             socket
_hashlib            crypt               msprime             socketserver
_heapq              cryptography        multidict           sortedcontainers
_imp                cssselect           multiprocessing     soupsieve
_io                 csv                 munch               sourmash
_json               ctypes              mypy                sparseqr
_locale             cv2                 mypyc               sqlalchemy
_lsprof             cvxpy               nacl                sqlite3
_lzma               cycler              netCDF4             sre_compile
_markupbase         cysignals           netrc               sre_constants
_md5                cytoolz             networkx            sre_parse
_multibytecodec     dataclasses         newick              ssl
_opcode             datetime            nh3                 stack_data
_operator           dateutil            nlopt               stat
_pickle             decimal             nltk                statistics
_plotly_utils       decorator           nntplib             statsmodels
_posixsubprocess    demes               ntpath              strictyaml
_py_abc             deprecation         nturl2path          string
_pydatetime         difflib             numbers             stringprep
_pydecimal          dis                 numcodecs           struct
_pyio               distlib             numpy               subprocess
_pylong             doctest             opcode              sunau
_pyodide            docutils            openpyxl            svgwrite
_pyodide_core       drawSvg             operator            swiglpk
_pyrsistent_version drawsvg             optlang             sympy
_pytest             duckdb              optparse            symtable
_queue              email               orjson              sys
_random             encodings           os                  sysconfig
_sha1               enum                osmiter             tabnanny
_sha2               erfa                p5                  tarfile
_sha3               errno               packaging           tatsu
_signal             et_xmlfile          pandas              tblib
_sitebuiltins       ewah_bool_utils     parso               telnetlib
_socket             exceptiongroup      pathlib             tempfile
_sqlite3            executing           patsy               tenacity
_sre                exif                pdb                 termcolor
_ssl                faker               peewee              test
_stat               fastjsonschema      pickle              texttable
_statistics         fastparquet         pickletools         textwrap
_string             faulthandler        pillow_heif         this
_strptime           filecmp             pipes               threading
_struct             fileinput           pkg_resources       threadpoolctl
_symtable           filelock            pkgconfig           time
_sysconfigdata__emscripten_wasm32-emscripten fiona               pkgutil             timeit
_thread             flint               platform            tkinter
_threading_local    fnmatch             plistlib            tkinter_web
_tkinter            folium              plotly              tlz
_tokenize           fontTools           pluggy              token
_tracemalloc        fpcast_test         plum                tokenize
_typing             fractions           poplib              tomli
_warnings           freesasa            posix               tomli_w
_weakref            frozenlist          posixpath           tomllib
_weakrefset         fsspec              ppl                 toolz
_xxsubinterpreters  ftplib              pprint              tqdm
_yaml               functools           primecountpy        trace
_zengl              future              profile             traceback
_zoneinfo           galpy               proj4py             tracemalloc
abc                 gc                  prompt_toolkit      traits
aifc                genericpath         pstats              tskit
aiohttp             gensim              pty                 tty
aiosignal           geojson             pure_eval           turtle
altair              geopandas           py                  tutor
annotated_types     getopt              py_compile          types
antigravity         getpass             pyclbr              typing
argparse            gettext             pyclipper           typing_extensions
array               glob                pycodestyle         tzdata
arrow               gmpy2               pycparser           uncertainties
asciitree           google              pydantic            unicodedata
ast                 gpx                 pydantic_core       unittest
astropy             graphlib            pydoc               unyt
astropy_iers_data   graphviz            pydoc_data          urllib
asttokens           gsw                 pyexpat             urllib3
async_timeout       gzip                pyflakes            uu
asyncio             h5py                pygame              uuid
atexit              hashlib             pygments            warnings
atomicwrites        heapq               pyheif              wave
attr                hmac                pyiceberg           wcwidth
attrs               html                pyinstrument        weakref
audioop             html5lib            pylab               webbrowser
autograd            http                pyodide             webencodings
awkward_cpp         icecream            pyodide_http        wordcloud
b2d                 ics                 pyparsing           wrapt
base64              idna                pyproj              wsgiref
basthon             igraph              pyroutelib3         xarray
bcrypt              imageio             pyrsistent          xdrlib
bdb                 imaplib             pysam               xgboost
bigtests            imghdr              pysat               xlrd
binarytree          importlib           pytest              xml
binascii            iniconfig           pytest_asyncio      xmlrpc
bisect              inspect             pytest_benchmark    xxhash
bitarray            io                  python_solvespace   xyzservices
bitstring           ipaddress           pytz                yaml
bleach              ipytest             pywt                yarl
bokeh               ipythonblocks       pyxirr              yt
boost_histogram     isympy              qrcode              zarr
branca              itertools           queue               zengl
brotli              jedi                quopri              zipapp
bs4                 jinja2              random              zipfile
buffer_test         joblib              rcviz               zipimport
builtins            js                  re                  zlib
bz2                 json                rebound             zoneinfo
cProfile            jsonschema          reboundx            zstandard
cachetools          jsonschema_specifications referencing         
cairosvg            keyword             regex               

Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".