CUBETIQ vLogs SDK for Python
Project description
vLogs SDK for Python
A simple way to collect logs and send to the server via simple SDK.
- Collect the logs (Sync and Async support)
- Support local retries
Install via pip
pip install vlogs
Usages
from vlogs.sdk import VLogs, VLogsOptions
from vlogs.model import Collector, CollectorType, CollectorSource
appId = "72bd14c306a91fa8a590330e3898ddcc"
apiKey = "vlogs_gX9WwSdKatMNdpUClLU0IfCx575tvdoeQ"
# Create VLogs instance
sdk = VLogs.create(
VLogsOptions.builder()
.apiKey(apiKey)
.appId(appId)
.build()
)
response = await sdk.collect(
Collector.builder()
.type(CollectorType.Error)
.source(CollectorSource.Other)
.message("This is a test message")
.build()
)
print("Response: ", response)
Build, Install, and Test from Source
make
Build and Install from Source
make build install
Run test
make test
Publish
- Set Token
poetry config pypi-token.pypi my-token
- Publish
make publish
Contributors
- Sambo Chea sombochea@cubetiqs.com
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
vlogs-1.0.6.tar.gz
(5.5 kB
view details)
Built Distribution
vlogs-1.0.6-py3-none-any.whl
(6.3 kB
view details)
File details
Details for the file vlogs-1.0.6.tar.gz
.
File metadata
- Download URL: vlogs-1.0.6.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dfac3fd840651c7d070a759d16379630d8184a90c4256fe5efcc7237d71de93 |
|
MD5 | bcd5103dad73892e8758871ac5f0f861 |
|
BLAKE2b-256 | fd8ba0cf96f6690a223dd022a4ed43f3bc9c72694f541a084c4aef31df5deb6a |
File details
Details for the file vlogs-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: vlogs-1.0.6-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42be1c032b00245bc38eaf6156420c723c2dacdc39e2622197527314d5c05b60 |
|
MD5 | be105d163f395c67fa4c45b8445a2b2a |
|
BLAKE2b-256 | e0c96b6abb8f9f0376eb71b0848d5a077049f7fadb008c745181513e01664da1 |