https://github.com/easyhutu/pyyaml-plus
https://github.com/easyhutu/pyyaml-plus
python yaml yml
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/easyhutu/pyyaml-plus
- Owner: easyhutu
- Created: 2020-01-13T11:15:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-25T23:17:26.000Z (over 5 years ago)
- Last Synced: 2025-03-14T16:49:55.472Z (over 1 year ago)
- Topics: python, yaml, yml
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
Awesome Lists containing this project
README
# pyyaml-plus
夸文件引用工具,支持跨文件引用变量
文件a.yml:
```
import:
- b.yml
usr2:
name: b
psw: 456
aslw:
<<: *usr1
```
文件b.yml:
```
import:
- eg_folder/c.yml
usr1: &usr1
<<: *usr3
```
引用:
```
from yamlplus import load
with open('a.yml') as f:
result = load(f.read())
print(result)
```