Skip to main content

ROCC Client Library for Python

Project description

ROCC Client Library for Python

GitHub Release GitHub CI GitHub License PyPi

Introduction

TBA

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

Requirements.

Python 2.7 and 3.4+

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 roccclient

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 roccclient

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function

import time
import roccclient
from roccclient.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://rocc.org/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = roccclient.Configuration(
    host = "https://rocc.org/api/v1"
)



# Enter a context with an instance of the API client
with roccclient.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = roccclient.ChallengeApi(api_client)
    challenge = roccclient.Challenge() # Challenge |

    try:
        # Add a challenge
        api_response = api_instance.create_challenge(challenge)
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ChallengeApi->create_challenge: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://rocc.org/api/v1

Class Method HTTP request Description
ChallengeApi create_challenge POST /challenges Add a challenge
ChallengeApi delete_challenge DELETE /challenges/{challengeId} Delete a challenge
ChallengeApi get_challenge GET /challenges/{challengeId} Get a challenge
ChallengeApi list_challenges GET /challenges List all the challenges
GrantApi create_grant POST /grants Create a grant
GrantApi delete_grant DELETE /grants/{grantId} Delete a grant
GrantApi get_grant GET /grants/{grantId} Get a grant
GrantApi list_grants GET /grants Get all grants
OrganizationApi create_organization POST /organizations Create an organization
OrganizationApi delete_organization DELETE /organizations/{organizationId} Delete an organization
OrganizationApi get_organization GET /organizations/{organizationId} Get an organization
OrganizationApi list_organizations GET /organizations Get all organizations
PersonApi create_person POST /persons Create a person
PersonApi delete_person DELETE /persons/{personId} Delete a person
PersonApi get_person GET /persons/{personId} Get a person
PersonApi list_persons GET /persons Get all persons
TagApi create_tag POST /tags Create a tag
TagApi delete_tag DELETE /tags/{tagId} Delete a tag
TagApi get_tag GET /tags/{tagId} Get a tag
TagApi list_tags GET /tags Get all tags

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

thomas.schaffter@sagebionetworks.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rocc-client-0.1.3.tar.gz (36.5 kB view details)

Uploaded Source

File details

Details for the file rocc-client-0.1.3.tar.gz.

File metadata

  • Download URL: rocc-client-0.1.3.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for rocc-client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d0ebc7beb890012b38e71feafdfb41764c2783add0e2c5e6dec55eb3fbd1357b
MD5 fc3ce49fc42b2f5dbb4f288639ef39b9
BLAKE2b-256 c373b845237b9e2470433e7f5f5d14f56accf436a35e00e06d4394abe8c5a455

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page