Skip to content
@kitbuilder-lib

KitBuilder

KitBuilder is a library used for generating API-based and CLI-based SDK for multiple programming languages using only one definition file!

Python

KitBuilder

🔧KitBuilder🔧

KitBuilder is a library used for generating API-based and CLI-based SDK for multiple programming languages using only one definition file!

Tutorial

Initialization is pretty straight-forward. Simply install the package for your programming language, import and run build function.

Tutorial below showcases how to run KitBuilder on Python

  1. Install KitBuilder package
pip3 install kitbuilder
  1. Create YAML definition with the name of dog.api.yaml:
name: DogAPI
description: Showcase

environment:
    # Will be using DogCEO API
    API_URL: https://dog.ceo

functions:
    get:
        type: request

        args:
            - breed

        config:
            method: GET
            url: "%{{ [environment][API_URL] }}%/api/breed/%{{ [args][breed] }}%/images/random"
  1. Import and run!
from kitbuilder import Kit

DogAPI = Kit("dog.api.yaml").build()

api = DogAPI()

pitbull = api.get("pitbull")

print(pitbull.json())

Support

NOTE Since KitBuilder is currently v0.1, it will be heavily limited in functionality and usage across different programming languages. Goal is to have at least 5 different programming languages supported

Currently, KitBuilder is supported for:

  • Python

Popular repositories Loading

  1. kitbuilder kitbuilder Public

    KitBuilder is a library used for generating API-based and CLI-based SDK using only one file!

    Python 5

  2. .github .github Public

Repositories

Showing 2 of 2 repositories
  • .github Public
    kitbuilder-lib/.github’s past year of commit activity
    0 0 0 0 Updated May 18, 2023
  • kitbuilder Public

    KitBuilder is a library used for generating API-based and CLI-based SDK using only one file!

    kitbuilder-lib/kitbuilder’s past year of commit activity
    Python 5 0 24 0 Updated Feb 19, 2023

Top languages

Loading…

Most used topics

Loading…