semvec/pypi-packages huggingface dataset:
loguru-notification 0.0.7
Project logging printout
Requires Python: >=3.6

# loguru-notification

loguru-notification 是一个日志输出项目，在loguru的基础集成日志输出到控制台、输出到Slack、并结合CMRESHandler把日记记录到ElasticSearch，
更容易的对日志进行分析。

## Installation

1.使用python包管理工具[pip](https://pypi.org/project/loguru-notification/) 进行安装。

```bash
pip install loguru-notification
```

## Usage
对loguru-notification进行配置，并输出日志信息。

```python
from configlog.setlogs import Logger

logger = Logger(
    webhook_url='Your Slack webhook URL',  # Slack webhook URL  # noqa
    es_host='172.0.0.1:9200',  # log on ElasticSearch host ip and port
)

if __name__ == '__main__':
    logger.printout('输出到控制台')
    logger.msg('输出到控制台，并写入ElasticSearch')
    logger.notice('输出到控制台和Slack，并写入ElasticSearch')
```
## Contributing
欢迎使用，如果有好的优化方法也欢迎提交修改。

使用前请做适当的测试，以确定跟您的项目完全兼容。

## License
[MIT](https://choosealicense.com/licenses/mit/)
pubtatortool 0.6.5
A package for loading and manipulating PubTator files as Python objects.
Requires Python: >=3.6

# The PubTator Parsing Tool
A Python package for loading and manipulating PubTator files as Python objects.

## Installation
This package is on the Python Package Index. You can install it using `pip install pubtatortool`.

## Usage
For basic word tokenization and simple operations
```python
from pubtatortool import PubTatorCorpus
train_corpus = PubTatorCorpus(['train_corpus_part_1.txt',
                               'train_corpus_part_2.txt'])
dev_corpus = PubTatorCorpus(['dev_corpus.txt'])
test_corpus = PubTatorCorpus(['test_corpus.txt'])
```

For wordpiece tokenization and full ability to encode and decode text for use with machine learning models
```python
from pubtatortool import PubTatorCorpus
from pubtatortool.tokenization import get_tokenizer
tokenizer = get_tokenizer(tokenization='wordpiece', vocab='bert-base-cased')
train_corpus = PubTatorCorpus(['train_corpus_part_1.txt',
                               'train_corpus_part_2.txt'], tokenizer)
dev_corpus = PubTatorCorpus(['dev_corpus.txt'], tokenizer)
test_corpus = PubTatorCorpus(['test_corpus.txt'], tokenizer)
```

You can then serialize a corpus using Pickle, iterate over documents using `corpus.document_list`, and perform various operations on documents regardless of tokenization policy, even if it is lossy, without worrying about mention and text decoupling.

For example, you can create a TSV-formatted file from a PubTator file in 10 lines of code:
```python
from pubtatortool import PubTatorCorpus
from pubtatortool.tokenization import get_tokenizer
tokenizer = get_tokenizer(tokenization='wordpiece', vocab='bert-base-cased')
corpus = PubTatorCorpus(['mycorpus.txt'], tokenizer)
with open('outfile.txt', 'w') as outfile:
    for doc in corpus.document_list:
        for sentence, targets in zip(doc.sentences, doc.sentence_targets()):
            for token, label in zip(sentence, targets):
                print("{tok}\t{lab}".format(tok=token, lab=label),
                      file=outfile)
            print('', file=outfile)
```
benamer 0.2.0
A cross-platform bulk file renamer
Requires Python: >=3.6

# benamer
Bulk renamer with intuitive (no regex) options.

## Getting Started

In order to run this software, you need Python, it does not matter what version (provided it is updated enough), benamer will only run in Python 3.


## Installation

You can use pip in order to retrieve the package from PyPI: `sudo pip install benamer`

## Usage

`benamer.py [-h] [-d DIR] [-as RPREFX] [-ac START] [-rs RSUFX] [-ap RPREFX] [-rp RPREFX] [-fe FILTER_EXT] [-fp FILTER_PREFIX] [-fs FILTER_SUFFIX] [-st SUST] [-e EXT] [-rsp] [-s] [-p] [-jd] [-jf] [-u] [-l] [-v]`

Use `benamer -h` to get a complete list of available options. The availabe operations at the time of writing are:

-    -h, --help show this help message and exit
-    -d DIR, --dir DIR set the directory to work with
-    -as RPREFX, --add-suffix RPREFX add suffix to name
-    -ac START, --add-count START add count suffix to name
-    -rs RSUFX, --remove-suffix RSUFX remove suffix in name
-    -ap RPREFX, --add-prefix RPREFX add prefix to name
-    -rp RPREFX, --remove-prefix RPREFX remove prefix in name
-    -fe FILTER_EXT, --filter_by_ext FILTER_EXT filter by extension
-    -fp FILTER_PREFIX, --filter_by_prefix FILTER_PREFIX filter by prefix
-    -fs FILTER_SUFFIX, --filter_by_suffix FILTER_SUFFIX filter by suffix
-    -st SUST, --sust SUST substitute string
-    -e EXT, --ext EXT substitute extension
-    -rsp, --replace-spaces replace spaces in files with underscores
-    -s, --sort sort files before renaming
-    -p, --print do nothing, just show renamings
-    -jd, --directories rename only directories
-    -jf, --files rename only files
-    -u, --upper uppercase file names
-    -l, --lower lowercase file names
-    -v, --verbose describe what I am doing

## Examples

### Adding a prefix

    The following command will show the effects of adding a prefix to all files in the current directory. Nothing will be actually changed

    `benamer -p -ap file_`

    `benamer --print --add-prefix file_`

### Adding a prefix

    The following command will add a prefix to all files in the current directory.

    `benamer -ap file_`

    `benamer --add-prefix file_`
    
### Adding a count suffix

    The following command will add a suffix with a count to all files in the sub subdirectory.

    `benamer -ac 1 -d sub`

    `benamer --add-count 1 --directory sub`
    
### Replacing a part of the name

    The following command will replace all "er" with "ar" in all files of the current directory.

    `benamer -st er/ar`

    `benamer --sust er/ar`
    
### Replacing the whole file name

    The following command will replace the whole file name with "f" in all files of the current directory.

    `benamer -st /f`

    `benamer --sust /f`

### Remove a part of the file name

    The following command will remove the "er" part of the file name in all files of the current directory.

    `benamer -st er/`

    `benamer --sust er/`
benamer-pkg-baltasarq 0.2.0
A cross-platform bulk file renamer
Requires Python: >=3.6

# benamer
Bulk renamer with intuitive (no regex) options.

## Getting Started

In order to run this software, you need Python, it does not matter what version (provided it is updated enough), benamer will only run in Python 3.


## Installation

You can use pip in order to retrieve the package from PyPI: `sudo pip install benamer`

## Usage

`benamer.py [-h] [-d DIR] [-as RPREFX] [-ac START] [-rs RSUFX] [-ap RPREFX] [-rp RPREFX] [-fe FILTER_EXT] [-fp FILTER_PREFIX] [-fs FILTER_SUFFIX] [-st SUST] [-e EXT] [-rsp] [-s] [-p] [-jd] [-jf] [-u] [-l] [-v]`

Use `benamer -h` to get a complete list of available options. The availabe operations at the time of writing are:

-    -h, --help show this help message and exit
-    -d DIR, --dir DIR set the directory to work with
-    -as RPREFX, --add-suffix RPREFX add suffix to name
-    -ac START, --add-count START add count suffix to name
-    -rs RSUFX, --remove-suffix RSUFX remove suffix in name
-    -ap RPREFX, --add-prefix RPREFX add prefix to name
-    -rp RPREFX, --remove-prefix RPREFX remove prefix in name
-    -fe FILTER_EXT, --filter_by_ext FILTER_EXT filter by extension
-    -fp FILTER_PREFIX, --filter_by_prefix FILTER_PREFIX filter by prefix
-    -fs FILTER_SUFFIX, --filter_by_suffix FILTER_SUFFIX filter by suffix
-    -st SUST, --sust SUST substitute string
-    -e EXT, --ext EXT substitute extension
-    -rsp, --replace-spaces replace spaces in files with underscores
-    -s, --sort sort files before renaming
-    -p, --print do nothing, just show renamings
-    -jd, --directories rename only directories
-    -jf, --files rename only files
-    -u, --upper uppercase file names
-    -l, --lower lowercase file names
-    -v, --verbose describe what I am doing

## Examples

### Adding a prefix

    The following command will show the effects of adding a prefix to all files in the current directory. Nothing will be actually changed

    `benamer -p -ap file_`

    `benamer --print --add-prefix file_`

### Adding a prefix

    The following command will add a prefix to all files in the current directory.

    `benamer -ap file_`

    `benamer --add-prefix file_`
    
### Adding a count suffix

    The following command will add a suffix with a count to all files in the sub subdirectory.

    `benamer -ac 1 -d sub`

    `benamer --add-count 1 --directory sub`
    
### Replacing a part of the name

    The following command will replace all "er" with "ar" in all files of the current directory.

    `benamer -st er/ar`

    `benamer --sust er/ar`
    
### Replacing the whole file name

    The following command will replace the whole file name with "f" in all files of the current directory.

    `benamer -st /f`

    `benamer --sust /f`

### Remove a part of the file name

    The following command will remove the "er" part of the file name in all files of the current directory.

    `benamer -st er/`

    `benamer --sust er/`