semvec/pypi-packages huggingface dataset:
chandler-handler 0.0.2
Python Size and Time Based Logging File Rotating Handler
Requires Python: >=3.7, <4
Keywords: chandler,python logging,logging handlers,python logging rotation,size based,time based

# Python Size and Time Based Logging File Rotating Handler

Python logging's file based [handlers](https://docs.python.org/3/library/logging.handlers.html) have two different kinds of rotation. 
* [Size based rotation](https://docs.python.org/3/library/logging.handlers.html#logging.handlers.RotatingFileHandler)
* [Time based rotation](https://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler)

However, these rotations work in isolation. Only one handler can be attached to a log file.
One can only add either Size based rotation or Time based rotation.

Using `chandler.handler.SizedAndTimedRotatingHandler` you can rotate the files based on both time and size. Files will be rotated whenever either of the conditions are met.

### How to Use
 import the handler
 ```python
from chandler.handler import SizedAndTimedRotatingHandler
```

Then you can initialise your loggers and append this handler.
```python
logger = logging.getLogger('test-logger')
log_file_path = '/var/log/test/logging.log'
rotating_handler = SizedAndTimedRotatingHandler(log_file_path, when='h', interval=1, max_bytes=50000, backup_count=3)
logger.addHandler(rotating_handler)
```
In the above example the handler is configured to rotate every one hour or whenever the file size reaches 50k bytes.
This handler is built on top of [TimedRotatingFileHandler](https://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler), so most of the arguments are similar to that of TimedRotatingFileHandler. 

### installation 
You can install with pip
```bash
$ pip install chandler-handler
```
### Contribution


#### Authors
* [Suraj Arya](https://github.com/suraj-arya)
flake8-start 0.0.1
A command line tool to create flake8 configuration file
Requires Python: >=3.7

Starter tool for [flake8](https://flake8.pycqa.org/)

* [flake8 error codes](https://flake8.pycqa.org/en/latest/user/error-codes.html)
* [flake8-pylint](https://pypi.org/project/flake8-pylint/)
* [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear)


## Setup

1. Run this script providing the path to the repository of your project. It will create the `.flake8` file in the root of the project. This configuration will ignore all the failure types in your code and it will also list them as comments
   for easier review.
1. Commit this file to your version control system and configure your CI system to run `flake8` on your code on every push. This will ensure no new type of failure will get past the CI system.

## Cleanup

1. Review the failures. Pick one of them that you feel is important to fix. Remove its code from the ignore list. Run `flake8` on your code to see where is this failure reported. Fix the code.
1. Commit your new version of the code and the `.flake8` file that does not ignore this error-type any more.
1. Repeate the cleanup process.
fileindexer 1.0.2
Script for indexing text files using line offsets.
Requires Python: >=3.6
Keywords: indexing,text files

# FileIndexer
Tool for creating line offset indexes as tsv files.

# Install

You can download this repository or directly install with:

    pip install fileindexer

# Index format
The index in basic case is formated as one column tsv file with voluntary headline containing file line offset.

This indexer also supports to create key mapping to given file line offset if jsonl file is provided. In that case the 
index is two column tsv file with first column containing key and second the corresponding file offset.

Feel free to visit <i>examples</i> folder with toy example to get more familiar with the format.

# Examples
This repository contains <i>examples</i> folder with variants of indexes that could be created. Bellow follows list of
commands that were used for creating those indexes:

toy_basic.jsonl.index


    fileindexer examples/toy.jsonl examples/toy_basic.jsonl.index

toy_basic_with_headline.jsonl.index


    fileindexer examples/toy.jsonl examples/toy_basic_with_headline.jsonl.index --headline --name_offset "file_line_offset"

toy_key_mapping.jsonl.index


    fileindexer examples/toy.jsonl examples/toy_key_mapping.jsonl.index --key k

toy_key_mapping_with_headline.jsonl.index


    fileindexer examples/toy.jsonl examples/toy_key_mapping_with_headline.jsonl.index --key k --headline --name_key key --name_offset "file_line_offset"
liuren-kaiwulu 2022.10.6.0
六壬开悟录
Requires Python: >=3.6

# 六壬开悟录

## 下载

### Docker

```
docker pull apachecn0/liuren-kaiwulu
docker run -tid -p <port>:80 apachecn0/liuren-kaiwulu
# 访问 http://localhost:{port} 查看文档
```

### PYPI

```
pip install liuren-kaiwulu
liuren-kaiwulu <port>
# 访问 http://localhost:{port} 查看文档
```

### NPM

```
npm install -g liuren-kaiwulu
liuren-kaiwulu <port>
# 访问 http://localhost:{port} 查看文档
```
liuren-jinkoujue-zhixuan 2022.10.6.0
六壬金口诀指玄
Requires Python: >=3.6

# 六壬金口诀指玄

## 下载

### Docker

```
docker pull apachecn0/liuren-jinkoujue-zhixuan
docker run -tid -p <port>:80 apachecn0/liuren-jinkoujue-zhixuan
# 访问 http://localhost:{port} 查看文档
```

### PYPI

```
pip install liuren-jinkoujue-zhixuan
liuren-jinkoujue-zhixuan <port>
# 访问 http://localhost:{port} 查看文档
```

### NPM

```
npm install -g liuren-jinkoujue-zhixuan
liuren-jinkoujue-zhixuan <port>
# 访问 http://localhost:{port} 查看文档
```
liuren-jingdian-huiyao 2022.10.6.0
六壬经典汇要
Requires Python: >=3.6

# 六壬经典汇要

## 下载

### Docker

```
docker pull apachecn0/liuren-jingdian-huiyao
docker run -tid -p <port>:80 apachecn0/liuren-jingdian-huiyao
# 访问 http://localhost:{port} 查看文档
```

### PYPI

```
pip install liuren-jingdian-huiyao
liuren-jingdian-huiyao <port>
# 访问 http://localhost:{port} 查看文档
```

### NPM

```
npm install -g liuren-jingdian-huiyao
liuren-jingdian-huiyao <port>
# 访问 http://localhost:{port} 查看文档
```