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)
```
Metadata
Release files for langai-client 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| langai-client-0.0.1.tar.gz | 1.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langai_client-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / langai-client-0.0.1.tar.gz
| Download URL | langai-client-0.0.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab54d97939afb2ceade3df566eaa96be7ceb39650bf691894b659fe82c542b4f
|
|
BLAKE2b-256 checksum How to use checksums |
6f0bf34d9136e227ac1ef451be2bf9ad7383e745621beb9f4dab38b26e3e46e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / langai_client-0.0.1-py3-none-any.whl
| Download URL | langai_client-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a257d15055bd8c84c0a535de261e21fc9a41d2d0c57eb3d11f3654ff33aaa1d7
|
|
BLAKE2b-256 checksum How to use checksums |
ffcef10834794f966824b88eae26bfb31dcb4e82cd0b4b50d18ed5f1af96777b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for langai-client 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.