semvec/pypi-packages huggingface dataset:
mtime-fixer 1.0.0
A tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).
License: MIT
Requires Python: >=3.8
Keywords: atime,ctime,metadata,mtime

# Mtime Fixer
Mtime Fixer is a tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).
Sometimes timestamp metadata of folders are inconsistent with files inside them.
Mtime Fixer is a program for setting mtime (modification time) timestamp of folders according to files inside them.
Additionally, it can set ctime (change time) metadata as the same as mtime as well (with root privileges).

## Requirements
Python >= 3.8 is required. (CPython and PyPy are both supported)

## Installation
Mtime Fixer can be either installed directly via pip:
```shell
pip install mtime-fixer
```
Or it can be installed from the source:
```shell
git clone https://github.com/simsekhalit/mtime-fixer.git
python3 -m pip install ./mtime-fixer
```

## Manual
```
$ python3 -m mtime_fixer --help
usage: mtime-fixer [-h] [-c] [-f] PATH [PATH ...]

A tool for fixing inconsistent timestamp metadata (atime, ctime, and mtime).

positional arguments:
  PATH

optional arguments:
  -h, --help        show this help message and exit
  -c, --fix-ctimes  change ctimes as well (requires root priviledges)
  -f, --fix-files   change timestamps of files as well

For more information: https://github.com/simsekhalit/mtime-fixer
```
logzio-structlog-handler 0.1.1
Package for sending structlog-s to logzio
License: MIT
Requires Python: >=3.8,<4.0

# logzio-structlog-handler

Handler to send structlog logger to logzio

All logs have `host`, `pid` and `tid` added to them.

Example of log created with handler:

```python
logger.info(
    "request_finished",
    request=f"{METHOD} {ENDPOINT}",
    code=response.status_code,
    request_id=uuid4()
)
```
Logzio:
```shell
  "_source": {
    "request": "GET /account/ping",
    "code": 200,
    "level": "info",
    "logger": "django_structlog.middlewares.request",
    "ip": "127.0.0.1",
    "log_level": "INFO",
    "pid": 1,
    "type": "http-bulk",
    "message": "request_finished FOR GET /account/ping",
    "tid": [
      140649178957632
    ],
    "tags": [
      "_logz_http_bulk_json_8070"
    ],
    "@timestamp": "2022-01-10T19:34:19.932Z",
    "line_number": 71,
    "host": "name-of-host",
    "event": "request_finished",
    "request_id": "3777349e-0247-4c89-ace2-ea2174930f39",
    "path_name": "path/to/file.py",
    "timestamp": "2022-01-10T19:34:19.931955Z",
    "random_tag_1": "some_value",
    "random_tag_2": 123
  }
```

## Instructions:

1. Install

```shell
❯ pip install logzio-structlog-handler
```

2. Add the following handler to you LOGGING file:

```python    
LOGGING = {
    "handlers": {
        "logzio": {
            "class": "structlogzio.LogzIoStructlogHandler",
            "level": "INFO",
            "token": "YOUR_TOKEN",
            "logs_drain_timeout": 5,
            "url": "https://listener.logz.io:8071",
            "network_timeout": 10,
            # accepts any Dict[str, Any] value and passes it to all logs
            "tags": {"random_tag_1": "some_value", "random_tag_2": 123},
        }
    },
    "loggers": {
        "": {"level": "INFO", "handlers": ["logzio"], "propagate": True},
    },
}   
```