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

  1. kitbuilder kitbuilder Public

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

    Python 4

  2. .github .github Public

Repositories

Showing 2 of 2 repositories
  • .github Public
    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!

    Python 4 0 24 0 Updated Feb 19, 2023

Top languages

Loadingā€¦

Most used topics

Loadingā€¦