Python client for the Articolare API
Project description
Articolare Python Client
Articolare is a Python client for the Articolare API. It is designed to facilitate interactions with the API, providing a simple and intuitive interface for creating and managing requests.
Installation
To install the Articolare Python client, you can use pip:
- Copy code
pip install articolare
Usage
First, you need to initialize the ArticolareClient with your API key:
from articolare import create
client = create.ArticolareClient(api_key="your-api-key"))
Create
You can then use the create method to make a request to the API:
- languages available:
- English
- Portuguese
- Spanish
- Italian
- Tokens:
- Max Tokens = 1000 - If you require more tokens, please refer to our documentation on https://www.articolare.com/
response = client.create(
model="art-translator",
lang="english",
style="conversation",
dialect="european"
prompt="Enter your prompt here",
max_tokens=1000
)
- The create method returns a dictionary containing the response data from the API.
Testing
This library includes a basic test suite, which you can run using pytest:
- pytest
pytest
License
The Articolare library is owned and managed by Articolare ltd.
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
Built Distribution
File details
Details for the file articolare-0.1.0.tar.gz
.
File metadata
- Download URL: articolare-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e83db3641a639eaf39f3be6859c9895a9a5673d6ff90635b2bfb92594e806881 |
|
MD5 | 7177103c7eb9632cbb985283be04dbae |
|
BLAKE2b-256 | 1b1968774431496d94cc7b8e9c6adabad8147dd00044fc96794ece461f0fa65f |
File details
Details for the file articolare-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: articolare-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ceb9bd16f7c6d473cef0ac4cdf43617be0d156909c8cb1959fc54de20a9a145 |
|
MD5 | 9a844787145e24d14c5820cde33e0094 |
|
BLAKE2b-256 | cfe1f933754f5c28cd447e0eda030027f89810bb96269e93031651b9921bd75b |