Skip to main content

A Python module for reading and searching Plutonium T6 logs

Project description

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

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

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

from t6logreader import T6LogReader

log_reader = T6LogReader()
print(log_reader.read_last_line()) 

Clear the Log File

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.

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:

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 | Brownies IW4M | Made With ❤️ By Budiworld

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

t6logreader-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

T6LogReader-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file t6logreader-0.1.1.tar.gz.

File metadata

  • Download URL: t6logreader-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for t6logreader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 396b539a02eb626487d04097be8afbdbc0a4a3a0842885f2ae9f1427999c2eb9
MD5 570e4399f886965636672212d05d9c42
BLAKE2b-256 2fa415b562348509199df7a1d5a84d538e71815ca5e7797ce68f02e17a501b91

See more details on using hashes here.

File details

Details for the file T6LogReader-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: T6LogReader-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for T6LogReader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81eb900dabcb645e8f4c57f5a98b65d4db1537cdb8c11cf0503e5b129d4c3b01
MD5 a0dcd312c73727378d640e07e4bc2b12
BLAKE2b-256 3d949e2ac6cb9594f9ce3b34c7c61e0a2bd5d4d241afdaa4da166ec256373fea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page