文本处理工具集.
Project description
pywander
文本处理工具集
USAGE
pip install pywander-text
Console Scripts
pywander_text_web
将会打开网页端,很多文本处理工具整合在里面。
pywander_text
命令行工具,在某些情况下用命令行工具会更方便一些。
猜测某个乱码字符串的可能正确编码
pywander_text encoding 濉旂撼鎵樻媺闆呯殑钁ぜ
将某一字符串转成拼音并用某个连接符号连接起来
pywander_text pinyin 塔纳托拉雅的葬礼
选择连接符号
pywander_text pinyin 塔纳托拉雅的葬礼 --hyphen=_
利用pandoc进行文档转换
专门对tex输出epub进行了一些优化
pywander_text.exe convert main.tex
对当前文件夹下的某个文件执行某个脚本处理动作
你可以在当前文件夹下的pywander.json 来配置 PROCESS_TEXT: [] 字段来设计一系列的文本处理步骤 其内的单个动作配置如下: {"OPERATION": "remove_english_line", } 该动作可以添加其他值作为目标函数的可选参数
pywander_text.exe process test.txt
TEST
local environment run
pip install -e .
and run
pytest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pywander_text-0.1.2.tar.gz.
File metadata
- Download URL: pywander_text-0.1.2.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f43f7f3abf343930837f9a4ff5c7fc256e1c020dcdb50fd45324c01b34544dac
|
|
| MD5 |
5117f5146cf0f581085afe12a0e99cbe
|
|
| BLAKE2b-256 |
f37da4546e2cc93d75b8439d7125fcd63d6c746a80fa4af6ab8ac145318aa54e
|
Provenance
The following attestation bundles were made for pywander_text-0.1.2.tar.gz:
Publisher:
python-publish.yml on a358003542/pywander-text
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pywander_text-0.1.2.tar.gz -
Subject digest:
f43f7f3abf343930837f9a4ff5c7fc256e1c020dcdb50fd45324c01b34544dac - Sigstore transparency entry: 264591107
- Sigstore integration time:
-
Permalink:
a358003542/pywander-text@f94fc7d33f365975fb15900f2d6cb5a1f1477d9e -
Branch / Tag:
refs/heads/master - Owner: https://github.com/a358003542
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f94fc7d33f365975fb15900f2d6cb5a1f1477d9e -
Trigger Event:
push
-
Statement type:
File details
Details for the file pywander_text-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pywander_text-0.1.2-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72fa2a619e2199bd6330760745273cf5f54e13b845e74d7c465c9031448dbe9e
|
|
| MD5 |
cd45e87ca6122da820137706a6e9d178
|
|
| BLAKE2b-256 |
4cc2ba8700749763ca15a38353221b90653df3c22108806966c0d18aa261f950
|
Provenance
The following attestation bundles were made for pywander_text-0.1.2-py3-none-any.whl:
Publisher:
python-publish.yml on a358003542/pywander-text
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pywander_text-0.1.2-py3-none-any.whl -
Subject digest:
72fa2a619e2199bd6330760745273cf5f54e13b845e74d7c465c9031448dbe9e - Sigstore transparency entry: 264591117
- Sigstore integration time:
-
Permalink:
a358003542/pywander-text@f94fc7d33f365975fb15900f2d6cb5a1f1477d9e -
Branch / Tag:
refs/heads/master - Owner: https://github.com/a358003542
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@f94fc7d33f365975fb15900f2d6cb5a1f1477d9e -
Trigger Event:
push
-
Statement type: