Software Development Kit to interact with Globant Enterprise AI.
Project description
PyGEAI - SDK for Globant Enterprise AI
PyGEAI is a Software Development Kit (SDK) for interacting with Globant Enterprise AI. It comprises libraries, tools, code samples, and documentation to simplify your experience with the platform.
Repository
Find the PyGEAI source code and documentation in the following GitHub repository:
Configuration
Before using the SDK, you need to define GEAI_API_KEY ($SAIA_APITOKEN) and GEAI_API_BASE_URL ($BASE_URL). You can achieve this in three ways:
- Environment variables: Set
GEAI_API_KEYandGEAI_API_BASE_URLas environment variables in your operating system. - Credentials file: Create a file named credentials in the
.geaidirectory within your user home directory ($USER_HOME/.geai/credentials) and defineGEAI_API_KEYandGEAI_API_BASE_URLwithin this file. - Client instantiation: Specify the
api_keyandbase_urlparameters directly when creating an instance of a client class.
Note: If you plan to use the Evaluation Module, you must also define GEAI_API_EVAL_URL
Modules
The SDK consists of several modules, all accessible through a meta-package:
pygeai: This meta-package encapsulates all components of the SDK.pygeai-cli: This package provides a command-line tool for interacting with the SDK.pygeai-chat: This package offers facilities to chat with assistants/agents created in Globant Enterprise AI.pygeai-dbg: This package includes a debugger to troubleshoot potential SDK issues and gain detailed insights into its operations.pygeai-core: This package handles interactions with the fundamental components of Globant Enterprise AI, including users, groups, permissions, API keys, organizations, and Projects.pygeai-admin: This package enables interactions with the Globant Enterprise AI instance.pygeai-lab: This package facilitates interactions with AI LAB.pygeai-evaluation: This package provides functionality from the evaluation module.pygeai-gam: This package allows interaction with [GAM] (https://wiki.genexus.com/commwiki/wiki?24746,Table+of+contents%3AGeneXus+Access+Manager+%28GAM%29,).pygeai-assistant: This package handles interactions with various Assistants, including Data Analyst Assistants, RAG Assistants, Chat with Data Assistants, Chat with API Assistants, and Chat Assistants.pygeai-organization: This package facilitates interactions with Organizations in Globant Enterprise AI.pygeai-flows: This package enables interactions with Flows [in development].
Usage
Install PyGEAI
Use pip to install the package from PyPI:
(venv) ~$ pip install pygeai
To install pre-release versions, you can run:
(venv) ~$ pip install --pre pygeai
Verify installation
To check the installed PyGEAI version, run:
(venv) ~$ geai v
View help
To access the general help menu:
(venv) ~$ geai h
To view help for a specific command:
(venv) ~$ geai <command> h
Debugger
The pygeai-dbg package provides a command-line debugger (geai-dbg) for troubleshooting and inspecting the geai CLI.
It pauses execution at breakpoints, allowing you to inspect variables, execute Python code, and control program flow interactively.
To debug a geai command, replace geai with geai-dbg. For example:
(venv) ~$ geai-dbg ail lrs
This pauses at the main function in pygeai.cli.geai, displaying an interactive prompt (geai-dbg).
You can then use commands like continue (resume), run (run without pauses), quit (exit), or help (list commands).
Man Pages Documentation
The package includes Unix manual pages (man pages) for detailed command-line documentation.
To install man pages locally:
geai-install-man
To install man pages system-wide:
sudo geai-install-man --system
To access the man pages:
man geai
Setting up Man Pages Access
If you're using a virtual environment, you'll need to configure your system to find the man pages. Add the following to your shell configuration file (.bashrc, .zshrc, etc.):
# For macOS
if [ -n "$VIRTUAL_ENV" ]; then
export MANPATH="$VIRTUAL_ENV/share/man:$MANPATH"
fi
# For Linux
if [ -n "$VIRTUAL_ENV" ]; then
export MANPATH="$VIRTUAL_ENV/man:$MANPATH"
fi
After adding this configuration:
- Reload your shell configuration:
source ~/.bashrcorsource ~/.zshrc - The man pages will be available when your virtual environment is active
Bugs and suggestions
To report any bug, request features or make any suggestions, the following email is available:
Authors
Copyright 2025, Globant. All rights reserved
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
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 pygeai-0.2.7b6.tar.gz.
File metadata
- Download URL: pygeai-0.2.7b6.tar.gz
- Upload date:
- Size: 325.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bd378ce624b85cffd78c77b61819c116e78e86010822701a278f3d0ea79ef83
|
|
| MD5 |
3a5f00154258e5dd5bedfd50c87f4365
|
|
| BLAKE2b-256 |
c8d558667fa1874fd773cdea8749d115d50cba06df983c2eee1acc9ef0eb75b2
|
File details
Details for the file pygeai-0.2.7b6-py3-none-any.whl.
File metadata
- Download URL: pygeai-0.2.7b6-py3-none-any.whl
- Upload date:
- Size: 443.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a5c54e4e61f277af8003bf7b0c1a51737602ed650051229459f779c21052fd1
|
|
| MD5 |
22f3d0858145815f55a8f67c927ad068
|
|
| BLAKE2b-256 |
5db873d726fefc97f5e38ac0c46c91aedec3cc51f060cb915c4a87d055fad63e
|