Browse by Topic
Popular
Popular Posts
Latest
Latest Posts
Encrypt and Decrypt PDFs with Python pypdf
Learn how to add user and owner passwords, set PDF permissions, decrypt protected files, and remove encryption using the Python pypdf library.
Python pypdf: Extract Text, Merge, Split, and Rotate PDFs
Learn how to use the Python pypdf library to extract text, merge PDFs, split pages, and rotate pages. Includes practical examples and memory considerations.
Python Markdown Tables and Code Highlighting Extensions
Enable tables, fenced code blocks, and Pygments-based syntax highlighting in Python-Markdown, with configuration examples and common pitfalls.
Configuring a Jinja2 Environment with FileSystemLoader and Autoescape in Python
Use Jinja2's FileSystemLoader to load templates from disk, enable autoescape so HTML output is escaped by default, and handle template loading errors.
Python Jinja2 Custom Filters and Macros
Learn how to create custom filters and macros in Python Jinja2 templates. Includes syntax, practical examples, macro imports, and guidance on when to use each.
Python Jinja2 Templates: Variables, Loops, and Conditions
Learn how Jinja2 variables, for loops, and if conditions work in Python templates, including filters, undefined-variable handling, whitespace control, and performance tips.
Parsing Nested XML and Attributes with Python xmltodict
Learn how to use xmltodict to parse nested XML into dictionaries, read attributes with the @ prefix, handle repeated elements and namespaces, and write XML back out.
Convert XML to Dictionary and Back with Python xmltodict
Learn how to use Python's xmltodict to convert XML to dictionaries and back, including attribute handling, namespaces, round-trip limitations, and when to prefer ElementTree.
Python msgpack vs JSON: Choosing a Serialization Format
python msgpack vs json: Compare Python msgpack and JSON for serialization: data types, performance, compatibility, and practical guidance for choosing the right format.
Python msgpack: Serialize and Deserialize Python Objects
Learn how to use the Python msgpack library to serialize and deserialize objects: core API, type mapping, custom classes, limitations, and safety.