Skip to main content

Log tool (Create / Log / Read / etc...)

Project description

error loading Epitech Logo error loading Jarbin-ToolKit Logo

Jarbin-ToolKit:Log v0.2.1.0

Latest development version 🟠 UNDER DEVELOPMENT 🟠 None 🟠
Latest release 🟢 RELEASED 🟢 v0.2.1.0 🟢

CodeQL Advanced Python package tester pages-build-deployment

Description

jarbin-toolkit:log is a Python library designed to help you create enhanced terminal interfaces. It's improving the appearance and readability of your command-line interface with lightweight animations, colorful text, and neat formatting. If you want to make your terminal programs more readable and visually structured, this library is for you!

Table of Contents

  1. Description
  2. Features
  3. Tech Stack
  4. Installation
  5. Usage
  6. Project Structure
  7. API Reference
  8. Release Notes
  9. License
  10. Important Links
  11. Footer

Features

  • Timers: Use the built-in stopwatch to measure how long parts of your code take to run.

Tech-Stack

  • Language: Python - Chosen for its readability and versatility.
  • Frameworks: Python - Entirely implemented in Python.

Installation

To begin , install jarbin-toolkit:log:

Prerequisites:

Make sure you have Python 3.11 or newer installed on your computer. You can check your Python version by opening a terminal and typing python --version.

Install from PyPI (recommended):

Open your terminal and run this command:

pip install jarbin_toolkit_log

This will automatically download and install the library from PyPI.

Install from GitHub:

If you want the latest version directly from the source, you can install it using git:

git clone -b latest NONE
make -C lib/jarbin_toolkit_log install

This downloads the code, then the install script handles the installation. These commands install the jarbin-toolkit:log package and its dependencies (datetime).

Usage

Here are some examples demonstrating how to use jarbin-toolkit:log:

Basic Log

from jarbin_toolkit_log import Log

API-Reference

  • Log: File logging system (custom .jar-log or JSON format).
    • Log(path: str, file_name: str | None = None, json: bool = False) Create a new log file.
      • path: directory where file will be created
      • file_name: optional file name (default = timestamp)
      • json: switch to JSON log format
    • log(status: str, title: str, description: str) Format and append a log entry.
      • status: INFO / VALID / WARN / ERROR (or custom)
      • title: short title (auto-truncated to 10 chars in jar-log)
      • description: detailed message
    • comment(comment: str) Append a comment line (jar-log only).
    • save(log_str: str) Append raw formatted log string to file.
    • close(delete: bool = False) Close the log file properly.
      • Finalizes structure (----END---- or closes JSON array)
    • delete() Delete the log file from disk.
    • read() -> str Return raw content of the log file.
    • _jar_log_str(filter: list[str] | str | None = None) -> str Return formatted and colorized jar-log output.
    • _json_str(filter: list[str] | str | None = None) -> str Return formatted JSON log output.
    • str_filtered(f: list[str] | str) -> str Return filtered formatted log.
    • __str__(filter: list[str] | str | None = None) -> str Return formatted log representation.
    • __repr__() -> str Return constructor-style representation of the Log object.

Release-Notes

  • v0.2.1:

    • [/] 1rst real release
  • v0.2.0:

    • [UPDATE] change log file extension to custom extension (jar-log)
    • [ADD] modification not allowed after closing or after opening and existing file
    • [UPDATE] add option to choose between .log or log.json file
      (.log for more human readability, .json for more computer readability)
  • v0.1.0:

    • [UPDATE] jarbin_toolkit_log update (removed unlinked sub-modules)
    • [INIT] add epitech_console to jarbin-toolkit (renamed jarbin_toolkit_log)

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Important-Links

Files

Wiki

Footer

⭐️ Like the project? Give it a star! 🐛 Found a bug? Report it in the issues!

last update : PACKAGE = 2026/02/12 ; README = 2026/02/12

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

jarbin_toolkit_log-0.2.1.0.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

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

jarbin_toolkit_log-0.2.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file jarbin_toolkit_log-0.2.1.0.tar.gz.

File metadata

  • Download URL: jarbin_toolkit_log-0.2.1.0.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for jarbin_toolkit_log-0.2.1.0.tar.gz
Algorithm Hash digest
SHA256 6a180552e39166efe1bc1c41592c08d0e24b58476c443c6b0b52a4bbf8228b0c
MD5 1c16b0ac13e0e4ca19e8a25bfdf1551f
BLAKE2b-256 f785f43bdc4d4e9c15bbd281b2f5f423d5abbc33773fa013431663b438fe0d51

See more details on using hashes here.

File details

Details for the file jarbin_toolkit_log-0.2.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jarbin_toolkit_log-0.2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a014b0e344c3bbdecc475307b59d3e0e32335fe050ec84fdccff3d0cacb8be0
MD5 324f063d9fe286006e6b8649ab162a4d
BLAKE2b-256 9dfd6ef891651389e2ed29852b4583ae270525bd0694e7827810dc8f13253847

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