semvec/pypi-packages huggingface dataset:
chinese-regular-expression 0.0.2
中文正则表达式
Requires Python: >=3.7

## 简述

正则表达式（regular expression）读写不易，此 API 尝试改进。

现在处于调研与规划中，相关文档编写中：
- [功能](https://gitee.com/Program-in-Chinese/regular-expression/blob/master/文档/功能.md)
- [设计](https://gitee.com/Program-in-Chinese/regular-expression/blob/master/文档/设计.md)，包括 API 细节与示例
- 测试：`$ pytest`

设想的简单演示：
```python
# 对应 r'\$?[^\\\)]'
序列("$").可无().不是(反斜杠, 右小括号).表达()

# r'(\")((?<!\\)\\\1|.)*?\1'
分段(双引号)
  .分段(
    任一(
      序列(反斜杠, 引用分段(1)).前面不是(反斜杠),
      序列(非换行字符)
    )
  ).若干().不贪()
  .引用分段(1)
```

如各位有“如何写 XXX 这样的正则表达式”之类的问题，欢迎提 issue。普遍出现的需求将纳入设计与之后的测试。

## 渊源

- 2020-12-03 [正则表达式 API 技术验证与设计细化](https://zhuanlan.zhihu.com/p/328550803)
- 2020-11-30 [用中文 API 让正则表达式更易读写？](https://zhuanlan.zhihu.com/p/323940002)
epubmangler 0.1.0
Tools to modify the metadata of .epub format ebooks
Requires Python: >=3.8
Keywords: book, epub

# epubmangler

Tools to read and modify the metadata of EPUB files.

Documentation to be written. See the minimal example below and others in the `example` directory.

Requires: Python 3.8

## Example usage

```python
from epubmangler import EPub

with EPub('Frankenstein.epub') as book:  # https://gutenberg.org/ebooks/84

    # Get information about a book
    language = book.get('language')
    subjects = book.get_all('subject')
    book.pretty_print()

    # Modify existing elements
    book.set('title', 'Frankenstein 2')
    book.set_cover('cat_picture.jpg')
    book.set_identifier('http://github.com/davekeogh/epubmangler', 'URI')

    # Add and remove elements
    book.add('contributor', 'epubmangler', {'opf:role' : 'bkp'})
    book.remove('date', {'opf:event' : 'conversion'})

    # Add and remove subjects
    book.add_subject('Sequel')
    book.add_subject('Comedy')
    book.remove_subject('Horror tales')

    book.save('Frankenstein 2.epub', overwrite=True)

```