semvec/pypi-packages huggingface dataset:
pycodec2 4.1.1
A Cython wrapper for codec2
Requires Python: >=3.10
Keywords: codec2, audio, voice, speech

# Pycodec2

Pycodec2 is a Cython wrapper for [Codec 2][codec2].

In other words, Pycodec2 allows using the Codec 2 C library from Python.

## Installation

### Prerequisites

Pycodec2 requires [Codec 2][codec2].

On Linux, I recommend using the distro's package-manager, e.g., on
Arch/Manjaro: `pacman -Syuu codec2`, so that Codec2's assets land in standard
searchable directories for `python setup.py` to use.

On macOS, you may use [the Homebrew
formula](https://formulae.brew.sh/formula/codec2#default).

### Instructions

You can install the library using PyPI (the easiest option) or from source.

#### From PyPI

To install the library from PyPI, run:

```bash
pip install pycodec2
```

### From Source

To install the library from source, see building instructions in `DEV.md`. You
can then install the wheel with:

```bash
pip install dist/*.whl
```

### Codec 2 Compatibility

Pycodec2 4.\* is compatible with Codec 2 1.2.\* and Numpy 2.\*.

Pycodec2 3.\* is compatible with Codec 2 1.2.\*.

Pycodec2 2.\* is compatible with Codec 2 1.0.\*.

Pycodec2 1.0.\* is compatible with Codec 2 at 0.9.2+ versions.

If your Codec 2 version is older than 0.9.2, then try
[pycodec2-old](https://pypi.org/project/pycodec2-old/) package.

For more information on potential compatibility problems, check out [this
issue](https://github.com/gregorias/pycodec2/issues/8).

## Usage

### Example

`example.py` implements a basic script that uses Codec 2 to encode and deencode
a sample. Use the following steps to run an end-2-end scenario (dev/rune2etest
implements steps 2-5).

1. Download a sample .wav file, e.g., [trashcan](https://freesound.org/people/InspectorJ/sounds/431158/).

2. Convert the .wav to a raw mono-channel 8kHz format, e.g.,

   sox trashcan.wav -e signed-integer -b 16 trashcan.raw channels 1 rate 8000

3. Compile pycodec2

   python setup.py build_ext --inplace

4. Run `example.py`

   python example.py trashcan.raw

5. Convert `output.raw`

   sox -r 8000 -e signed-integer -b 16 output.raw output.wav

Now you can listen to `output.wav`.

### Expected Input Format

[Codec 2][codec2] assumes that input files use:

* 8kHz bitrate,
* 16-bit width samples,
* a single channel.

### Available Modes

For a list of currently supported modes, look for `_modes` in
`pycodec2/pycodec2.pyx`.

## Remarks

This library is considered complete. Please notify me or send a pull request on
GitHub if you notice any bugs.

[codec2]: http://www.rowetel.com/blog/?page_id=452
splora 0.0.3
Low-rank and sparse paradigm free mapping for fMRI deconvolution
Requires Python: >=3.10
Keywords: deconvolution, fMRI, low-rank, neuroimaging, paradigm-free mapping, sparse

# Sparse and Low-Rank Paradigm Free Mapping

[![Latest Version](https://img.shields.io/pypi/v/splora.svg)](https://pypi.python.org/pypi/splora/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/splora.svg)](https://pypi.python.org/pypi/splora/)
[![DOI](https://zenodo.org/badge/291096007.svg)](https://zenodo.org/badge/latestdoi/291096007)
[![License](https://img.shields.io/badge/License-LGPL%202.1-blue.svg)](https://opensource.org/licenses/LGPL-2.1)
[![CircleCI](https://circleci.com/gh/Paradigm-Free-Mapping/splora.svg?style=shield)](https://circleci.com/gh/Paradigm-Free-Mapping/splora)
[![Documentation Status](https://readthedocs.org/projects/splora/badge/?version=latest)](http://splora.readthedocs.io/en/latest/?badge=latest)
[![Codecov](https://codecov.io/gh/Paradigm-Free-Mapping/splora/branch/main/graph/badge.svg)](https://codecov.io/gh/Paradigm-Free-Mapping/splora)

Repository for SPLORA PFM.

How to install:

`pip install .`

How to use:

`splora -i data.nii.gz -m mask.nii.gz -tr 2`

To see all options available, type: `splora -h`

You can also use the package by importing to your own Python script.
mac-vendor-lookup 0.1.15
Find the vendor for a given MAC address
Requires Python: <4,>=3.5
Keywords: mac-address OUI lookup

Mac Vendor Lookup
=================

This library provides an easy way to get vendor information from a MAC address. It contains a local copy of the IEEE's
OUI prefix list. It has an asynchronous interface using Python 3's asyncio as well as a regular synchronous interface
for old-school usage.

## Installation

    pip install mac-vendor-lookup

## Basic Usage

```python
from mac_vendor_lookup import MacLookup

print(MacLookup().lookup("00:80:41:12:FE"))
```

Output:

> VEB KOMBINAT ROBOTRON

## Update the vendor list

The library contains a list of MAC prefixes obtained at build-time. If you need up-to-date information, you can
download a fresh copy of the list directly from IEEE with `MacLookup.update_vendors` or `AsyncMacLookup.update_vendors`:

```python
from mac_vendor_lookup import MacLookup

mac = MacLookup()
mac.update_vendors()  # <- This can take a few seconds for the download
    
def find_mac(mac_address):
    print(mac.lookup(mac_address))

```

## Vendor list custom location or path

The library stores and looks for the list of MAC prefixes in a group predefined defaults paths. If a custom 
directory is required, then override the class variable `cache_path` of `class BaseMacLookup(...)` from it default 
location of: `os.path.expanduser('~/.cache/mac-vendors.txt')` to your prefered location.

```python
from mac_vendor_lookup import MacLookup, BaseMacLookup

BaseMacLookup.cache_path = "/relative/or/absolute/path/to/the/prefered/storage/location"
mac = MacLookup()
mac.update_vendors()  # <- This can take a few seconds for the download and it will be stored in the new path
    
def find_mac(mac_address):
    print(mac.lookup(mac_address))

```

## Async Interface

There is also an asynchronous interface available:

```python
from mac_vendor_lookup import AsyncMacLookup

async def main():
    mac = AsyncMacLookup()
    print(await mac.lookup("98:ED:5C:FF:EE:01"))
```

Output:

> Tesla Motors, Inc

## Command line interface

This library provides a rudimentary command line interface:

```bash
$ mac_vendor_lookup 50-D3-7F-00-01-00
Yu Fly Mikly Way Science and Technology Co., Ltd.
$ python3 -m mac_vendor_lookup 00:26:12:12:FE
Space Exploration Technologies
```