没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Python Frontmatter 风格的YAML前端事物提供了一种有用的方法,可以将任意结构化的元数据添加到文本文档中,而不管类型如何。 这是一个小程序包,用于加载和解析具有YAML(或JSON,TOML或其他)主题的文件(或仅文本)。 安装: pip install python-frontmatter 用法: >> > import frontmatter 从文件名加载帖子: >> > post = frontmatter . load ( 'tests/yaml/hello-world.txt' ) 或文件(或类似文件的对象): >> > with open ( 'tests/yaml/hello-world.txt' ) as f : ... post = frontmatter . load ( f ) 或从文本加载: >> > with open
资源推荐
资源详情
资源评论
收起资源包目录
python-frontmatter-master.zip (51个子文件)
python-frontmatter-master
.gitignore 701B
README.md 2KB
.github
workflows
publish.yml 2KB
test.yml 773B
tests
test_files.py 1KB
yaml
hello-world.result.json 92B
hello-markdown.result.json 181B
network-diagrams.md 1KB
unpretty.md 530B
extra-dash.result.json 74B
network-diagrams.result.json 1KB
extra-space.txt 108B
extra-space.result.json 130B
chinese.txt 86B
chinese.result.json 147B
unpretty.result.json 832B
hello-markdown.md 139B
hello-world.txt 68B
extra-dash.txt 52B
test_docs.py 386B
toml
hello-toml.result.json 181B
hello-toml.md 149B
unit_test.py 12KB
stub_tests.py 499B
json
hello-json.md 158B
hello-json.result.json 177B
empty
no-frontmatter.txt 22B
empty-frontmatter.txt 44B
empty-frontmatter.result.json 54B
no-frontmatter.result.json 41B
docs
make.bat 8KB
conf.py 10KB
index.rst 2KB
api.rst 725B
Makefile 8KB
handlers.rst 347B
examples
content
reversed.txt 1KB
pandoc.txt 933B
sorted.txt 946B
__init__.py 0B
reversed.py 3KB
pandoc.py 2KB
sorted.py 499B
LICENSE 1KB
requirements.txt 18B
frontmatter
conftest.py 157B
default_handlers.py 8KB
util.py 316B
__init__.py 8KB
MANIFEST.in 79B
setup.py 1KB
共 51 条
- 1
资源评论
真好玩主人
- 粉丝: 17
- 资源: 4632
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功