Registry / serialization / markdowntable

markdowntable

JSON →
library6.0.0pypypi✓ verified 84d ago

A Python library for creating Markdown tables easily. Version 6.0.0 supports Python 3.7+ and provides a simple API to generate table strings. Earlier versions had different import paths and API.

pip install markdowntable
INSTALL
IMPORT
SIG · MARKDOWNTABLE
M
markdowntable
serializationpythonv6.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

markdowntable
import markdowntable
from markdowntable import MarkdownTable
v6.0.0 uses direct module-level functions; no class import.

Create a simple markdown table with header and rows.

import markdowntable table = markdowntable.create( header=["Name", "Age", "City"], rows=[ ["Alice", 30, "New York"], ["Bob", 25, "London"], ["Charlie", 35, "Paris"] ] ) print(table)
Debug
Known issues
breakingIn v6.0.0, the API changed from class-based to module-level functions. Importing `MarkdownTable` from `markdowntable` will fail.
fix
Use `import markdowntable` and call `markdowntable.create()` instead.
affects: >=6.0.0
deprecatedThe `MarkdownTable` class was deprecated in v5.x and removed in v6.0.0. Code using `from markdowntable import MarkdownTable` will break.
fix
Migrate to `import markdowntable` and use `markdowntable.create()`.
affects: v6.0.0
gotchaThe `create()` function expects a list of lists for `rows`, not a list of dicts or tuples. Mixing types may cause errors or incorrect table output.
fix
Ensure each row is a list of values matching the header length.
affects: all
Errors
Common errors & fixes
AttributeError: module 'markdowntable' has no attribute 'MarkdownTable'
Importing the class name instead of the module.
fix
Use `import markdowntable` and `table = markdowntable.create(...)`.
TypeError: create() missing 2 required positional arguments: 'header' and 'rows'
Calling `create()` without required arguments.
fix
Provide both `header` (list of strings) and `rows` (list of lists).
Upgrade
Version history
6.0.0latest on PyPI · released Mar 18, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
markdowntable — pip install markdowntable · libregistry