Skip to main content
# 文本模板转DOCX文件
[![PyPI](https://img.shields.io/pypi/v/docx-parsing-gmdzy2010.svg)](https://pypi.org/project/docx-parsing-gmdzy2010/)


### 功能概述
_________

#### 输入文件
###### 1. 文本模板文件
模板文件是一个纯文本文件,解析规则只有以下3条:
>1.1 文本每3行为一个解析单位;
>1.2 第一行包括元素类型和样式名称,用":"隔开;
>1.3 第二行为要写入docx文件的文本,每行内部分为多个run单位(微软的word文档原生单位),用"||"隔开,每个run可以有下划线和加粗两种样式,在每个run的尾部,用"::"隔开
>1.4 第三行为分割线,79个下划线,为了让模板更易读而已,没太大意义

###### 2. DOCX模板文件
文件为一个空的或者自定义的docx文件,最好是包含python-docx自带docx模板的所有样式,方便直接调用
注意:样式有可能不生效,解决方法请移步python-docx的官方文档

### 使用
_________
导入渲染器,设定文本模板和DOCX模板的路径,设定保存的文件名


Metadata

Release files for docx-parsing-gmdzy2010 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docx-parsing-gmdzy2010 1.0.1
File Size Uploaded Provenance Actions
docx_parsing_gmdzy2010-1.0.1.tar.gz 6.1 kB Without provenance Details for docx_parsing_gmdzy2010-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docx-parsing-gmdzy2010 1.0.1
File Interpreter ABI Platform Actions
docx_parsing_gmdzy2010-1.0.1-py3-none-any.whl Python 3 none any Details for docx_parsing_gmdzy2010-1.0.1-py3-none-any.whl

Total release size: 15.2 kB

Release files / docx_parsing_gmdzy2010-1.0.1.tar.gz

Download URL docx_parsing_gmdzy2010-1.0.1.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
03fd9000eb94bc6bcf46a047aeec3a2cb57fca88cf5c34c9eda7e358447f1039
BLAKE2b-256 checksum
How to use checksums
54549716ff0dd0509175aa147bd47b207a28a65d59b0197b18f1e7ad8b322d0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.0

Release files / docx_parsing_gmdzy2010-1.0.1-py3-none-any.whl

Download URL docx_parsing_gmdzy2010-1.0.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9ab5ad009f45f050a15e0be7588a371736a959c826f43f9705c3d9724654400
BLAKE2b-256 checksum
How to use checksums
0bc086c4c8a1b31730f88cad22c83361ea8df4adaefc4d85af03e9853adaa984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.12.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.0

Security for docx-parsing-gmdzy2010 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page