Skip to content

Get started with Blipper

Initialize Blipper client

NOTE: skip to the code, if you are a developer.

To start using Blipper in your Python project, you first need to add the Blipper module to your project. This is like adding a new tool to your toolbox.

Next, you create something called a ‘Blipper’ object. You can think of this as configuring the Blipper with a couple of information so that it is personalized. This object helps you to use all the features Blipper offers. You create this helper using your unique Blipper API Key.

To get your own api_key, contact dev@atenea.ai.

You should replace ‘your blipper api key…’ with your actual Blipper API Key. This key is like a special password that allows your project to connect with Blipper and use its features.

Execute the following code in any IDE of your choice, PyCharm, VS Code, Spyder,..

1
2
3
4
from blipper import Configuration, ApiClient

conf = Configuration(host="https://blipper.epystemic.com", api_key="lqqRYOOnSerIOP973hjskR")
blipper_client = ApiClient(conf)

With the configured blipper instance, you can call any of the available functions. We show here how to use the translateText function to translate from one language to another.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
from blipper import Configuration, ApiClient
from blipper.api.text_api import TextApi

conf = Configuration(host="https://blipper.epystemic.com", api_key="lqqRYOOnSerIOP973hjskR")
blipper_client = ApiClient(conf)
textapi = TextApi(blipper_client)

headers = {
    "model": "galileo",
    "blipper-api-key": "lqqRYOOnSerIOP973hjskR"
}
result = textapi.translate_text({"text":"hello mate", "target_lang":"german"}, _headers=headers)
print(result)

translateText is just one example. Blipper offers multiple functions as listed in this documentation. One can just call any of these functions and make use of them. The real power of blipper lies when these functions are coupled one after another. All of these functions are described in blipper documentation.