Skip to main content

Cliente Python para o serviço pythonweblog em websocket

Project description

SDK LogSQL

Visão Geral

Este SDK fornece implementações para interagir com o serviço LogSQL utilizando tanto requisições REST quanto comunicação via WebSocket.

Módulos

  • SDK_REST: Contém métodos e classes para integração via HTTP.
  • SDK_WS: Contém classes e handlers para comunicação via WebSocket, incluindo gestão e autenticação de conexões.

Utilização

REST

Importe os componentes do módulo REST:

from SDK.SDK_REST.main import LogSQLClient, LogSQLHandler, LogType, setup_rest_logger

WebSocket

Importe os componentes do módulo WebSocket:

from SDK.SDK_WS.main import LogSQLWSClient, LogSQLWSHandler, setup_ws_logger

Configure o logger ou o cliente conforme a necessidade:

# Exemplo para WebSocket:
logger = setup_ws_logger(
    name="seu_logger",
    server_url="http://localhost:1234",
    username="seu_usuario",
    password="sua_senha",
    level=logging.DEBUG
)

Considerações Finais

O SDK foi desenvolvido para facilitar a integração com o serviço LogSQL, permitindo tanto operações síncronas quanto assíncronas.

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

pythonweblog_client_ws-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

pythonweblog_client_ws-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pythonweblog_client_ws-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d989ff5104acddf68f5d394b82f200e1e193404d6085c5e9eb27ee74e67ce2f6
MD5 661cdee6efdf3890f84ed1510379db93
BLAKE2b-256 3c3fceeb61d67a2a47fe32f39cfc8612488fb04a67e6d1df9f86d5d698e2521d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pythonweblog_client_ws-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77c39b70cc025a5cc207faaa9834432b2fb7d29815863293185a4cdad1f25de7
MD5 127bf476b15222e91236874c8fe20cb3
BLAKE2b-256 9ef2a20f042847ceef87859bb93b37a8d3d4d0fb11d9a4cd3ee757ee976b8062

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