A LangAI API client written in Python.
Project description
# langai-python [![travis](https://api.travis-ci.com/lang-ai/langai-python.svg?branch=master)](https://travis-ci.com/lang-ai/langai-python)
A LangAI API client written in Python.
Check the [API Docs](https://docs.lang.ai) and the [Developer site](https://lang.ai/developers) for more info on how to use and integrate the API.
> To work with the LangAI API, you must have a token. If you don't have a token already, [request an invite](https://lang.ai/developers).
## Installation
Install [`langai-python`](https://www.npmjs.com/package/langai-python) in your python project with pip.
```
pip install -u langai
```
See the example below on how to import and use the LangAI API to analyze intents in new texts. A projectId is required. Check the [`workflow`](https://docs.lang.ai/#workflow) documentation to get an overview of the process.
## Usage
```python
from langai import LangAiClient
lang = LangAiClient("your_token")
params = {
text: 'your-text',
projectId: 'your-projectId',
}
result = lang.analyze(**params)
print(result)
```
A LangAI API client written in Python.
Check the [API Docs](https://docs.lang.ai) and the [Developer site](https://lang.ai/developers) for more info on how to use and integrate the API.
> To work with the LangAI API, you must have a token. If you don't have a token already, [request an invite](https://lang.ai/developers).
## Installation
Install [`langai-python`](https://www.npmjs.com/package/langai-python) in your python project with pip.
```
pip install -u langai
```
See the example below on how to import and use the LangAI API to analyze intents in new texts. A projectId is required. Check the [`workflow`](https://docs.lang.ai/#workflow) documentation to get an overview of the process.
## Usage
```python
from langai import LangAiClient
lang = LangAiClient("your_token")
params = {
text: 'your-text',
projectId: 'your-projectId',
}
result = lang.analyze(**params)
print(result)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langai-client-0.0.1.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for langai_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a257d15055bd8c84c0a535de261e21fc9a41d2d0c57eb3d11f3654ff33aaa1d7 |
|
MD5 | 9e062e4d0685fbfe00a1ea0843e3cb19 |
|
BLAKE2b-256 | ffcef10834794f966824b88eae26bfb31dcb4e82cd0b4b50d18ed5f1af96777b |