The readline module can be used to enhance interactive command line programs to make them easier to use. It is primarily used to provide command line text completion, or “tab completion”.
Read more…
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.
What’s new in 1.5.0? Add support for using the keyring module to store the IMAP password (contributed by Chris Rose) restore the api documentation Add documentation of mailbox list and example configuration (contributed by Dan Poirier)
The shutil module includes high-level file operations such as copying and archiving.
Read more…
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.
Creating temporary files with unique names securely, so they cannot be guessed by someone wanting to break the application or steal the data, is challenging. The tempfile module provides several functions for creating temporary file system resources securely. TemporaryFile() opens and returns an unnamed file, NamedTemporaryFile() opens and returns a named file, SpooledTemporaryFile holds its content in memory before writing to disk, and TemporaryDirectory is a context manager what removes the directory when the context is closed.
What’s new in 1.3.0? add sort action with the ability to derive a destination mailbox name from a message header add sort-mailing-list action add a rule for checking if a message is from a mailing list add a rule for checking if a header exists do not die if there is an error handling one message
pathlib includes classes for managing filesystem paths formatted using either the POSIX standard or Microsoft Windows syntax. It includes so called “pure” classes, which operate on strings but do not interact with an actual filesystem, and “concrete” classes, which extend the API to include operations that reflect or modify data on the local filesystem.
Read more…
This post is part of the Python Module of the Week series for Python 3.
The codecs module provides stream and file interfaces for transcoding data. It is most commonly used to work with Unicode text, but other encodings are also available for other purposes.
Read more…
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.