semvec/pypi-packages huggingface dataset:
s3wm 0.2.3
Simple Window manager.
Requires Python: >=3.8,<4.0

![GitHub Workflow Status](https://img.shields.io/github/workflow/status/s3rius/s3wm/Release%20s3wm?style=for-the-badge)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/s3wm?style=for-the-badge)](https://pypi.org/project/s3wm)
[![PyPI](https://img.shields.io/pypi/v/s3wm?style=for-the-badge)](https://pypi.org/project/s3wm)

# S3WM

🛠️⚙️This is a WIP project. Don't beleive in README ⚙️🛠️


This project is a yet another `Window manager`.

Main Idea behind this project is `modularity` and
window manager `configuration in Python`.

You can even `bind a python function` to some key combination.

## Configuration
Main configuration file must be located in `$HOME/.s3wm_conf.py`.
S3WM configuration examples can be found in examples folder.

## How to Run/test

```bash
# start nested X11 session with Xephyr
Xephyr :1 +xinerama -screen 1280x720 -reset -terminate &
# Run it with proper DISPLAY ENV
DISPLAY=:1.0 s3wm
# To grab or release host keys press `Ctrl` + `Shift`
```
logjsonfmt 0.0.2
python logging json formatter

# log-json-fmt

python logging json formatter.

## Installation

<div class="termy">

```console
$ pip install logjsonfmt

---> 100%
```

</div>

## Example

### Create it

* Create a file `example.py` with:

```Python
import logging
import logjsonfmt

logger = logging.getLogger()
logHandler = logging.StreamHandler()
formatter = logjsonfmt.JSONFormatter(hostname="app.example.com", indent=True)
logHandler.setFormatter(formatter)
logger.addHandler(logHandler)
logger.error('hello world!', extra={"tags": ["app=helloworld"]})
```
Out:
```json
{
 "@timestamp": "2021-05-27 03:03:01.745983 +00:00",
 "app_host_name": "app.example.com",
 "logger_name": "root",
 "level": "ERROR",
 "pathname": ".\\example.py",
 "lineno": 17,
 "func_name": "<module>",
 "thread_id": 30612,
 "thread_name": "MainThread",
 "process_id": 7356,
 "process_name": "MainProcess",
 "message": "hello world!",
 "tags": [
  "app=helloworld"
 ]
}
```