Socket
Socket
Sign inDemoInstall

table-schema-to-markdown

Package Overview
Dependencies
0
Maintainers
3
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    table-schema-to-markdown

Generate Markdown documentation from a table schema file from Frictionless Data


Maintainers
3

Readme

Software License CircleCI PyPI PyPI Python version

Table Schema to Markdown

Create a Markdown documentation file from a Table Schema file.

The original scripts are coming from doc-generator for the Validata project, which are now available as an npm package.

Installation

pip install table-schema-to-markdown

Usage

Command line tool

The package provides a command line tool.

$ table-schema-to-md -h
usage: table-schema-to-md [-h] [-o OUTPUT] [--log LOG] table_schema

positional arguments:
  table_schema          path or URL of table schema file

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        Output file name
  --log LOG             level of logging messages

Example:

# Print generated Markdown
table-schema-to-md schema.json
# Save to Markdown file
table-schema-to-md schema.json -o documentation.md

In Python

from table_schema_to_markdown import convert_source

# Generate a Markdown documentation from a JSON file
table_schema = '/tmp/schema.json'
with open('/tmp/doc.md', 'a') as out:
    convert_source(table_schema, out)

# Generate Markdown documentation in a string
import io

with io.StringIO() as buff:
    convert_source(table_schema, buff)
    documentation = buff.getvalue()

Generated documentation example

This table schema file is rendered in Markdown in this file.

Find a generated documentation file below.

Métadonnées d'un répertoire Git

Modèle de données

NomTypeDescriptionExemplePropriétés
nomchaîne de caractèresLe nom du répertoirenom-repertoireValeur obligatoire
organisation_nomchaîne de caractèresLe nom de l'organisationetalabValeur obligatoire
plateformechaîne de caractèresLa plateforme de dépôt de codeGitHubValeur obligatoire, Valeurs autorisées : GitHub
repertoire_urlchaîne de caractères (format uri)L'URL vers le répertoirehttps://github.com/etalab/nom-repertoireValeur obligatoire
descriptionchaîne de caractèresLa description du répertoireCe répertoire est utileValeur optionnelle
est_forkbooléenIndique si le répertoire est un forkfalseValeur obligatoire
date_creationdate et heureLa date de création du répertoire2018-12-01T20:00:55ZValeur obligatoire
derniere_mise_a_jourdate et heureLa date de dernière mise à jour du répertoire2018-12-01T20:00:55ZValeur obligatoire
page_accueilchaîne de caractèresURL vers la page d'accueil du projethttps://etalab.gouv.frValeur optionnelle
nombre_starsnombre entierLe nombre de fois où le répertoire a été ajouté aux favoris42Valeur obligatoire, Valeur minimale : 0
nombre_forksnombre entierLe nombre de fois où le répertoire a été forké13Valeur obligatoire, Valeur minimale : 0
licencechaîne de caractèresLa licence du répertoire, telle que détectée par la plateformeMITValeur optionnelle
nombre_issues_ouvertesnombre entierLe nombre d'issues actuellement ouvertes0Valeur obligatoire, Valeur minimale : 0
langagechaîne de caractèresLe langage principal du répertoire, tel que détecté par la plateformePythonValeur optionnelle
topicschaîne de caractèresLes tags du répertoireutile,france,opendataValeur optionnelle

Notice

This software is available under the MIT license.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc