Skip to main content

CLI tools for generating documentation and config schemas for Keboola Component development

Project description

kcf-tools is a CLI tool for making Python Component development for Keboola Connection faster and easier.

PYPI project : https://pypi.org/project/kcf-tools/

It provides the following functionality;

  • Generating Configuration Schemas for the UI of Keboola Components
  • Generating ReadMe files for Keboola Components
  • Generating documentation for Keboola Components for help.keboola.com
  • Generating key definitions for parameters of Keboola Components
  • Generating a client skeleton for Keboola Components

Installation

The package may be installed via PIP:

pip install kcf-tools

Functionality

The CLI provides multiple subcommands for various tasks for information on all subcommands run:

kcf-tools -h

Generate subcommand

The generate subcommand is used for generating various files for you component. To list all possible generate commands run:

kcf-tools generate -h

Generate ReadMe

The readme generator uses the component config to generate a readme file. The readme file is then saved in generated/readme directory. To generate a readme run:

kcf-tools generate readme

If you want to write directly to your component ReadMe then add the tag -w:

kcf-tools generate readme -w

Help Documentation Generator

The doc generator uses the component config to generate an index.md in the necessary directory. The documentation files are then saved in generated directory. To generate a docs run:

kcf-tools generate docs

Config Schema Generator

The Config Schema Generator will take the parameters in the config.json and create a config schema and config row schema based on some questions answered with the cli tool. The config schemas are saved to a "generated/config_schemas" directory. To generate your config schemas run :

kcf-tools generate config_schema

If you want to write directly to your component "component_config" directory then add the tag -w:

kcf-tools generate config_schema -w

Key Definition Generator

The Key Definition Generator will use the config.json file to generate all key definitions. These will then be printed to the command line. To generate your key definitions run :

kcf-tools generate key_definitions

Client Generator

The Client Generator will generate a skeleton for your component client with the Keboola Http-Client library. The Client will be saved to the "generated/client" directory. To generate a client run:

kcf-tools generate client

If you want to write directly to your component src directory then add the tag -w:

kcf-tools generate client -w

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

kcf-tools-0.1.5.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

kcf_tools-0.1.5-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file kcf-tools-0.1.5.tar.gz.

File metadata

  • Download URL: kcf-tools-0.1.5.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for kcf-tools-0.1.5.tar.gz
Algorithm Hash digest
SHA256 67bf4c8474e35b7b2c6948ee2e92c8a90c8e27f482ba9358177594e193364b25
MD5 26f1b5aacd6b004f0005cbf68940d685
BLAKE2b-256 eed37687e0b5c914cdfa0f12753d38aa3b1189da79a255d5c05fd5a223749aaa

See more details on using hashes here.

File details

Details for the file kcf_tools-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: kcf_tools-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for kcf_tools-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d51cd5aaaee14569b9e6a0409bdb5965ccaa0ec733f5eb013174b2dba0e47c05
MD5 f30a35bc3a314113153afb0e7058cdd5
BLAKE2b-256 1590e90c619ba656b0f2e20b9153b511f90e9631c1b061faa5d512b0927f652b

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