Judini python package
Project description
Judini Python Package
This package provides you with an easy way to interact with the Judini API in your Python applications.
Install
To install the package, simply run the following command:
pip install judini
Usege
Below is a sample code demonstrating how to use the Judini package in your Python application:
# Import the package
import asyncio
from judini.agent import Agent
def main():
# Replace with your actual API key and URL ID
api_key = "your_api_key_here"
agent_id = "your_agent_id_here"
# Initialize the Judini class
agent_instance = Agent(api_key, agent_id)
# Optional: update API key or URL ID if needed
agent_instance.set_api_key("new_api_key")
agent_instance.set_agent_id("new_agent_id")
# Create the prompt
prompt = 'Escribeme un parrafo de un cuento sobre una tortuga azul'
# Make a completion request
response = asyncio.run(agent_instance.completion(prompt, stream=False))
# Handle the response as needed
print(response)
if __name__ == "__main__":
main()
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
judini-dev-0.0.11.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file judini-dev-0.0.11.tar.gz.
File metadata
- Download URL: judini-dev-0.0.11.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b63bd094d5a578c6a93c050d35a2f0cdcfa1f5ceda578bfc1517d97d7894d3e
|
|
| MD5 |
6966e59fa4f3b1d75c6c7463272dcb9f
|
|
| BLAKE2b-256 |
620de23da03f5a71d4b95daf73b811e4f3e0a183002f2b1025cdecd2ccf62f76
|
File details
Details for the file judini_dev-0.0.11-py3-none-any.whl.
File metadata
- Download URL: judini_dev-0.0.11-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1481f56116a528ee1920672baaaa568cdbd1b0f19a3145e556989b902675fbab
|
|
| MD5 |
440e33bad4c0a7a2fb5510e32f584662
|
|
| BLAKE2b-256 |
e52d8b0d6a09cf0c1d3239343f729b1cff9ecd20ac931e90547cef0eff60a0a3
|