semvec/pypi-packages huggingface dataset:
joblib-progress 1.0.6
A contextmanager to track progress of joblib execution
License: MIT
Requires Python: >=3.7
Keywords: joblib, progress, rich

# joblib-progress
A contextmanager to track progress of [`joblib`](https://joblib.readthedocs.io) execution using [`rich.progress`](https://rich.readthedocs.io).
[![joblib-progress](https://asciinema.org/a/Ufe9v8MKfxIzMuvlv2IwCk29l.svg)](https://asciinema.org/a/Ufe9v8MKfxIzMuvlv2IwCk29l)

## Why
The vanilla `multiprocessing` does not work when an object to multiprocess is not `pickle-able`. The `joblib` solves this, but then its progress is not tracked nicely. This library solves that tracking issue with `joblib`.

## Install
```bash
> pip install joblib-progress
```

## Usage
### If you know the number of items
```python
import time

from joblib import Parallel, delayed
from joblib_progress import joblib_progress


def slow_square(i):
    time.sleep(i / 2)
    return i ** 2

with joblib_progress("Calculating square...", total=10):
    Parallel(n_jobs=4)(delayed(slow_square)(number) for number in range(10))
```

### If you don't know the number of items
```python
with joblib_progress("Calculating square..."):
    Parallel(n_jobs=4)(delayed(slow_square)(number) for number in range(10))
```

# Acknowledgments
The idea of using `joblib.parallel.BatchCompletionCallBack` is referenced from https://stackoverflow.com/a/58936697/5133167
babel-edtf 1.2.1
Localization of Extended Date Time Format level 0 strings.
License: MIT
Keywords: babel l10n edtf

..
    Copyright (C) 2020 CERN.

    Babel-EDTF is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

============
 Babel-EDTF
============

A Python module for localization of Extended Date Time Format (EDTF) level 0
strings.

EDTF is a syntax for specifying imprecise dates. See
http://www.loc.gov/standards/datetime/. This modules relies on
`python-edtf <https://pypi.org/project/edtf/>`_ for
EDTF parsing.

Install
-------

Babel-EDTF is on PyPI so all you need is:

.. code-block:: console

   $ pip install babel-edtf

Quickstart
----------
Let's format some EDTF strings:

>>> from babel_edtf import format_edtf
>>> format_edtf('2020-01', locale='en')
'Jan 2020'

>>> format_edtf('2020-01/2020-09', locale='da')
'jan.–sep. 2020'

>>> format_edtf('2020-01/2020-09', format='long', locale='en')
'January\u2009–\u2009September 2020'

The following formats are supported:

- ``short``
- ``medium``
- ``long``
- ``full``


..
    Copyright (C) 2020-2024 CERN.

    Babel-EDTF is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

Changes
=======

Version 1.2.1 (released 2024-11-07)

- fix: consider DD_MM_YYYY invalid

Version 1.2.0 (released 2024-10-28)

- setup: upgrade edtf to 5.0.0 and fix bug with dates and times with hour 23

Version 1.1.4 (released 2024-03-05)

- fix: fail parsing 29th of February on non-leap years

Version 1.1.3 (released 2023-11-01)

- global: use custom parse_edtf in parse_edtf_level0

Version 1.1.2 (released 2023-10-19)

- add leading zeros for precise month and day

Version 1.1.1 (released 2023-10-19)

- convert isoparse values to string

Version 1.1.0 (released 2023-10-19)

- Add parse_edtf isoparse backed method

Version 1.0.0 (released 2020-11-06)

- Initial public release.
rangeutils 0.1.3
Utilities for manipulating and converting Python ranges and boolean lists
License: MIT
Requires Python: <4.0,>=3.10

# rangeutils

`rangeutils` is a Python package that provides utilities for converting, manipulating, and processing Python `range` objects and boolean lists. This package includes a variety of functions to convert between boolean lists and ranges, merge adjacent ranges, find complementary ranges, and trim ranges based on specific conditions.

## Features

- **Convert lists to ranges**: Convert `[start, end]` lists to Python range objects, with optional handling for `None` values.
- **Boolean list to ranges**: Converts a boolean list to a list of range objects representing `True` or `1` sequences.
- **Ranges to boolean list**: Converts a list of ranges back to a boolean list of specified length.
- **Flip ranges**: Generate complementary ranges that are not covered by input ranges.
- **Fill ranges**: Fill ranges that are within a specified gap size.
- **Trim ranges**: Perform trimming on ranges based on length, percentage, or a specified trimming size.

## Installation

You can install `rangeutils` using pip:

```bash
pip install rangeutils