semvec/pypi-packages huggingface dataset:
kaldi-io 0.9.8
Glue code connecting Kaldi data and Python.

kaldi-io-for-python
===================
'Glue' code connecting kaldi data and python.
-----------------------------------------------

#### Supported data types
- vector (integer)
- Vector (float, double)
- Matrix (float, double)
- Posterior (posteriors, nnet1 training targets, confusion networks, ...)

#### Examples

###### Reading feature scp example:

```python
import kaldi_io
for key,mat in kaldi_io.read_mat_scp(file):
  ...
```

###### Writing feature ark to file/stream:
```python
import kaldi_io
with open(ark_file,'wb') as f:
  for key,mat in dict.iteritems():
    kaldi_io.write_mat(f, mat, key=key)
```

###### Writing features as 'ark,scp' by pipeline with 'copy-feats':
```python
import kaldi_io
ark_scp_output='ark:| copy-feats --compress=true ark:- ark,scp:data/feats2.ark,data/feats2.scp'
with kaldi_io.open_or_fd(ark_scp_output,'wb') as f:
  for key,mat in dict.iteritems():
    kaldi_io.write_mat(f, mat, key=key)
```

#### Install
- from pypi:
```
pip install kaldi_io`
```

- from sources:
```
git clone https://github.com/vesis84/kaldi-io-for-python.git <kaldi-io-dir>`
pip install -r requirements.txt
pip install --editable .
```

Note: it is recommended to set `export KALDI_ROOT=<some_kaldi_dir>` environment variable.
The I/O based on pipes can then contain kaldi binaries.

#### Unit tests

(note: these are not included in pypi package)

Unit tests are started this way:

`./run_tests.sh`

or by:

`python3 -m unittest discover -s tests -t .`
`python2 -m unittest discover -s tests -t .`


#### License
Apache License, Version 2.0 ('LICENSE-2.0.txt')

#### Community
- accepting pull requests with extensions on GitHub
- accepting feedback via GitHub 'Issues' in the repo
logging-interceptor 0.1.2
Intercept Python's standard logging and re-route the messages.
Requires Python: >=3.7.2,<4.0.0
Keywords: logging,loguru

# Python Logging Interceptor

*Capture Python's stdlib `logging` messages and route them to other logging frameworks.*

(Modified and packaged for PyPI from Matthew Scholefield's
[loguru-logging-intercept][r1].)

Currently supported targets:

* [Loguru][r2]

**Loguru** is a great alternative logging library for Python. However, if you use
(potentially external) code that already integrates with Python's default logger, you'll
get a combination of the two logging styles. This code provides code for setting up an
intercept handler to route calls to Python's default `logging` module to Loguru.

## Usage

Before calls that use Python's default `logging` module, call the provided
`setup_loguru_interceptor()` as shown below:

```python
from logging_interceptor import setup_loguru_interceptor


setup_loguru_interceptor(modules=("foo", "foo.bar", "foo.baz"))

# now call functions from `foo` that use getLogger(__name__)
```

## Installation

Install via `pip`:

```bash
pip3 install logging-interceptor
```

[r1]: https://github.com/MatthewScholefield/loguru-logging-intercept
[r2]: https://github.com/Delgan/loguru