Log tool (Create / Log / Read / etc...)
Project description
Jarbin-ToolKit:Log v0.2.1.4
Latest versions
🟠 UNDER DEVELOPMENT 🟠 None 🟠🟢 RELEASED 🟢 v0.2.1.4 🟢
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
- Description
- Features
- Tech Stack
- Installation
- Usage
- Project Structure
- API Reference
- Release Notes
- License
- Important Links
- 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-logor JSON format).Log(path: str, file_name: str | None = None, json: bool = False)Create a new log file.path: directory where file will be createdfile_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)
- Finalizes structure (
delete()Delete the log file from disk.read() -> strReturn raw content of the log file._jar_log_str(filter: list[str] | str | None = None) -> strReturn formatted and colorized jar-log output._json_str(filter: list[str] | str | None = None) -> strReturn formatted JSON log output.str_filtered(f: list[str] | str) -> strReturn filtered formatted log.__str__(filter: list[str] | str | None = None) -> strReturn formatted log representation.__repr__() -> strReturn constructor-style representation of the Log object.
Release-Notes
-
v0.2.1:
- [/] 1rst real release
- v0.2.1.1 [FIX] random fixes on the logging system
- v0.2.1.2 [FIX] random fixes on the log reading system
- v0.2.1.3 [ADD] add log cleaning system for better readability or identical log lines compression
("<log> [x <times>]") - v0.2.1.4 [FIX] filtered log string fix
- [/] 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
.logorlog.jsonfile
(.logfor more human readability,.jsonfor more computer readability)
- [UPDATE] change log file extension to custom extension (
-
v0.1.0:
- [UPDATE]
jarbin_toolkit_logupdate (removed unlinked sub-modules) - [INIT] add
epitech_consoleto jarbin-toolkit (renamedjarbin_toolkit_log)
- [UPDATE]
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Important-Links
Files
- Repository: https://github.com/Jarjarbin06/jarbin-toolkit
- PyPI: https://pypi.org/project/jarbin-toolkit-log/
Wiki
- Wiki (take a look): https://github.com/Jarjarbin06/jarbin-toolkit/wiki
- README (updated): https://github.com/Jarjarbin06/jarbin-toolkit/blob/main/lib/log/README.md
- GitHub: https://jarjarbin06.github.io/jarbin-toolkit/
Footer
- Repository: https://github.com/Jarjarbin06/jarbin-toolkit
- Author: Nathan Jarjarbin
- Contact: nathan.amaraggi@epitech.eu
⭐️ 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jarbin_toolkit_log-0.2.1.4.tar.gz.
File metadata
- Download URL: jarbin_toolkit_log-0.2.1.4.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3784a7acc2f4465bc4f1e8fb52edc9535a5d84b445625cecaeb5b7780a64f482
|
|
| MD5 |
75666e3463a69f3bbe1f1fbb4f348d5d
|
|
| BLAKE2b-256 |
fa1832dd4f4690fa3915d46d8d59da47007ef63dbf36d45f5e20b194312a2201
|
File details
Details for the file jarbin_toolkit_log-0.2.1.4-py3-none-any.whl.
File metadata
- Download URL: jarbin_toolkit_log-0.2.1.4-py3-none-any.whl
- Upload date:
- Size: 20.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80b94b1c0a7424e8ec7cc220fbab0e0a039f48b535c60d110fd456faeced8521
|
|
| MD5 |
6756d941282be171ad28608f13ffcab7
|
|
| BLAKE2b-256 |
7ce38eb50b136006967d59031befcf68521de7572cbe57ca760dd844a66ede1e
|