corallium
CLI utility functions extracted from Calcipy.
Installation
-
poetry add corallium -
Take advantage of the logger or other common functionality
form corallium.log import LOGGER LOGGER.info('Hello!')
Usage
-
log: Configure and use the global logger
from corallium.log import LOGGER, configure_logger import logging configure_logger(log_level=logging.INFO) LOGGER.info('Processing started', item_count=42)
-
pretty_process: Run parallel tasks with progress bars
from corallium.pretty_process import pretty_process def task(task_id, shared_progress, data): for item in data: process(item) shared_progress[task_id] += 1 return len(data) results = pretty_process(task, data=items, num_workers=4)
-
shell: Execute shell commands with output capture
from corallium.shell import capture_shell output = capture_shell('git status', timeout=30)
-
file_helpers: File utilities and project configuration
from corallium.file_helpers import find_in_parents, read_pyproject pyproject = read_pyproject() lock_path = find_in_parents(name='uv.lock')
-
tomllib: Backport wrapper for TOML parsing (Python <3.11 compatibility)
from corallium.tomllib import tomllib data = tomllib.loads(content)
-
dot_dict: Wrapper for dotted-dictionary access via Python-Box
from corallium.dot_dict import ddict config = ddict({'nested': {'value': 42}}) print(config.nested.value)
For more example code, see the scripts directory or the tests.
Project Status
See the Open Issues and/or the CODE_TAG_SUMMARY. For release history, see the CHANGELOG.
Contributing
We welcome pull requests! For your pull request to be accepted smoothly, we suggest that you first open a GitHub issue to discuss your idea. For resources on getting started with the code base, see the below documentation:
Code of Conduct
We follow the Contributor Covenant Code of Conduct.
Open Source Status
We try to reasonably meet most aspects of the "OpenSSF scorecard" from Open Source Insights
Responsible Disclosure
If you have any security issue to report, please contact the project maintainers privately. You can reach us at dev.act.kyle@gmail.com.
License
Metadata
Release files for corallium 2.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| corallium-2.4.0.tar.gz | 30.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| corallium-2.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 66.8 kB
Release files / corallium-2.4.0.tar.gz
| Download URL | corallium-2.4.0.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d7df73b087b6e77675714c20b030b036b6c23fe419e48601e217d432a12a2d4
|
|
BLAKE2b-256 checksum How to use checksums |
382c5fd63b1a119ccfcc6eba79673b61ea5b3e2e0772c1b32eaba44fa308be68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.
Transparency logRelease files / corallium-2.4.0-py3-none-any.whl
| Download URL | corallium-2.4.0-py3-none-any.whl |
|---|---|
| Size | 36.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90d7255b7a2ce2202682aa1b437d8496a126ebbb23af52fce619d799dcc8c023
|
|
BLAKE2b-256 checksum How to use checksums |
8f1ea6d2b95584632e6afb27fcb26c041ce089893b1d7d7c27abaa6dec6acfa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 30, 2026.
Transparency log