Skip to main content

文本处理工具集.

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

pywander_text-0.2.1.tar.gz (82.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywander_text-0.2.1-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

Details for the file pywander_text-0.2.1.tar.gz.

File metadata

  • Download URL: pywander_text-0.2.1.tar.gz
  • Upload date:
  • Size: 82.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywander_text-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6bc5e9b3bfe2266e5ef219affd105af3ed249556446418ea88631794c5b7e099
MD5 31236a2e7d88e1a6a5ae0f909a41b59b
BLAKE2b-256 7ed5abf01921d58ef6120ec6a5a92a6b29deba183fca5752bb087ef9b4caafff

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywander_text-0.2.1.tar.gz:

Publisher: python-publish.yml on a358003542/pywander-text

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pywander_text-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pywander_text-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 83.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pywander_text-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 186a056dbbed239abb8c7923155a422117e837d6f37dd34ed6fedaf2e911feb1
MD5 c46ac5f3c1857b6339b8a6b4073cc755
BLAKE2b-256 7aed36125b068b2a324c6acc261d26686e647a023086e261172c0ad924711217

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywander_text-0.2.1-py3-none-any.whl:

Publisher: python-publish.yml on a358003542/pywander-text

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page