semvec/pypi-packages huggingface dataset:
T6LogReader 0.1.1
A Python module for reading and searching Plutonium T6 logs
Requires Python: >=3.10

# **T6LogReader 📜**

#### A Python module for reading and searching Black Ops II (Plutonium T6) logs


## 🚀 Features
- **✅ Read the last lines of console.log** 
- **✅ Search for specific commands (e.g., kick, ban, custom commands)**
- **✅ Count the occurrences of a command or keyword**
- **✅ Clear the log file for a fresh start**
- **✅ Works dynamically for any Windows user (not tested on Linux)**
- **✅ Supports custom log file paths**
- **✅ Efficient error handling for robustness**
---

## 📥 Installation

```
pip install T6LogReader
```

---

## 🛠 Usage

### Read Last `number_of_lines: int` Lines
This function allows you to read the last n lines from the log
```python
from t6logreader import T6LogReader

log_reader = T6LogReader()
print(log_reader.read_last_lines(number_of_lines=10))
```

----

### Search for a Specific `command: str`
Searches for commands like "kick", "ban", etc. You can customize the prefix
```python
from t6logreader import T6LogReader

log_reader = T6LogReader()
print(log_reader.search_command(command="kick", prefix="")) # Prefix is normally set as "]" 
```

----

### Read the Last Line
Reads the most recent line from the log file
```python
from t6logreader import T6LogReader

log_reader = T6LogReader()
print(log_reader.read_last_line()) 
```

---

### Clear the Log File
```python
from t6logreader import T6LogReader

log_reader = T6LogReader()
log_reader.clear_log()
```

---

### Count occurrences of a `keyword: str` | `prefix: str`
Counts how many times a keyword (e.g., "kick") appears in the log.
```python
from t6logreader import T6LogReader

log_reader = T6LogReader()
print(log_reader.count_occurences(keyword="kick", prefix="]"))
```

---

## 📂 File Path Handling

#### By default, it reads:
```
C:\Users\YourUser\AppData\Local\Plutonium\console.log
```

#### But you can specify a custom path:
```python
log_reader = T6LogReader(log_path="custom/path/to/console.log")
```

---

# Come Play on Brownies SND (T6) 🍰
### Why Brownies? 🤔
- **Stability:** Brownies delivers a consistent, lag-free experience, making it the perfect choice for players who demand uninterrupted action
- **Community:** The players at Brownies are known for being helpful, competitive, and fun—something Orion can only dream of
- **Events & Features:** Brownies is constantly running unique events and offers more server-side customization options than Orion, ensuring every game feels fresh

---

#### [Brownies Discord](https://discord.gg/FAHB3mwrVF) | [Brownies IW4M](http://152.53.132.41:1624/) | Made With ❤️ By Budiworld
loginsights 0.0.8
This is a powerful library handling the formatting of application logs and metrics to the LogInsights platform.
Requires Python: >=3.12

# LogInsights-Library

LogInsights-Library is a powerful library for handling the formatting of application logs and metrics to the LogInsights platform. It is designed to help you monitor, analyze, and debug your applications with ease, offering deep insights into performance, usage patterns, and system health.

## Features

- Flexible and high-performance.
- Full support for Python.
- Capture and manage logs from across your application, with support for structured and unstructured log formats.
- Define and track custom metrics to measure application performance and user interactions.
- Easily capture exceptions and errors, providing detailed context for debugging.

## Important: The Logger Must Be Configured Before Use

Before using the logger in your application, it **must be configured** with the appropriate connection details. Ensure that the logger is set up with the correct connection string, client application ID, and secret before any logging or metric capturing takes place.

## Code example

### `settings.py`

```python
from loginsights.main import LogInsightsLogger

# Configuration variables (replace with your own details)
connection_string = ""  # Replace with your connection string
client_application_id = -1  # Replace with the given client application id
secret = ""  # Replace with the given secret

config = {
    "ConnectionString": connection_string,
    "ClientApplicationId": client_application_id,
    "Secret": secret
}

# Configure the logger
LogInsightsLogger.configure(config)
```

### `app.py`

```python
from loginsights.main import LogInsightsLogger

logger = LogInsightsLogger.get_logger()

# Example of logging and metric capturing in the application
username = "testuser"  # Example username

# Log an informational message
logger.info(f"{username} has been authenticated, redirecting {username} to login")

# Add a custom metric
logger.add_metric("New Users", {"Username": username})
```
ext-snake 1.0.0
Add '.🐍' possible extensions.
Requires Python: >=3.3

# 🐍
The environment in which you install this package will permit you to use ".🐍" in addition to the usual ".py" extension.

# Caveat emptor
Deviating from long-standing conventions is a recipe for pain and annoyance.

The less traveled path can be fun though! And that is what this silly package is about.

# How it works
Besides package metadata, this package simply adds the two files below to the "site-packages" directory in which you install it.

1) `./ext/snake/__init__.py`: appends ".🐍" to the list of file extensions recognized by [importlib].
1) `./_ext-snake.pth`: directs a Python interpreter using the package directory to load `ext.snake` before pretty much anything else.

It's really that simple.

[importlib]: https://docs.python.org/3/library/importlib.html

# For more fun
Add an alias to the configuration of your favorite shell to alias the `python` command to 🐍 too!

Running Python scripts would then look similar to the following.

```bash
# Without ext-snake
$ python my_script.py

# With ext-snake
$ 🐍 my_script.🐍
```

I typically run my Python code as a module (e.g. `python -m my_module`). I configured 🐍 to map to `python -m` on my system.

```bash
# Without ext-snake
$ python -m my_module

# With ext-snake
$ 🐍 my_module
```

# Customization
I will ignore any request to modify this package for other file extensions. If you want a different emoji (e.g. 💰), you can replicate the approach to your own whim in minutes.