Aristech NLP-Client for Python
This is the Python client implementation for the Aristech NLP-Server.
Installation
To install the package, you can use pip:
pip install aristech-nlp-client
Usage
from aristech_nlp_client import NlpClient
client = NlpClient(host='nlp.example.com')
response = client.run_functions(RunFunctionsRequest(
input='Hello, world!',
functions=[
Function(id="recasepunct-de")
]
))
print(response.output)
There are several examples in the examples directory:
- functions.py: Demonstrates how to list the available functions.
- run_functions.py: Demonstrates how to perform NLP processing on a text.
- projects.py: Demonstrates how to list the available projects.
- intents.py: Demonstrates how to list intents for a project.
- scoreLimits.py: Demonstrates how to use score limits to figure out good thresholds for intents.
- content.py: Demonstrates how to search content for a given prompt.
You can run the examples directly using python like this:
- Create a
.envfile in the python directory:
HOST=nlp.example.com
# The credentials are optional but probably required for most servers:
TOKEN=your-token
SECRET=your-secret
# The following are optional:
# ROOT_CERT=your-root-cert.pem # If the server uses a self-signed certificate
# PROJECT_ID=some-project-id # Required for some examples
- Run the examples, e.g.:
python examples/functions.py
Metadata
Release files for aristech-nlp-client 2.2.0
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 | Actions |
|---|---|---|---|---|
| aristech_nlp_client-2.2.0.tar.gz | 25.9 kB | Without provenance | Details for aristech_nlp_client-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aristech_nlp_client-2.2.0-py3-none-any.whl | Python 3 | none | any | Details for aristech_nlp_client-2.2.0-py3-none-any.whl |
Total release size: 55.6 kB
Release files / aristech_nlp_client-2.2.0.tar.gz
| Download URL | aristech_nlp_client-2.2.0.tar.gz |
|---|---|
| Size | 25.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3f44c26e5063ddb7dfb6f52d855257fe47b73ab00603cbd29c7897468d2f72f
|
|
BLAKE2b-256 checksum How to use checksums |
6b1a4dfaa5847c7f68ff6a25b42db648fe9b5b101c44ef355a9a9073e767cef9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.6
|
Release files / aristech_nlp_client-2.2.0-py3-none-any.whl
| Download URL | aristech_nlp_client-2.2.0-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54c02154a50d50815e5df5934c9bc8f06398d8ea1ee1a9383085a408d494d3ea
|
|
BLAKE2b-256 checksum How to use checksums |
cf5639eb138ef5a03af106973009fe4c7de1b36a811baf8330d06a4652d7c847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.6
|
Security for aristech-nlp-client 2.2.0
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.