Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore Modern Python Standard Library Cookbook: Over 100 recipes to fully leverage the features of the standard library in Python

Modern Python Standard Library Cookbook: Over 100 recipes to fully leverage the features of the standard library in Python

Published by Willington Island, 2021-08-14 03:17:01

Description: The Python 3 Standard Library is a vast array of modules that you can use for developing various kinds of applications. It contains an exhaustive list of libraries, and this book will help you choose the best one to address specific programming problems in Python.

The Modern Python Standard Library Cookbook begins with recipes on containers and data structures and guides you in performing effective text management in Python. You will find Python recipes for command-line operations, networking, filesystems and directories, and concurrent execution. You will learn about Python security essentials in Python and get to grips with various development tools for debugging, benchmarking, inspection, error reporting, and tracing. The book includes recipes to help you create graphical user interfaces for your application. You will learn to work with multimedia components and perform mathematical operations on date and time...

Search

Read the Text Version

Other Books You May Enjoy Secret Recipes of the Python Ninja Cody Jackson ISBN: 978-1-78829-487-4 Know the differences between .py and .pyc files Explore the different ways to install and upgrade Python packages Understand the working of the PyPI module that enhances built-in decorators See how coroutines are different from generators and how they can simulate multithreading Grasp how the decimal module improves floating point numbers and their operations Standardize sub interpreters to improve concurrency Discover Pythonds built-in docstring analyzer [ 335 ]

Other Books You May Enjoy Leave a review - let other readers know what you think Please share your thoughts on this book with others by leaving a review on the site that you bought it from. If you purchased the book from Amazon, please leave us an honest review on this book's Amazon page. This is vital so that other potential readers can see and use your unbiased opinion to make purchasing decisions, we can understand what our customers think about our products, and our authors can see your feedback on the title that they have worked with Packt to create. It will only take a few minutes of your time, but is valuable to other potential customers, our authors, and Packt. Thank you! [ 336 ]

Index A CSV reading ,  accumulation ,  writing ,  alerts D creating , ,  arguments data sharing, between processes , , ,  parsing , , ,  AsyncIO database reading , ,  about  writing , ,  using , , ,  audio dates playing ,  and times, combining ,  displaying, in user format , , ,  B matching, for requested weekdays ,  moving, to next month , ,  behavior-driver development (BDD)  moving, to tomorrow ,  benchmarking ,  parsing ,  binary data saving ,  reading , ,  datetimes writing , ,  timestamps, converting to ,  Bunch about  debugging implementation , , , , ,  about ,  handling  C decorators code about  evaluation ,  implementing , ,  tracing , , ,  dialog boxes combinations about  producing ,  creating , ,  configuration files dictionary reading , , , ,  with fallback , ,  context managers ,  directory cookies copying , ,  zipping ,  handling , ,  coroutines disk buffer using ,  about  implementing , , , ,

E graphical user interface (GUI)  emails H fetching , , , ,  sending , , ,  HMAC algorithm about  entries reference  prioritizing , , ,  HTML enumeration building , ,  about  implementing , ,  HTTP consuming , , ,  errors forms, submitting , , , ,  reporting, in production ,  serving , , , ,  event loop  I F image sizes detecting , , , ,  file information obtaining ,  image types detecting , ,  file content, replacing , ,  images handling ,  playing ,  integrity, verifying , ,  logging ,  input box type, determining ,  about  creating ,  filename encoding managing , ,  inspect module ,  inspection , ,  filenames interactive shells expanding ,  starting , , ,  filter , , ,  folders J traversing  JSON forms treating , , , , , ,  handling ,  L submitting, to HTTP , , , ,  frequencies least recently used (LRU)  counting , ,  list of lists FTP about  flattening ,  using , , ,  lists Future about  about  executing , , ,  creating , , ,  logging G implementing , ,  to file ,  generic functions ,  to syslog , ,  Global Interpreter Lock (GLI)  [ 338 ]

M pdb debugger about  memoizing , ,  continue command  memory list command  next command  managing ,  menus permutations producing ,  about  creating , ,  pickling , ,  message boxes processes about  displaying , , ,  data, sharing between , , ,  message managing , , , ,  integrity, verifying , , ,  production mocking , ,  errors, reporting ,  MultiDict profiling , ,  about , ,  progress bar using , ,  about  multiple keyword arguments displaying , , ,  unpacking , ,  ProgressBar dialog about  N creating , , ,  Python Package Index (PyPI)  named temporary files creating ,  R nano  reduction ,  nth element remote procedure calls (RPC) obtaining, of iterable ,  about  creating , , ,  O REST API about  operator module implementing , , ,  about ,  functions ,  S ordered dictionaries scheduled tasks using ,  about  managing , , ,  P search , , ,  partials shelving , ,  about  similar items using ,  grouping , ,  passwords sockets hashing , ,  prompting for  about  using , , ,  paths sort , , ,  building ,  start of image (SOI)  static files pattern matching implementing , ,  [ 339 ]

serving , ,  timestamps strings about  converting, to datetimes ,  spaces, preserving  splitting  trace module  syslog logging , ,  U system commands executing , ,  unittest module  URLs T parsing ,  templating , , , ,  user format terminal text dates, displaying , , ,  sizing , ,  tests V writing , ,  variable context managers text data applying ,  reading ,  video writing ,  playing ,  text similarity detecting , ,  vim  text suggestion computing , ,  W text aligning , , ,  web applications cleaning up , ,  errors, handling , , ,  lines, reading ,  normalizing , ,  weekdays ThreadPools dates, matching ,  about  components  workdays implementing , , , ,  computing ,  time-zone-aware datetime using ,  X times and dates, combining ,  XML/HTML content reading , , , , ,  writing , , , ,  Z zipping ,


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook