semvec/pypi-packages huggingface dataset:
belt-logging 0.0.2a0
Belt python logging library
Requires Python: >=3.8,<4.0

# belt-plogging

[![Release](https://img.shields.io/github/v/release/BeltSoftware/belt-plogging)](https://img.shields.io/github/v/release/BeltSoftware/belt-plogging)
[![Build status](https://img.shields.io/github/actions/workflow/status/BeltSoftware/belt-plogging/main.yml?branch=main)](https://github.com/BeltSoftware/belt-plogging/actions/workflows/main.yml?query=branch%3Amain)
[![codecov](https://codecov.io/gh/BeltSoftware/belt-plogging/branch/main/graph/badge.svg)](https://codecov.io/gh/BeltSoftware/belt-plogging)
[![Commit activity](https://img.shields.io/github/commit-activity/m/BeltSoftware/belt-plogging)](https://img.shields.io/github/commit-activity/m/BeltSoftware/belt-plogging)
[![License](https://img.shields.io/github/license/BeltSoftware/belt-plogging)](https://img.shields.io/github/license/BeltSoftware/belt-plogging)

Belt python logging library

- **Github repository**: <https://github.com/BeltSoftware/belt-plogging/>
- **Documentation** <https://BeltSoftware.github.io/belt-plogging/>

## Setting up project on local dev environment

First, clone the repository then run to install the environment and the pre-commit hooks with 

```bash
make install
```

You are now ready to start development on your project! The CI/CD
pipeline will be triggered when you open a pull request, merge to main,
or when you create a new release.

Contributing -
Please go through documentation page to understand how to contribute.
pyfx-tool 0.1.0
Fx (Function eXecution) in Python, inspired by https://www.npmjs.com/package/fx.
Requires Python: >=3.2

# PyFx

The Python version of the [non-interactive, JavaScript version](https://www.npmjs.com/package/fx) of the [**fx**](https://fx.wtf). Short for *PYthon Function eXecution* or *Pyf(x)*.

```bash
python3 -mpip install pyfx
```

Or install in develop mode:

```bash
git clone https://github.com/archeraldrich/pyfx
cd pyfx
python3 setup.py develop
```

## Usage

PyFx treats arguments as Python expressions or functions. PyFx passes the input data to the first expression or function and then passes the result of the first one to the second one and so on.

```bash
echo '{"name": "world"}' | pyfx 'lambda x: x["name"]' 'lambda x: f"Hello, {x}!"'
```

Use `self` to access the input data. Use `.` at the start of the expression to access the input data without a `lambda x: x` part.

```python
echo '{"name": "world"}' | pyfx '.get("name")' 'f"Hello, {self}!"'
```

Use other Python functions to process the data.

```python
echo '{"name": "world"}' | pyfx 'dict.keys' 'list'
```

## Advanced Usage

PyFx can process a stream of JSON objects. PyFx will apply arguments to each object.

```bash
printf '{"name": "hello"}\n{"name": "world"}' | pyfx '.get("name")'
```

If you want to process a stream of JSON objects as a single list, use the **--slurp** or **-s** flag.

```python
printf '{"name": "hello"}\n{"name": "world"}' | pyfx --slurp 'list(map(lambda x: x.get("name"), self))' '", ".join'
```

If you want to process non-JSON data, use the **--raw** or **-r** flag.

```bash
ls | pyfx -r '[self, self.find(".md") != -1]'
```

You can use **--raw** and **--slurp** (or **-rs**) together to get a single array of strings.

```bash
ls | pyfx -rs 'list(filter(lambda x: x.find(".md") != -1, self))'
```

PyFx has a special symbol `skip` for skipping the printing of the result.

```bash
ls | pyfx -r 'self if self.find(".md") != -1 else skip'
```

PyFx comes with the import statement. Use the **--import** or **-i** command once per import statement, without the leading `import` keyword. 

```bash
seq 1 100 | pyfx -rs -i 'numpy as np' -i 'from matplotlib import pyplot as plt' 'list(map(int, self))' 'np.array' 'plt.plot' 'lambda _: plt.show()'
```

## License

[MIT](LICENSE)