Metadata-Version: 2.1
Name: vlogs
Version: 1.0.6
Summary: CUBETIQ vLogs SDK for Python
License: MIT
Author: Sambo Chea
Author-email: sombochea@cubetiqs.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: httpx (>=0.24.1,<0.25.0)
Description-Content-Type: text/markdown

# vLogs SDK for Python

A simple way to collect logs and send to the server via simple SDK.

-   [x] Collect the logs (Sync and Async support)
-   [ ] Support local retries

### Install via `pip`

```shell
pip install vlogs
```

### Usages

```python
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

```shell
make
```

### Build and Install from Source

```shell
make build install
```

### Run test

```shell
make test
```

### Publish

-   Set Token

```shell
poetry config pypi-token.pypi my-token
```

-   Publish

```shell
make publish
```

### Contributors

-   Sambo Chea <sombochea@cubetiqs.com>

