Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pygeai-gam - GeneXus Access Manager Client

Standalone OAuth client for GeneXus Access Manager (GAM) with support for multiple grant types including PKCE.

Features

  • Multiple OAuth Grant Types:

    • Password Grant (Resource Owner Password Credentials)
    • Authorization Code Grant
    • Authorization Code with PKCE (Proof Key for Code Exchange)
  • Secure OAuth Flow:

    • Built-in callback server for authorization code flow
    • PKCE support for enhanced security
    • Token management and refresh
  • CLI Support:

    • Interactive token acquisition
    • Configuration management
    • Multiple authentication workflows

Installation

pip install pygeai-gam

Quick Start

Password Grant Flow

from pygeai_gam import GAMClient

client = GAMClient(
    base_url="https://your-gam-server.com",
    client_id="your_client_id",
    client_secret="your_client_secret"
)

token = client.get_access_token_password_grant(
    username="user@example.com",
    password="your_password"
)

print(f"Access Token: {token['access_token']}")

Authorization Code Flow with PKCE

from pygeai_gam import GAMClient

client = GAMClient(
    base_url="https://your-gam-server.com",
    client_id="your_client_id",
    use_pkce=True
)

token = client.get_access_token_authorization_code(
    redirect_uri="http://localhost:8080/callback",
    scope="openid profile email"
)

print(f"Access Token: {token['access_token']}")

Migration from pygeai.gam

If you were using GAM from the pygeai package, update your imports:

# Before
from pygeai.gam.clients import GAMClient
from pygeai.gam.endpoints import GAM_ENDPOINTS

# After
from pygeai_gam import GAMClient
from pygeai_gam.endpoints import GAM_ENDPOINTS

Update your dependencies:

# Before
pip install pygeai

# After
pip install pygeai-gam

Automated Migration

Use the migration script to update your codebase:

# Install pygeai with migration tools
pip install pygeai>=0.7.0

# Run migration script
migrate-pygeai-gam /path/to/your/project

# Preview changes without modifying files
migrate-pygeai-gam /path/to/your/project --dry-run

CLI Usage

# Get access token using password grant
gam-cli token password \
  --base-url https://your-gam-server.com \
  --client-id your_client_id \
  --client-secret your_client_secret \
  --username user@example.com \
  --password your_password

# Get access token using authorization code with PKCE
gam-cli token auth-code \
  --base-url https://your-gam-server.com \
  --client-id your_client_id \
  --redirect-uri http://localhost:8080/callback \
  --use-pkce

Documentation

Full documentation is available in the docs/ directory.

Development

# Navigate to package directory
cd pygeai-gam

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run linter
ruff check .

# Format code
black .

Requirements

  • Python >= 3.10
  • requests >= 2.31.0
  • pydantic >= 2.11.3

License

MIT License - See LICENSE file for details

Bugs and Suggestions

To report any bug, request features or make any suggestions, the following email is available:

geai-sdk@globant.com

Terms and Conditions

By using this package, you agree to the Globant Enterprise AI Terms of Use.

Authors

Copyright 2025, Globant. All rights reserved

Metadata

Release files for pygeai-gam 0.1.0b2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygeai-gam 0.1.0b2
File Size Uploaded Provenance Actions
pygeai_gam-0.1.0b2.tar.gz 34.6 kB Without provenance Details for pygeai_gam-0.1.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygeai-gam 0.1.0b2
File Interpreter ABI Platform Actions
pygeai_gam-0.1.0b2-py3-none-any.whl Python 3 none any Details for pygeai_gam-0.1.0b2-py3-none-any.whl

Total release size: 57.8 kB

Release files / pygeai_gam-0.1.0b2.tar.gz

Download URL pygeai_gam-0.1.0b2.tar.gz
Size 34.6 kB
Tags Source
SHA-256 checksum
How to use checksums
386ee1375b88dd75b879cec958ec276adc5e912f5aeadbaefc6e864da67d6307
BLAKE2b-256 checksum
How to use checksums
c98eed7b26e02e435223eef71ca2fe3333fea77ea657c3bad1719fd8662156e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / pygeai_gam-0.1.0b2-py3-none-any.whl

Download URL pygeai_gam-0.1.0b2-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfae8a5529b8319118fd54ebab7553c3bfd3bb106185f6c462e90858d509ae35
BLAKE2b-256 checksum
How to use checksums
cac596e92e09f4e5761f892ab44057d3426d7267176c267b41232378f9fda521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for pygeai-gam 0.1.0b2

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.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page