semvec/pypi-packages huggingface dataset:
switchinglogfilehandlers 0.0.5
A collection of switching log file handlers
Requires Python: >=3.7

switchinglogfilehandlers
========================

A collection of switching log file handlers for the Python logging system.
Unlike the *rotating* log file handlers in the Python core which always
write to a file with a fixed name and peridically rename that, these
handlers always open a new file with a unique name - old files will
never be renamed.

TimedSwitchingFileHandler
-------------------------

This file handler starts a new file at regular intervals, comparable to
the TimedRotatingFileHandler. The switch always occurs at a “round”
time, i.e. at the hour for hourly switches, at midnight for daily
switches, etc. The old file stays open until just before the first log
entry is written to the new file.

### Parameters

| Parameter | Default | Description |
|-|-|-|
| `filename` | (required) | Path to the log files. The timestamp and `.log` is appended |
| `when` | `'h'` | When log files are switched: (every **s**econd, **m**inute, **h**our, **d**ay, **w**eek) |
| `utc` | `False` | Timestamps are in UTC (otherwise local time) |
| `create_directory` | `False` | Intermediate directories in `filename` are created if necessary |

TimeoutSwitchingFileHandler
---------------------------

This file handler automatically closes the log file after a period of
inactivity (or after the file has been open for some time whichever
comes first) and then opens a new file at the next emit.

This is useful for long-running processes where short periods of
activity alternate with periods of inactivity. Log switchse will
typically occur during inactivity, so each log file will include one
complete active period. Also, since the log files are closed, they can
be safely compressed or removed.

### Parameters

| Parameter | Default | Description |
|-|-|-|
| `filename` | (required) | Path to the log files. The timestamp is appended |
| `min_timeout` | `60` | Logfile is closed if there hasn't been any activity for `min_timeout` seconds |
| `max_timeout` | `3600` | Logfile is closed if is has been created `max_timeout` seconds ago |
| `create_directory` | `False` | Intermediate directories in `filename` are created if necessary |
Predviz 0.0.4
Visualize the comparison between the Predicted or Forecasted Values generated by any Time-Series Forecasting Models and the Actual Values
Requires Python: >=3.8
Keywords: viz, visualizer, vis, time series, time-series, forecast, predict, preds, compare, comparison, Predviz, predviz, matplotlib, pandas

# Predviz -- BETA

**Desc :**
Visualize the comparison between the **Predicted or Forecasted Values** generated by any **Time-Series Forecasting Models** and the **Actual Values**.

**Versions :**
1. Version 0.0.1 (2024-04-12)
django-l10n-extensions 1.1.1
Extend Django with L10N features.

# Django L10N extensions
Django L10N extensions adds some useful L10N extensions to the Django framework

The project in maintained on [github](https://github.com/ceasaro/django-l10n-extensions)

[Read the docs](http://django-l10n-extensions.readthedocs.io)


 ## Create new distribution
 To create a new distribution from this package follow these steps:
 1) create new virualenv met python 3 `mkvirtualenv -p /usr/bin/python3 django-l10n-extensions`
 2) install requirements `pip install -r setup/requirements.txt`
 3) update the version in `./setup.py`, otherwise you will overwrite an already existing version. 
 4) Make a new distribution run: `python setup.py sdist bdist_wheel`
 5) Optional upload to pypi TEST: `twine upload --repository-url https://test.pypi.org/legacy/ dist/*` 
 
 to upload to PRODUCTION remove the `--repository-url` argument (make sure your local `~/.pypirc` is correct)
 

# Date and time in python
**CONCEPT version**

Always work in UTC and use date / datetime aware instances

e.g. python 3
datetime.utcfromtimestamp(0).timestamp() --> -3600  # datetime instance has no timezone and python fallback on OS timezone

datetime.utcnow() is also timezone unaware
use 
datetime.utc(tz=timezone.utc)

datetime.strptime("1970-0101T00:00:00", "%Y-%m-%dT%H:%M:%S) is also timezone unaware
use
datetime.strptime("1970-0101T00:00:00", "%Y-%m-%dT%H:%M:%S).replace(tzinfo=timezone.utc)
plainhtml 0.2.2
Extract plain text from HTML
Requires Python: <4.0,>=3.10

# Extract plain text from HTML

## Installation

```
$ pip install plainhtml
```

## Example

```python
>>> import plainhtml
>>> html = "<html><body><p>foo</p><p>bar</p></body></html>"
>>> plainhtml.extract_text(html)
'foo\n\nbar'
```
scl-loader 1.11.7
Outil de manipulation de SCD
Requires Python: <4,>=3.6

![Lint and Test Python 🐍 ](https://github.com/rte-france/SCL_Loader/workflows/Lint%20and%20Test%20Python%20%F0%9F%90%8D%20distribution%20%F0%9F%93%A6/badge.svg)
# RTE - scl_loader

## Installation
```bash
pip install scl_loader -U --user
```

## Licence

Apache 2.0

## Versionning

Use [bumpversion](https://pypi.org/project/bumpversion/)

example : 
```bash
bumpversion --current-version 1.0.0 minor setup.py scl_loader/__init__.py
```