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
articolare-0.1.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for articolare-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ceb9bd16f7c6d473cef0ac4cdf43617be0d156909c8cb1959fc54de20a9a145 |
|
MD5 | 9a844787145e24d14c5820cde33e0094 |
|
BLAKE2b-256 | cfe1f933754f5c28cd447e0eda030027f89810bb96269e93031651b9921bd75b |