Browse by Topic

Popular

Latest

Latest Python Posts

Editorial illustration comparing orjson and the standard json module, with a speed-focused visual metaphor for Python serialization.
Python

Python orjson vs json performance: API differences

Compare Python's standard json module with orjson: API differences, type support, and performance tradeoffs that matter in production.

orjsonjson serializationpython performancepython standard library
Diagram showing orjson converting a dataclass with datetime and numpy array to JSON, with a pydantic model in the background.
Python

Python orjson: Serializing Dataclasses with datetime, numpy, and pydantic

python orjson datetime dataclass numpy and pydantic: Learn how to serialize Python dataclasses with datetime and numpy types using orjson, and how pydantic models fit...

orjsondataclassesdatetimenumpy
Illustration of Python orjson serializing a dictionary into compact JSON bytes with speed and efficiency.
Python

Python orjson: dumps, loads, and serialization options

Use Python's orjson library for fast JSON serialization. Learn orjson.dumps and orjson.loads options, dataclass support, datetime and UUID handling, and key differences from the standard json module.

orjsonJSON serializationPython performancedataclasses
Side-by-side comparison of prettytable and tabulate table formatting in Python
Python

python prettytable vs tabulate: Which to Use?

Compare Python prettytable and tabulate for formatting tabular data: API style, customization, output formats, performance, and when to choose each.

prettytabletabulate
A clean terminal window showing a formatted table with aligned columns and a highlighted sort arrow, representing Python PrettyTable's output.
Python

Python PrettyTable: Create, Format, and Sort Tables

Use Python PrettyTable to turn lists into readable terminal tables: install, add rows, align columns, sort data, and apply built-in styles.

PrettyTableTable FormattingCLI OutputData Presentation
Python code generating a Markdown table with grid borders and aligned columns
Python

Python Tabulate: Markdown Grid Headers and Alignment

Use Python's tabulate library to format Markdown tables, set custom headers, and control column alignment with pipe and grid formats.

pythontabulatemarkdowntable-formatting
A clean terminal window showing a neatly aligned text table rendered from Python list and DataFrame data
Python

Python Tabulate: Format Tables from Lists and DataFrames

python tabulate format tables from lists and dataframes: Learn how to use Python tabulate to format tables from lists, dictionaries, and pandas DataFrames with headers...

pythontabulatepandastable-formatting
A clock and a number with commas representing humanize's naturaltime, naturaldate, and intcomma formatting in Python.
Python

Using Python Humanize: naturaltime, naturaldate, and intcomma

Learn how to use Python's humanize library: naturaltime for relative times, naturaldate for calendar dates, and intcomma for number grouping.

humanizedatetime formattingnumber formattinglocalization
Illustration of a Python script converting raw byte counts, large integers, and timestamps into readable labels such as 1.5 MB, 1.2 million, and 2 hours ago.
Python

Python Humanize: Format File Sizes, Numbers, and Times

Learn to use the Python humanize library to turn raw bytes, large numbers, and timestamps into readable strings like 1.5 MB, 1.2 million, and 2 hours ago.

humanizepython-formattingdatetimefile-size
Illustration comparing two Python encoding detection libraries, chardet and charset_normalizer, with a scale balancing accuracy and speed.
Python

python chardet vs charset normalizer: Which to Use

python chardet vs charset normalizer: Compare chardet and charset_normalizer for Python encoding detection: API, accuracy, performance, and migration considerations.

encoding detectionchardetcharset-normalizerpython libraries