semvec/pypi-packages huggingface dataset:
le-logging 0.2.0
A simple Logging generalizer
Requires Python: >=3.8

# LE Logging Library

## Installation:

```
pip install le-logging
```

This library defines a standardized logging pattern for all Python based Projects inside LE Environment.

It's based on Pythons integrated Logging System and makes it easy to use without redefining Layouts and Rotations
manually for every project.

It's mandatory to generalize Logs to simplify debugging and problem solving.

Available Log Levels are defined as ENUM

```python
class Level(Enum):
    DEBUG = 10
    INFO = 20
    WARNING = 30
    ERROR = 40
    CRITICAL = 50
```

# The usage of the Library is simple:

## Defining a Rotating LogFile based on filesize:

```
attribut is the maximum file size in Megabytes [Default is 32MB]
max_backup attribut defines the maximum stored Files before overwriting existing Files [Default is 14 Files]
```

```python
# Defining loglevel as integer:
from le_logging import RotatingLog

log = RotatingLog(name="Testlog", max_backups=5, max_size=64, level=10)
```

```python
# Defining LogLevel based on Enum
from le_logging import RotatingLog, Level

log = RotatingLog(name="Testlog", max_backups=5, max_size=64, level=Level.DEBUG)
```

```python
# Defining specific Path
from le_logging import RotatingLog, Level

log = RotatingLog(name="Testlog", path="/var/log", max_backups=5, max_size=64, level=Level.DEBUG)
```

## Defining a Timed Rotating LogFile based on filesize:

```python
# Defining loglevel as integer:
from le_logging import TimedRotatingLog

log = TimedRotatingLog(name="Testlog", max_backups=5, max_size=64, level=10)
```

```python
# Defining LogLevel based on Enum
from le_logging import TimedRotatingLog, Level

log = TimedRotatingLog(name="TimedTestlog", max_backups=5, timer=1, level=Level.DEBUG)
```

```python
# Defining specific Path
from le_logging import TimedRotatingLog, Level

log = TimedRotatingLog(name="TimedTestlog", path="/var/log", max_backups=5, timer=1, level=Level.DEBUG)
```

## Using defined LogFiles

```python
log.debug("This is a DEBUG message")
log.info("This is an INFO message")
log.warn("This is a warn message")
log.error("This is an ERROR message")
log.critical("This is a CRITICAL message")
```
DataToweraiSDK 0.0.1
DataTower.ai SDK
Requires Python: >=2.6

# DataTower.ai

This is the official Python SDK for DataTower.ai.

## Easy Installation

You can get DataTower.ai SDK using pip.

pip install DataToweraiSDK

Once the SDK is successfully installed, use the SDK likes:

python
from dtsdk.sdk import DTAnalytics,DebugConsumer

dt = DTAnalytics(DebugConsumer("app_id_xxxx", "xxxxx"))
properties={"abc":123,"bcd":"xxx"}
dt.track(dt_id="aaaa",acid='bbbb',event_name="ad_click",properties=properties)
dt.flush()
dt.close()