列出待翻译的 .po 文件。
项目描述
这是什么?
Potodo,一个针对po文件的(几乎)无瑕疵的TODO/进度列表命令行工具。
Potodo是poutils的一部分!
Poutils (.po
工具) 是一个元包,可以轻松安装用于与 po 文件和 potodo
一起使用的 Python 工具!前往Poutils 了解与 po
文件相关的翻译相关的其他有用工具!
安装
pip install potodo
使用示例
usage: potodo [-h] [-p path] [-e path [path ...]] [-a X] [-b X] [-f] [-u API_URL] [-n] [-c] [-j] [--exclude-fuzzy] [--exclude-reserved]
[--only-reserved] [--show-reservation-dates] [--no-cache] [-i] [-l] [--version] [-v]
List and prettify the po files left to translate.
options:
-h, --help show this help message and exit
-p path, --path path execute Potodo in path
-e path [path ...], --exclude path [path ...]
gitignore-style patterns to exclude from search.
-a X, --above X list all TODOs above given X% completion
-b X, --below X list all TODOs below given X% completion
-f, --only-fuzzy print only files marked as fuzzys
-u API_URL, --api-url API_URL
API URL to retrieve reservation tickets (https://api.github.com/repos/ORGANISATION/REPOSITORY/issues?state=open or
https://git.afpy.org/api/v1/repos/ORGANISATION/REPOSITORY/issues?state=open&type=issues)
-n, --no-reserved don't print info about reserved files
-c, --counts render list with the count of remaining entries (translate or review) rather than percentage done
-j, --json format output as JSON
--exclude-fuzzy select only files without fuzzy entries
--exclude-reserved select only files that aren't reserved
--only-reserved select only only reserved files
--show-reservation-dates
show issue creation dates
--no-cache Disables cache (Cache is disabled when files are modified)
-i, --interactive Activates the interactive menu
-l, --matching-files Suppress normal output; instead print the name of each matching po file from which output would normally have been
printed.
--version show program's version number and exit
-v, --verbose Increases output verbosity
开发设置
创建虚拟环境
python3 -m venv venv
激活环境
source venv/bin/activate
安装开发需求
pip install -r requirements-dev.txt
安装预提交钩子
pre-commit install
以开发版本安装 potodo
pip install -e .
发布历史
- v0.21.2
- 修复:不要错过包含多个点的文件中的问题(预留)。由 @eviau 贡献。
- v0.21.0
- 优秀的全新 README
- v0.20.0
- 引入了带有 gitignore 风格匹配的排除行为!
- v0.19.2
- 删除
cache_args
以简化缓存功能
- 删除
- v0.19.1
- 修复了除以零的错误
- 将 Travis-ci 测试替换为 GitHub Actions
- v0.19.0
- 修复了 Windows 支持
- v0.17.3
- 修复了文件夹完成百分比错误
- 在
.potodoignore
文件上的修复
- v0.17.0
- 添加了测试
- 修复了 GitHub 会限制你的 IP 地址的 bug
- 修复了参数错误
- 添加了
-l
--matching-files
,它将打印与你的参数匹配的文件路径
- v0.16.0
- 传递给 potodo 的参数现在也会被缓存!这允许更好地控制缓存的内容!
- 忽略文件现在像 .gitignore 一样工作。例如,在 .potodoignore 中添加 venv/ :)
- v0.15.0
- Potodo 现在支持 .potodoignore 文件!你终于可以忽略你创建的 venv 了 🎉
- v0.14.3
- 添加了缓存版本控制,以避免缓存更改时的错误,例如,如果文件在
potodo
版本之间移动。
- 添加了缓存版本控制,以避免缓存更改时的错误,例如,如果文件在
- v0.14.2
- 没有新内容,只是代码移动了!感谢你的坚持 🎉
- v0.14.1
- 添加了
--only-reserved
选项,用于仅显示预留字段 - 添加了
--reserved-dates
以显示何时预留了文件 - 添加了缓存以缓存
pofiles
以加快读取过程 - 添加了日志记录以提高详细程度
- 添加了带
--interactive
的交互式选项 - 在 README 中添加了贡献者
- 添加了
- < v0.14.1
- 基本版本
贡献
- 分叉它 (https://git.afpy.org/repo/fork/100)
- 创建你的功能分支 (
git checkout -b feature/fooBar
)
/!\
在将更改推送到分支时,不要忘记在 potodo/__init__.py
中更新版本号
- 提交你的更改 (
git commit -am 'Add some fooBar'
) - 推送到分支 (
git push origin feature/fooBar
) - 创建一个新的 Pull Request
项目详情
下载文件
下载适合您的平台文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。
源分布
potodo-0.21.3.tar.gz (23.2 kB 查看哈希值)
构建发行版
potodo-0.21.3-py3-none-any.whl (13.6 kB 查看哈希值)
关闭
potodo-0.21.3.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a5dbc51fd82476a2bab98f19163dcf87520c6eedd91872d32f07d5f59048abe3 |
|
MD5 | 240ab25f8934e572150418682aca53d6 |
|
BLAKE2b-256 | 2d966662df73d4b674fe0fd5bd05f17828336c7f41fdf3766a522cce105ae2bd |
关闭
potodo-0.21.3-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2f0c603fba5b2a196a604cd7d7d8c3b84685a598184f6806dbf3dc1e3225f716 |
|
MD5 | 3e0c998733b7a3c43ace0e4145af8a10 |
|
BLAKE2b-256 | bad36d10ee142e8f9ee1ae25c932a65a0fa77bce7309feb03528212154c126ea |