Skip to main content

Action tool (Save / Call / etc...)

Project description

error loading Epitech Logo error loading Jarbin-ToolKit Logo

Jarbin-ToolKit:Action v0.1.2.0

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

CodeQL Advanced Python package tester pages-build-deployment

Description

jarbin-toolkit:action 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:action:

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_action

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_action install

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

Usage

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

Basic Error

from jarbin_toolkit_action import Action, Actions

API-Reference

  • Action: Callable object storing a function and its arguments for deferred execution.

    • Action(name: str, function: Callable, *args: Any, **kwargs: Any) Save a function and its arguments.
      • name: logical name of the action
      • function: callable to execute
      • *args: positional arguments for the function
      • **kwargs: keyword arguments for the function
    • __call__() -> Any Execute the stored function with its saved arguments. Returns the function’s return value.
    • __add__(other: Action) -> Actions Combine two Action objects into an Actions collection.
    • __str__() -> str Return readable string representation: 'name' : function(*args = [...], **kwargs = {...})
    • __repr__() -> str Return constructor-style representation of the Action object.
  • Actions: Collection of multiple Action objects.

    • Actions(actions: list[Action] | Action | None = None) Create a collection of actions.
      • actions: optional single Action or list of Action
    • __call__() -> dict[str, Any] Execute all stored actions sequentially. Returns a dictionary: { action_name: return_value }
    • __add__(other: Actions | Action) -> Actions Merge:
      • Actions + Actions
      • Actions + Action
    • __len__() -> int Return number of stored actions.
    • __getitem__(item: int) -> Action Return the Action at given index.
    • __str__() -> str Return formatted multi-line representation of all stored actions.
    • __repr__() -> str Return constructor-style representation of the Actions object.

Release-Notes

  • v0.1.1:

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

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

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/01/21 ; 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_action-0.1.2.0.tar.gz (29.5 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_action-0.1.2.0-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file jarbin_toolkit_action-0.1.2.0.tar.gz.

File metadata

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

File hashes

Hashes for jarbin_toolkit_action-0.1.2.0.tar.gz
Algorithm Hash digest
SHA256 5032b7f70f0e988affcc04fefb5845ebb1c9ca36ee1aa4a2fc1d4d10b2a0b3a5
MD5 49a55616789ea6099e12e8e7ae0b12a9
BLAKE2b-256 c57cb1300847fe4b168a79be248670ff0fdf84cbe81377a245d31f6381e8c2a6

See more details on using hashes here.

File details

Details for the file jarbin_toolkit_action-0.1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jarbin_toolkit_action-0.1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d67b404a866c6a41bc03d1750e83a86775e600e6028852d63b8d4894f63e0de
MD5 6aeee33e8b76c376c4b8cde51ac3c05e
BLAKE2b-256 4a738d5d15e8462431ad96d7bd8e5cd52fe091013151a5ead4bf57f6b46ee467

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