XMind
XMind 是基于 Python 实现,提供了对 XMind 思维导图进行创建、解析、更新的一站式解决方案!
1、支持原生以下功能的创建和解析
- 画布
- 话题
- 图标
- 标签
- 备注
- 批注
- 联系
- 样式
2、支持
- 支持转换为Dict/Json数据格式(转换级别:文件级别、Sheet级别、话题级别、评论级别)
- 支持多种保存方式(直接覆盖更新、另存为更新、只保存核心内容content.xml、只保存内容和样式content.xml & comments.xml & styles.xml、不保存更新记录节约内存、默认保存所有内容)
一、安装方式
pip install XMind
二、版本升级
pip install -U XMind
三、使用方式
# load an existing file or create a new workbook if nothing is found
workbook = xmind.load("demo.xmind")
# get the first sheet(a new workbook has a blank sheet by default)
sheet1 = workbook.getPrimarySheet()
design_sheet1(sheet1)
# create sheet2
gen_sheet2(workbook, sheet1)
# now we save as test.xmind
xmind.save(workbook, path='test.xmind')
四、自动化测试与发布
1、自动化单元测试
python3 -m unittest discover
2、一键打 Tag 并上传至 PYPI
每次在 about.py 更新版本号后,运行以下命令,实现自动化更新打包上传至 PYPI ,同时根据其版本号自动打 Tag 并推送到仓库:
python3 setup.py pypi
五、致谢
在此,衷心感谢 XMind 思维导图官方创造了如此高价值的产品,同时还开源 xmind-sdk-python ,本项目正是基于此工具进行扩展和升级,受益匪浅,感恩! 后续,也将继续根据实际项目需要,定期进行维护更新和完善,欢迎大伙的使用和意见反馈,谢谢。
(如果本项目对你有帮助的话,欢迎 star )
The MIT License (MIT)
Copyright (c) 2013 XMind, Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Metadata
Release files for XMind 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| XMind-0.9.0.tar.gz | 20.4 kB | Without provenance | Details for XMind-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| XMind-0.9.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for XMind-0.9.0-py2.py3-none-any.whl |
Total release size: 47.6 kB
Release files / XMind-0.9.0.tar.gz
| Download URL | XMind-0.9.0.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16809c8812b301adce1c89784062c931c2460c183ddf3fb843deddd09b099f71
|
|
BLAKE2b-256 checksum How to use checksums |
db47a6dc5c4b1138139a9ad07c12560fe5dbc8fc46ddae9674dd73ac3ba8b421
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Release files / XMind-0.9.0-py2.py3-none-any.whl
| Download URL | XMind-0.9.0-py2.py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
37c0a2cc394fe2624fafb1250731836feebbc429ce281deb0bc0ce624e428c0c
|
|
BLAKE2b-256 checksum How to use checksums |
f935df3a6d1af58af7d99c23bf070739795f55ee5b924bf358734c195d840a3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
|
Security for XMind 0.9.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.