Skip to main content

Cliente Python para a API do StackSpot

Project description

StackSpot Client Python

Cliente Python oficial para interagir com a API do StackSpot.

Instalação

pip install stackspot-client

Uso Básico

from stackspot_client import StackSpotConfig, StackSpotClient

# Configuração do cliente
config = StackSpotConfig(
    base_url='https://genai-code-buddy-api.stackspot.com',
    auth_url='https://idm.stackspot.com/stackspot-freemium/oidc/oauth/token',
    client_id='seu_client_id',
    client_secret='seu_client_secret'
)

# Criando instância do cliente
client = StackSpotClient(config)

# Executando um comando
execution_id = client.execute_command('seu_comando', {'dados': 'exemplo'})

# Obtendo o resultado
result = client.get_execution_result(execution_id)
print(result)

Recursos

  • Autenticação automática
  • Tratamento de erros
  • Retry automático em caso de falhas
  • Suporte a diferentes tipos de respostas

Documentação

Para mais informações sobre a API do StackSpot, consulte a documentação oficial.

Licença

Este projeto está licenciado sob a licença MIT - veja o arquivo LICENSE para mais detalhes.

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

stackspot_client-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stackspot_client-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file stackspot_client-0.1.0.tar.gz.

File metadata

  • Download URL: stackspot_client-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for stackspot_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2459e4df3b4020a930bb80e4b79f837cf15a6b8d33e4739dacc9681260a7ebc2
MD5 3b2af09ee57bbc0c934ae9979d2b0c4b
BLAKE2b-256 4fbbf941fe955a92df299070989c69603087243f991212a1ba65960f49e50970

See more details on using hashes here.

File details

Details for the file stackspot_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stackspot_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf0465677ce0fab415153f0d4f6e91a6bc15de03693b594a2b365e75157d279
MD5 9527db9eaaa7e3dc677da25bc1a7dc2f
BLAKE2b-256 c503fc4616ea77b66bdb7935f8ea83041d6d4e37cf8c4c46f5c4bf54f71bd36e

See more details on using hashes here.

Supported by

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