semvec/pypi-packages huggingface dataset:
treg 0.0.3
treg utilizes trie structured regex patterns to search texts for a potientially large number of words and phrases.
Requires Python: >=3.7

# treg 0.0.3

treg utilizes trie structured regex patterns to search texts for a potientially large number of words and phrases.

## Experimental state

This project is in an early and experimental state and might be subject substantial changes in the future.

## Documentation
Documentation is available at https://treg.readthedocs.io

## Getting started

```python
from treg import Treg, Phrase, Match

# Initialize a new pattern
treg = Treg()
# Add some phrases
treg.add_phrases([
    Phrase(phrase='afternoon tea', meta={'fun': 1}),
    Phrase(phrase='tea party', meta={'fun': 3}),
    # ...
])
# Compile the pattern
treg.compile()
# Happy searching!
for match in treg.find_iter(
        "A long collection of afternoon tea party recipes ...",
        overlapped=True):
    print(match)

# Output
Match(phrases=[Phrase(phrase='afternoon tea', meta={'fun': 1})], start=16, end=29)
Match(phrases=[Phrase(phrase='tea party', meta={'fun': 3})], start=26, end=35)
```
tinyutils 0.0.9
A set of tiny utils
Keywords: tiny utils

# A set of tiny utils

> 整合业界已有的模块, 开始一点一点封装一堆工作常用的工具类, 旨在提供更简单,更快速的方法供大家使用

## 已有工具类:

### ​excel_utils: 处理excel, 如获取指定区域的数据

### config_utils: 处理配置文件(.ini)

### echarts_utils: 处理图表, 如生成折线图

### time_utils: 处理时间, 如返回当前时间等

### csv_utils: 处理csv文件, 如写入数据到csv文件