Tapipy

raw JSON →
25.4.0 verified Fri May 01 auth: no python

Python client library for the Tapis API Framework, providing programmatic access to Tapis services for HPC, cloud computing, and data management. Current version is 25.4.0, with frequent releases aligned to the Tapis platform.

pip install tapipy
error AttributeError: module 'tapipy' has no attribute 'Tapis'
cause Incorrect import; `Tapis` class is not at the top level.
fix
Use from tapipy.tapis import Tapis
error TypeError: __init__() got multiple values for argument 'base_url'
cause Passing `tenant_id` as first positional argument and also `base_url` as keyword in older code.
fix
Remove the positional argument and only use base_url=...
breaking In v25.x, the `Tapis` constructor no longer accepts `tenant_id` as a first positional argument; use `base_url` instead.
fix Replace `t = Tapis('dev', ...)` with `t = Tapis(base_url='https://dev.tapis.io', ...)`
deprecated The `tapis_available()` method is deprecated in v25.4.0 and may be removed in a future release.
fix Use `t.ping()` or check service availability via API calls.
gotcha Token management requires explicit refresh; the library does not automatically refresh expired tokens.
fix Call `t.get_tokens()` again or use a token refresh strategy.

Initialize a Tapis client and authenticate. Use environment variables for credentials.

from tapipy.tapis import Tapis
import os

t = Tapis(
    base_url=os.environ.get('TAPIS_BASE_URL', 'https://example.tapis.io'),
    username=os.environ.get('TAPIS_USERNAME', ''),
    password=os.environ.get('TAPIS_PASSWORD', '')
)
t.get_tokens()
print(t.tapis_available())