Skip to content

Python library for interacting with Tapis!

Notifications You must be signed in to change notification settings

BranRitz/python-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tapy - Tapis V3 Python SDK

Python library for interacting with an instance of the Tapis API Framework.

Development

This project is under active development, exploring different approaches to SDK generation. In particular, we have started work on a "dynamic" SDK, located in the dyna package within the main tapy package. See the docs within that section.

Installation

TODO - setup on pypi, e.g.,

pip install tapylib

Usage

TODO - provide working examples, e.g.,

import tapy
t = tapy.Tapis(base_url='http://localhost:5001')
req = t.tokens.NewTokenRequest(token_type='service', token_tenant_id='dev', token_username='admin')
t.tokens.create_token(req)

import openapi_client
configuration = openapi_client.Configuration()
configuration.host = 'http://localhost:5001'
api_instance = openapi_client.TokensApi(openapi_client.ApiClient(configuration))

new_token = openapi_client.NewTokenRequest(token_type='service', token_tenant_id='dev', token_username='admin')

resp = api_instance.create_token(new_token)
jwt = resp.get('result').get('access_token').get('access_token')

About

Python library for interacting with Tapis!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%