Sixth Documentation
  • Welcome 🥳
  • Installation
    • 😚Java Springboot
      • Install, Configure and Verify
    • 😁Python
      • Install, Configure and Verify
    • 🔥Node Js
      • Install, Configure and Verify
    • 😎Coming Soon
    • 🥳Php
      • Install, Configure and Verify
  • Rate Limiting
    • 🖥️Rate Limit (Like a pro)
    • 😤Advanced
      • 💀Rate Limit by IP address
      • 😈Rate Limit by Headers
      • 👑Rate limit by Body
    • 🤔Best Practices and Recommendations
  • Integrations
Powered by GitBook
On this page
  • Install
  • Configure
  • Verify
  1. Installation
  2. Python

Install, Configure and Verify

PreviousPythonNextNode Js

Last updated 1 year ago

Install

Sixth SDK is currently only available for 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

😁
fastapi