Structure of Python Packages
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Hands on the tqdm Module in Python
Simple Use Case¶
The usage of the tqdm module is really simple.
All you need is to import the tqdm
function from the tqdm
module,
and then wrap the function tqdm
over the iterable object that you want iterate over.
This is really convenient if you have a long running task
and want to report the progress of the task.
Iterate All Descendant Files in a Directory in Python
Using pathlib.Path.glob¶
This is the easiest way to iterate through all descendant files of a directory in Python.
Ensure Capturing Log of Applications
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Logging is critical for debugging applications. For production applications, it is best to send log information into a file instead of the standard output so that the log information is persisted …
General Tips on Logging
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
- Many logging libraries support sending logs as emails or as attachments of emails. As a poor man's way of subscribing to errors and warnings (if there's no engineering teams support parsing …