semvec/pypi-packages huggingface dataset:
python-silk 0.0.2
Python silk decode/encoder bindings using pybind11

# pysilk

## Installation

### Linux

```bash
# clone this repo
cd Python-Silk-Module
pip install pybind11
pip install .
```

### windows

pip install python-silk

If you get some issues with building, check documentation of [pybind11](https://pybind11.readthedocs.io)

## Usage

```python
from pysilk import async_decode, async_encode, decode, encode
```

Only four functions: `encode`, `decode`, `async_encode`, `async_decode`

It's very easy to use. Just follow the IDE/editor typing intergration and check out the docs of these functions

**NOTE**:

The first argument `input` can be a `str`, `pathlib.Path`, `bytes`, `BytesIO` or `BinaryIO` liked object.

`str` and `pathlib.Path` are both meaning local file path

**The source data of input and returned data must be the original PCM coded data**

## Author

Due to some reasons, these changes can't be merged into upstream, I have contacted the original author and kept the fork version as a separate project

[DCZYewen](https://github.com/DCZYewen/Python-Silk-Module)

## License

All the licenses are in the LICENSE file. This project is also released under BSD lisence.
deflatable-dict 0.3.0
A dictionary that can be flattened and re-inflated
Requires Python: >=3.6
Keywords: dict flatten nested yaml yaml

# deflatable-dict

A dictionary that can be flattened and re-inflated. Particularly useful if you're interacting with yaml, for example.

[![Build](https://github.com/JJ11teen/deflatable-dict/actions/workflows/build.yaml/badge.svg)](https://github.com/JJ11teen/deflatable-dict/actions/workflows/build.yaml)
[![PyPI version](https://badge.fury.io/py/deflatable-dict.svg)](https://pypi.org/project/deflatable-dict/)

## Installation

with pip:
```
pip install deflatable-dict
```
`deflatable-dict` does not have any dependencies beyond standard python libraries.

## Instantiation

```python
from deflatabledict import DeflatableDict

dd = DeflatableDict({
    "a": {
        "1": True,
        "2": False,
    },
    "b": 20,
})

dd["a.1"] # True
dd["a.2"] # False
dd["b"] # 20
dd["a"] # { "1": True, "2": False }
```

## Deflation
A DeflatableDict can be deflated with `.deflate()`. This returns a standard dictionary object with flattened keys constructed by concatenating the nested keys with the DeflatableDict's delimiter. A DeflatableDict uses it's deflated form for its string representation.

## Delimiter
A DeflatableDict can have it's delimiter specified by passing the desired delimiter as the `sep` parameter to the DeflatableDict constructor. By default the delimiter if `.`.

## Inflation
A DeflatableDict will automatically inflate any values that are inserted into it. For example:
```python
from deflatabledict import DeflatableDict

dd = DeflatableDict()
dd["a.1"] = True
dd["a.2"] = False

dd["a"] # { "1": True, "2": False }
```

# Development

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

This project uses `.devcontainer` to describe the environment to use for development. You may use the environment described in this directory (it integrates automatically with vscode's 'remote containers' extension), or you may create your own environment with the same dependencies.

## Dependencies
Install development dependencies with:

`pip install .[tests]`

## Tests
Run tests with:
```bash
pytest
```