This fork contains many comments that explains how the code works, the purpose of this is to help others to read the source code of this great open source project.
NOTE: 所有在阅读时添加的标注都已 pythonlibrary.net 开头,根目录的main.py是用于运行代码设置断点辅助理解
A blog post is also published for explaining how to read the code, here is the link:
源码阅读配套文章 带你读源码 – Tablib源码阅读
_____ ______ ___________ ______
__ /_______ ____ /_ ___ /___(_)___ /_
_ __/_ __ `/__ __ \__ / __ / __ __ \
/ /_ / /_/ / _ /_/ /_ / _ / _ /_/ /
\__/ \__,_/ /_.___/ /_/ /_/ /_.___/
Tablib is a format-agnostic tabular dataset library, written in Python.
Output formats supported:
- Excel (Sets + Books)
- JSON (Sets + Books)
- YAML (Sets + Books)
- Pandas DataFrames (Sets)
- HTML (Sets)
- Jira (Sets)
- TSV (Sets)
- ODS (Sets)
- CSV (Sets)
- DBF (Sets)
Note that tablib purposefully excludes XML support. It always will. (Note: This is a joke. Pull requests are welcome.)
Tablib documentation is graciously hosted on https://tablib.readthedocs.io
It is also available in the docs
directory of the source distribution.
Make sure to check out Tablib on PyPI!
Please see the contributing guide.