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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2459e4df3b4020a930bb80e4b79f837cf15a6b8d33e4739dacc9681260a7ebc2
|
|
| MD5 |
3b2af09ee57bbc0c934ae9979d2b0c4b
|
|
| BLAKE2b-256 |
4fbbf941fe955a92df299070989c69603087243f991212a1ba65960f49e50970
|
File details
Details for the file stackspot_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stackspot_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccf0465677ce0fab415153f0d4f6e91a6bc15de03693b594a2b365e75157d279
|
|
| MD5 |
9527db9eaaa7e3dc677da25bc1a7dc2f
|
|
| BLAKE2b-256 |
c503fc4616ea77b66bdb7935f8ea83041d6d4e37cf8c4c46f5c4bf54f71bd36e
|