Skip to main content

A Python-Markdown extension for converting .csv file to markdown tables inline.

Project description

Python Markdown Extension: csv2md

See: https://pypi.org/project/mdtable/

Settings

Setting Default Description
base_path '.' Base path from where relative paths are calculated.
padding 1 Padding to use in raw formatted markdown table.
delimiter ',' Delimiter character in CSV file.
quotechar '"' Quote character in CSV file.
escapechar '' Escape character in CSV file.

Example Input

@csv"./path/to/my/file.csv"

Example Output (markdown)

|Code              |Prompt                           |Type     |Required|
|------------------|---------------------------------|---------|--------|
|question_type     |Question Type                    |select   |Yes     |
|                  |facet                            |         |No      |
|                  |value                            |         |No      |
|                  |hybrid                           |         |No      |
|facet_field       |Facet Field                      |text     |No      |
|keyword           |Keyword (over heading)           |text     |No      |
|short_description |Short Description (under heading)|memo     |No      |
|long_description  |Long Description (in popup)      |memo     |No      |
|load_answer_images|Load Answer Images               |checkbox |No      |
|disable_when_true |Disable When True                |multitext|No      |

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymdown-csv2md-1.2.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

pymdown_csv2md-1.2.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pymdown-csv2md-1.2.0.tar.gz.

File metadata

  • Download URL: pymdown-csv2md-1.2.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pymdown-csv2md-1.2.0.tar.gz
Algorithm Hash digest
SHA256 8be0e84c4e970c95fedda65ebf73446323b82f2fb85b16178e5f244531767b1d
MD5 feace7ccbce19735297b8240f83363bc
BLAKE2b-256 8bfc534e97fff3d55ea8ee3ed541f99713293278b4f3f8a2286221212dbd73ca

See more details on using hashes here.

File details

Details for the file pymdown_csv2md-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pymdown_csv2md-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pymdown_csv2md-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ccb8eb3c4b6183a75c474b4c14470e170d5988d14dc77f48a596b9d84692e43
MD5 9ba4f1e7186f47855a52ecee573225a0
BLAKE2b-256 1e9751710385155ef741db9cf77a825367578001262941ac0c2f1a7b49b3c437

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page