Install, Configure and Verify

Install

Sixth SDK is currently only available for fastapi and can be installed as followed.

pip install sixth-python

Configure

Configuration should happen on the main entry point of your application, this should happen in the same file that holds the class or function that starts the FastAPI application and holds a reference to your FastAPI application object.

#import sixth SDK
from sixth.sdk import Sixth
from fastapi import FastAPI

app = FastAPI()
# initalize app, add routes, middleware, exception handlers etc


#....
Sixth(apikey="api_key", app=app).init()
if __name__ == "__main__":
    uvicorn.run(app, host=host, port=PORT)

Sixth dynamically auto-syncs with your codebase, meaning for every endpoint you add or remove from your codebase, sixth automatically detects every endpoint's lifecycle and updates your dashboard accordingly with the details that particular endpoint.

Verify

After configuring Sixth with your application, head over to your dashboard and click on rate limiting, if you have configured everything all your endpoint should be listed there. If not please send us an email at ope@trysixth.com

Last updated