Skip to content

Conjunto de ferramentas e bibliotecas para interação com a plataforma Gravscale.

Notifications You must be signed in to change notification settings

gravscale/gravscale-sdk

Repository files navigation

gravscale

API pública da Gravscale oferece aos usuários a capacidade de se autenticar, visualizar e contratar produtos disponíveis, enviar dados de contratação, escolher formas de pagamento e gerenciar nossos produtos. Além disso, os usuários podem cadastrar chaves SSH e realizar o deploy de um sistema operacional de forma eficiente e segura. Esta API foi projetado para simplificar e agilizar o gerenciamento de recursos proporcionando que a a Gravscale forneça uma experiência integrada e intuitiva para os usuários.

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

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.5.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

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

pip install git+https://github.com/gravscale/gravscale-sdk.git

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

Then import the package:

import gravscale

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 gravscale

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import gravscale
from gravscale.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = gravscale.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
with gravscale.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = gravscale.AuthenticationApi(api_client)
    login_schema = gravscale.LoginSchema() # LoginSchema | 

    try:
        # Sign In
        api_response = api_instance.sign_in(login_schema)
        print("The response of AuthenticationApi->sign_in:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AuthenticationApi->sign_in: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
AuthenticationApi sign_in POST /api/auth/sign-in Sign In
AuthenticationApi sign_up POST /api/auth/sign-up Sign Up
MetalApi get_metal GET /api/metal/ Get Available Metals

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

HTTPBearer

  • Type: Bearer authentication

Author

About

Conjunto de ferramentas e bibliotecas para interação com a plataforma Gravscale.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages