Python modullarining sinflashtirilishi
1.4.1-jadval.
sinf
modullar roʻyxati
Matnlar
bilan
ishlash
string, textwrap, re, difflib, grep, stringprep, extview;
Ma’lumot
tuzilmalari
enum, collections, collection.abs, array, heapq, bisect,
queue, struct, weakref, copy, pprint;
Algoritmik modullar functools, itertools, operator, contextlib;
Vaqt va sanalar
time, datetime, calendar;
Matematika
decimal, fractions, random, math, cmath, statistics,
numeric;
Fayllar tizimi
os.path, pathlib, glob, fnmath, linecache, tempfile, shutil,
filecmp, mmap, mimetypes, codecs, io, code, filelist,
genericpath, mimetypes, quopri, ntpath, outwin, plistlib,
posixpath, setuptools;
Ma’lumotlar bazasi,
almashinuvi
va
doimiy saqlash
pickle, pickletools, copyreg, shelve, dbm, dbm.dumb,
dbm.gnu, dbm.ndbm, sqlite3, xml.etree, Elementtree, csv,
aifc, chunk, binascii, binhex, xdrlib, msilib, netrc, query,
unicodedata, uu, spwd (unix), grp (Unix);
Fayllarni arxivlash
zlib, gzip, bz2, tarfile, zipfile, lzma, zipapp, zipimport;
Kriptografiya
hashlib, hmac, crypt, encoding, h1, secrets;
Parallel
hisoblash, ubprotsess, signal, threading, multiprotsessing, asyntsio,
74
jarayon, oqim va
yoʻldosh dasturlar
concurrent.Futures;
Tarmoqda
axborot
almashuv
ipaddress, socket, selectors, select, sockecerver, asyncore,
asynchat, mb1, nntplib, poplib, prc, telnetlib;
Internet
urllib.parse, urllib.request, useurllib.Robotparser, base64,
http.client,
http.cookiejar,
http.cookies,
http.server,
webrowser,
browser,
uuid,
json,
xml.prsclient,
xml.prsserver, ftplib, html, html.entities, html.parser, h2,
nturlpath, squeezer, ssl, xml.client, xml.server, smtplib,
email, smtpd, imaplib, mailbox, mailcap;
Ilovalarni
ishlab
chiqish bloklari
argparse, token, getopt, readline, getpass, cmd, wsgiref,
shlex, pipes (unix), configparser, logging, pty (Unix),
fileinput, ftsntl (Unix), pyshell, Macosx, atexit, shed,
py_compile, sidebar;
Ilovalarni
xalqaro
va
mahalliylashtirish
gettext, locale, zoneinfo;
Dastur
ishlab
chiqish vositalari
pydoc, ParenMatch, sched, dataclasses, ctypes, curses,
curses.ascii, curses.panel, curses.textpad, cProfile, hochot,
pstats, builtins, xxsubtype, doctest, unittest, trace,
traceback, cgitb, pdb, debugger, timeit, profile, tabnanny,
compileall, pyclbr, venv, ensurepip, bdb, contextvars,
configdialog, help_about, idle, idle_test, idlelib, delegator,
distutils, dynoption, e1, errno, faulthandler, formatter, h3,
help, gyperparser, iomenu, keyword, lib2to3, marshal,
pydoc,
pyexpat,
PyParsing,
rlcompleter,
search,
sre_compile, sre_constants, sre_parse, stat, symtable, test,
tty (UNIX), zoomheight, zzdummy;
Dasturning
bajarilish
vaqti
vositalari
sys, msvcrt, site, codeop, os, nt, winreg, platform, resourse,
gts, sysconfig, cgi, reprlib, runscript, tooltip, tracemalloc,
types, typing, undo;
Til vositalari
warnings, abc, dis, inspect, tokenize;
Modul va paketlar
bilan ishlash
importlib, pkgutil, pip, zipimport, imp, modulefinder,
multicall, opcode, pkg_resourse, redirector, runpy, syslog,
75
nis (unix);
Tasvirlar
bilan
ishlash
antigravity, colorsys, colormath, config_key, graphlib,
scrolledlist, tkinter, turtle, turtledemo;
Grammatikalar bilan
ishlash
ast, optparse;
Ovozlar
bilan
ishlash
audioop, autocomplete, sndhdr, sunau, wave, winsound;
Timsollarni
tanib
olish
imghdr
1.4.1-jadvaldan koʻrinib turibdiki, har bir sinf qoʻllanish sohalari umumiy
boʻlgan koʻplab modullarni oʻz ichiga oladi. Mazmunan bitta sohaga xizmat
qiladsada, bitta sinfga tegishli boʻlgan modullarning har biri shu sinf doirasidagi
tipik masalalarni hal qilishga moʻljallangan bir qator usullarni qamrab oladi.
Yuqorida keltirilgan ayrim sinflarga oid standart (ichki) modullar va ularni amalda
qoʻllash sohalari roʻyxati 1-ilovadan oʻrin olgan.
Yuqorida aytilganidek, har bir modul oʻzi tegishli boʻlgan sinf doirasidagi
alohida olingan sohaning tipik masalalari uchun maxsus ishlab chiqilgan usullar
kutubxonasidan iborat boʻladi. Jumladan, II-ilovada
Dostları ilə paylaş: |