Quick Start

The Nimble Python Client Library is super easy to use! We Prepared an example for you to quickly leverage it in your own projects.

It read's like english!

from nimbleway.webapi import WebApi
from nimbleway.client import Client
from nimbleway.ask import AskNimble


def nimble_workflow(): 
    client = Client(token="<YOUR NIMBLE TOKEN>")
    
    # Ask a Question from a web domain
    # Here we are analyzing a very special tech startup website, trying to figure out how it works
    response = AskNimble(client).ask_domain_retreival(["https://www.nimbleway.com"],
                                            ["What does Nimble do?", "What is the Nimble Browser?"])
    
    print(response)

    # Ask a Question about an online pipeline
    # Here we are analyzing real-estate data gathered by Nimble
    response = AskNimble(client).ask_online_pipeline(pipeline_id=137, questions=["what's the most expensive apartment for rent in NYC in October?"])
    print(response)


if __name__ == '__main__':
    nimble_workflow()

Last updated