iragca
My library of custom python scripts and configurations
iragca-python is a comprehensive Python library providing practical utilities for data science, machine learning, and visualization workflows. It streamlines common tasks in machine learning, data visualization, and functional programming.
Key Features
- Accessible Visualization: Professional matplotlib styles and WCAG-compliant color palettes designed for clarity and accessibility.
- Lightweight Experiment Tracking:
RunLoggerfor logging metrics with dynamic property access and optional progress bars. - Functional Programming Utilities: Composable data transformation pipelines using
PipelineandStep. - Deprecation Management: Tools to manage deprecations and guide users to alternatives.
Use Cases
- ML/DL Training: Track metrics with
RunLoggerduring training loops - Data Pipelines: Build readable transformation chains with
Pipeline - Publication Plots: Create accessible visualizations with pre-configured styles
- Library Maintenance: Manage deprecations gracefully with proper warnings
Installation
Install using pip:
pip install iragca
Install a specific module (see the docs for options):
pip install iragca[functional]
Quick Start
RunLogger
from iragca.ml import RunLogger
logger = RunLogger(max_steps=100, display_progress=True)
for epoch in range(100):
loss = 1.0 / (epoch + 1)
logger.log_metrics({'loss': loss}, step=epoch)
print(f"Final loss: {logger.loss[-1]}")
Matplotlib Colors and Styles
import matplotlib.pyplot as plt
from iragca.matplotlib import Color, Styles
plt.style.use(Styles.CMR10.value)
sample_data = [1, 3, 2, 4, 3, 5]
plt.plot(sample_data, color=Color.BLUE.value)
plt.title("Sample Plot with Custom Style and Color")
plt.xlabel("X-axis")
plt.ylabel("Y-axis")
plt.show()
Functional Pipelines
from iragca.functional import Pipeline, Step
pipeline = Pipeline([
lambda x: x * 2,
Step(lambda x, n: x + n, n=10),
lambda x: x ** 2,
])
result = pipeline(5) # (5 * 2 + 10)^2 = 400
Documentation
Read the full documentation in the docs or visit the API reference.
Metadata
Release files for iragca 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| iragca-0.4.2.tar.gz | 12.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iragca-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.9 kB
Release files / iragca-0.4.2.tar.gz
| Download URL | iragca-0.4.2.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1418de49cf457feddd3127922a811381a7cd9c53a0b3a3ce4f4a95c48ec83405
|
|
BLAKE2b-256 checksum How to use checksums |
e0ef42e08455086c6d8b3b8bb64bd5ad66b4865dfc9a33da6c3e8a655820d5e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.15
|
Release files / iragca-0.4.2-py3-none-any.whl
| Download URL | iragca-0.4.2-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
989d35002bb8f8e211bb84ab965cf78dc8b0dbf23c8a9d9bb19a3f815fab3ae6
|
|
BLAKE2b-256 checksum How to use checksums |
e577f22b4e2f32b7a98fe1c02a1e1c62cbf84ee990aececba6e6d63d6889e71f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.15
|
Security for iragca 0.4.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.