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.1.0

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.1.0
File Size Uploaded Provenance Actions
docx_parsing_gmdzy2010-1.1.0.tar.gz 5.9 kB Without provenance Details for docx_parsing_gmdzy2010-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / docx_parsing_gmdzy2010-1.1.0.tar.gz

Download URL docx_parsing_gmdzy2010-1.1.0.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24a8f5c3cfedeea926a26d11724f5090af0081931e63d9a7e707aeab3d6a0330
BLAKE2b-256 checksum
How to use checksums
c1410978c8b21b8a5906b3984bf6e96d35ddc8775c3ee694163e17bbddc6ac93
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.1.0-py3-none-any.whl

Download URL docx_parsing_gmdzy2010-1.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19a0928d11702a5e6b9a7a444319b3f05f5caba2fd4ce8f9f70b80a09f58c09a
BLAKE2b-256 checksum
How to use checksums
b8e95fe660f3f864e5b8e2c37d4eb85caa843cbd2f7f76dba6a7b286f52169da
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.1.0

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