Balsam Python client API & SDK

Overview

balsam

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1.0
  • Package version: 0.0.1
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python >= 3.6

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import balsam

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import balsam

Getting Started

Please follow the installation procedure and then run the following:

create_apps_post: %s\n" % e) ">
import time
import balsam
from pprint import pprint
from balsam.api import apps_api
from balsam.model.app_create import AppCreate
from balsam.model.app_out import AppOut
from balsam.model.app_update import AppUpdate
from balsam.model.http_validation_error import HTTPValidationError
from balsam.model.paginated_apps_out import PaginatedAppsOut
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = balsam.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure OAuth2 access token for authorization: OAuth2PasswordBearer
configuration = balsam.Configuration(
    host = "http://localhost"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'


# Enter a context with an instance of the API client
with balsam.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = apps_api.AppsApi(api_client)
    app_create = AppCreate(
        site_id=3,
        name="NWChemGeomOpt",
        serialized_class="serialized_class_example",
        source_code="source_code_example",
        description="NWChem7 geometry optimizer",
        parameters={
            "key": AppParameter(
                required=True,
                default="default_example",
                help="",
            ),
        },
        transfers={
            "key": TransferSlot(
                required=True,
                direction=BalsamSchemasAppsTransferDirection("in"),
                local_path="local_path_example",
                description="",
                recursive=False,
            ),
        },
    ) # AppCreate | 

    try:
        # Create
        api_response = api_instance.create_apps_post(app_create)
        pprint(api_response)
    except balsam.ApiException as e:
        print("Exception when calling AppsApi->create_apps_post: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AppsApi create_apps_post POST /apps/ Create
AppsApi delete_apps_app_id_delete DELETE /apps/{app_id} Delete
AppsApi list_apps_get GET /apps/ List
AppsApi read_apps_app_id_get GET /apps/{app_id} Read
AppsApi update_apps_app_id_put PUT /apps/{app_id} Update
AuthApi get_auth_methods_auth_how_get GET /auth/how Get Auth Methods
AuthApi login_auth_password_login_post POST /auth/password/login Login
AuthApi profile_auth_password_me_get GET /auth/password/me Profile
AuthApi register_auth_password_register_post POST /auth/password/register Register
BatchJobsApi bulk_update_batch_jobs_patch PATCH /batch-jobs/ Bulk Update
BatchJobsApi create_batch_jobs_post POST /batch-jobs/ Create
BatchJobsApi delete_batch_jobs_batch_job_id_delete DELETE /batch-jobs/{batch_job_id} Delete
BatchJobsApi list_batch_jobs_get GET /batch-jobs/ List
BatchJobsApi read_batch_jobs_batch_job_id_get GET /batch-jobs/{batch_job_id} Read
BatchJobsApi update_batch_jobs_batch_job_id_put PUT /batch-jobs/{batch_job_id} Update
EventsApi list_events_get GET /events/ List
JobsApi bulk_create_jobs_post POST /jobs/ Bulk Create
JobsApi bulk_update_jobs_patch PATCH /jobs/ Bulk Update
JobsApi delete_jobs_job_id_delete DELETE /jobs/{job_id} Delete
JobsApi list_jobs_get GET /jobs/ List
JobsApi query_delete_jobs_delete DELETE /jobs/ Query Delete
JobsApi query_update_jobs_put PUT /jobs/ Query Update
JobsApi read_jobs_job_id_get GET /jobs/{job_id} Read
JobsApi update_jobs_job_id_put PUT /jobs/{job_id} Update
SessionsApi acquire_sessions_session_id_post POST /sessions/{session_id} Acquire
SessionsApi create_sessions_post POST /sessions/ Create
SessionsApi delete_sessions_session_id_delete DELETE /sessions/{session_id} Delete
SessionsApi list_sessions_get GET /sessions/ List
SessionsApi tick_sessions_session_id_put PUT /sessions/{session_id} Tick
SitesApi create_sites_post POST /sites/ Create
SitesApi delete_sites_site_id_delete DELETE /sites/{site_id} Delete
SitesApi list_sites_get GET /sites/ List
SitesApi read_sites_site_id_get GET /sites/{site_id} Read
SitesApi update_sites_site_id_put PUT /sites/{site_id} Update
TransfersApi bulk_update_transfers_patch PATCH /transfers/ Bulk Update
TransfersApi list_transfers_get GET /transfers/ List
TransfersApi read_transfers_transfer_id_get GET /transfers/{transfer_id} Read
TransfersApi update_transfers_transfer_id_put PUT /transfers/{transfer_id} Update

Documentation For Models

Documentation For Authorization

OAuth2PasswordBearer

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A

Author

Notes for Large OpenAPI documents

If the OpenAPI document is large, imports in balsam.apis and balsam.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:

Solution 1: Use specific imports for apis and models like:

  • from balsam.api.default_api import DefaultApi
  • from balsam.model.pet import Pet

Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:

import sys
sys.setrecursionlimit(1500)
import balsam
from balsam.apis import *
from balsam.models import *
Owner
Darren Govoni
Darren Govoni
Construindo API's robustas utilizando Python

🐂 Construindo API's robustas utilizando Python Neste tutorial vamos aprender a construir API's utilizando Python e FastAPI, integrá-las a serviços ex

luizalabs 296 Dec 13, 2022
Telegram bot for stream music on telegram, powered by py-tgcalls and Pyrogram

Telegram Streamer Bot Telegram bot for stream music on telegram, powered by py-tgcalls and Pyrogram ✨ Features Coming soon, help me to improve it 🛠 C

Shohih Abdul 11 Oct 21, 2022
❤️ Hi There Im EzilaX ❤️ A next gen powerful telegram group manager bot 😱 for manage your groups and have fun with other cool modules Made By Sadew Jayasekara 🔥

❤️ EzilaX v1 ❤️ Unmaintained. The new repo of @EzilaXBot is Public. (It is no longer based on this source code. The completely rewritten bot available

Sadew Jayasekara 18 Nov 24, 2021
gnosis safe tx builder

Ape Safe: Gnosis Safe tx builder Ape Safe allows you to iteratively build complex multi-step Gnosis Safe transactions and safely preview their side ef

228 Dec 22, 2022
this is an op music pyrogram music bot.

amanrajputpytgcallmusic this is an op music pyrogram music bot..... this bot user music bot can play music without being admin...... TG-MusicPlayer A

2 Dec 27, 2021
ANKIT-OS/TG-SESSION-GENERATOR-BOTbisTG-SESSION-GENERATOR-BOT a special repository. Its Is A Telegram Bot To Generate String Session

ANKIT-OS/TG-SESSION-GENERATOR-BOTbisTG-SESSION-GENERATOR-BOT a special repository. Its Is A Telegram Bot To Generate String Session

ANKIT KUMAR 1 Dec 26, 2021
Dicha herramienta esta creada con una api... esta api permite enviar un SMS cada 12 horas dependiendo del pais... Hay algunos paises y operadoras no están soportados.

SMSFree pkg install python3 pip install requests git clone https://github.com/Hidden-parker/SMSFree cd SMSFree python sms.py DISFRUTA... Dicha herrami

piter 2 Nov 14, 2021
A collective list of free APIs for use in software and web development.

Public APIs A collective list of free APIs for use in software and web development. A public API for this project can be found here! For information o

222.5k Jan 02, 2023
TG-Streaming-bot - TG Simple Streaming bot

TG Simple Streaming bot telegram video straming bot 🎚️ Features Play youtube li

HyDrix 4 May 05, 2022
Music bot for playing music on telegram voice chat group.

Somali X Music 🎵 Music bot for playing music on telegram voice chat group. Requirements FFmpeg NodeJS nodesource.com Python 3.8+ or Higher PyTgCalls

Abdisamad Omar Mohamed 4 Dec 01, 2021
A google search telegram bot.

Google-Search-Bot A google search telegram bot. Made with Python3 (C) @FayasNoushad Copyright permission under MIT License License - https://github.c

Fayas Noushad 37 Nov 24, 2022
Tglogging - A python package to send your app logs to a telegram chat in realtime

Telegram Logger A simple python package to send your app logs to a telegram chat

SUBIN 60 Dec 27, 2022
A smart tool to backup members 📈 So you even after a raid/ ban you can easily restore them in seconds 🎲

🤑 Discord-backer 🤑 A open-source Discord member backup and restore tool for your server. This can help you get all your members in 5 Seconds back af

John 29 Dec 21, 2022
A Python library for the Discourse API

pydiscourse A Python library for working with Discourse. This is a fork of the original Tindie version. It was forked to include fixes, additional fun

Ben Lopatin 72 Oct 14, 2022
Unofficial instagram API, give you access to ALL instagram features (like, follow, upload photo and video and etc)! Write on python.

Instagram-API-python Unofficial Instagram API to give you access to ALL Instagram features (like, follow, upload photo and video, etc)! Written in Pyt

Vladimir Bezrukov 1 Nov 19, 2021
Cutting-edge GitHub page customization tool

Cutting-edge GitHub page customization tool Want to customize your GitHub user page, but don't know how? Now you can make your profile unique and attr

Igor Vaiman 32 Aug 24, 2022
This bot can stream audio or video files and urls in telegram voice chats :)

Voice Chat Streamer This bot can stream audio or video files and urls in telegram voice chats :) 🎯 Follow me and star this repo for more telegram bot

Anjana Madu 63 Dec 25, 2022
Simple Discord bot which logs several events in your server

logging-bot Simple Discord bot which logs several events in your server, including: Message Edits Message Deletes Role Adds Role Removes Member joins

1 Feb 14, 2022
Automation for grabbing keys from a Linux host. Useful during red team exercises to quickly help assess what access to a Linux host can lead to.

keygrabber Automation for grabbing keys from a Linux host. This can be helpful during red team exercises when you gain access to a Linux host and want

Cedric Owens 14 Sep 27, 2022
Python3 based bittrex rest api wrapper

bittrex-rest-api This open source project was created to give an understanding of the Bittrex Rest API v1.1/v3.0 in pearl language. The sample file sh

4 Nov 15, 2022