Python client for the pythonweblog
Project description
SDK LogSQL
Overview
This SDK now provides integration via WebSockets for interaction with the LogSQL service.
Módulo
- SDK_WS: Contém classes e handlers para comunicação WebSocket, incluindo gerenciamento de conexão e autenticação.
Uso
WebSocket
from pyweblog import SetupLogger
import logging
logger = SetupLogger(
name="your_logger",
username="your_user",
password="your_password",
level=logging.DEBUG
)
You can pass the Bearer token as well
from pyweblog import SetupLogger
import logging
logger = SetupLogger(
name="your_logger",
token="your_api_token",
level=logging.DEBUG
)
Final Considerations
This SDK was developed to facilitate integration with the LogSQL service through asynchronous communication using WebSockets.This SDK was developed to
Description
This project provides a simple way to log and manage SQL queries. It ensures safer data handling and helps developers track query execution.
Features
• Easy to integrate into existing projects
• Real-time logging
• Configurable output options
Installation
- Clone the repository
- Run the setup script
- Configure the logging options
Usage
Call the logger function in your SQL-related scripts, passing your query string. The query is automatically recorded.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss future improvements.
License
MIT `
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
File details
Details for the file pythonweblog_client_ws-0.4.0.tar.gz.
File metadata
- Download URL: pythonweblog_client_ws-0.4.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e875342b22a5f22e54333f3de729fe4a2a01487bab0db80ec3f8348cb17005a7
|
|
| MD5 |
a2152ca77a0b84ad5996b914a9a49d24
|
|
| BLAKE2b-256 |
e6c67f783474805eabbf01088fc0bdd7d80f7cecc9892f16def64f04269122bc
|