Skip to main content

toolboks

toolboks is a lightweight utility library.

Installation

Install with pip:

pip install toolboks

Usage

Most functions are available by simply importing toolboks directly:

> import toolboks as tb

> nested_list = [1,2,3,[4,5,[6,7,8]]]
> tb.expand(nested_list, depth=1)
[1, 2, 3, 4, 5, [6, 7, 8]]

Modules can also be imported separately:

from toolboks import xdg

# get user base dirs according to the XDG base directory specification
base_dirs = xdg.base_dirs()

Module Overview

Module Description Classes Functions
config Configuration file functions read_config
listlib List manipulation & helpers expand, flatten
modifiers Common data modifiers filter_abs_path
system Common system related functions context, getenv
xdg Functions for XDG base dirs base_dirs, cache_home, config_dirs, config_home,
data_dirs, data_home, runtime_dir, state_home,
user_dirs, user_home

Command Line Interface

toolboks has a command line interface with shell commands for relevant functions from the toolboks library.
It is available as a separate package: toolboks-cli

Install it with pip: pip install toolboks-cli

See documentation of toolboks-cli for more information on available commands.

License

GPL-3.0-only

Metadata

Release files for toolboks 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toolboks 0.0.2
File Size Uploaded
toolboks-0.0.2.tar.gz 18.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for toolboks 0.0.2
File Interpreter ABI Platform
toolboks-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 39.9 kB

Release files / toolboks-0.0.2.tar.gz

Download URL toolboks-0.0.2.tar.gz
Size 18.5 kB
Tags Source
SHA-256 checksum
How to use checksums
882cba6a353ed45040a07c1a891b3040eb75748c5c28d904d1bed3681c5e91d1
BLAKE2b-256 checksum
How to use checksums
afc493895b6c55ad6a40cc1125d327f32d2e1905a9e77a0722ecdde4da5c7727
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / toolboks-0.0.2-py3-none-any.whl

Download URL toolboks-0.0.2-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ff6079da8c60117517dddee4319142d39cf7e0140cff0f1b7d8bf8243126a7c
BLAKE2b-256 checksum
How to use checksums
ccfb0d28f2ba1e6c6062cd5bcc579333f6135374713bd7443107611ff4e7f941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page